Definition of an angle
In primary or middle school, we learned the static definition of an angle: a figure formed by two rays with a common endpoint is called an angle.
However, this definition limits angles to , which creates difficulties for deeper study and cannot explain some questions clearly, such as: what does a rotation of mean?
High-school mathematics introduces the dynamic definition of an angle: a figure formed when a ray in a plane rotates around its endpoint from one position to another is called an angle.
The starting position is called the initial side, and the ending position is called the terminal side. We define:
- An angle formed by rotation in the counterclockwise direction is a positive angle, and its measure is positive;
- An angle formed by rotation in the clockwise direction is a negative angle, and its measure is negative;
- An angle whose terminal side has not rotated relative to its initial side is a zero angle, and its measure is .
This extends the concept of an angle to an arbitrary angle.
Note
The initial and terminal sides of a zero angle coincide, but not every angle whose initial and terminal sides coincide is a zero angle, such as an angle that is a multiple of .
Radian measure
In practical applications, angles are often converted to various parameters, and describing angles using radians reduces the use of coefficients. We therefore introduce radian measure:
A central angle subtending an arc whose length equals the radius is called a -radian angle. It is denoted by and read as radian.
According to the definitions above, positive angles have positive radian measures, negative angles have negative radian measures, and the zero angle has radian measure . If a circle of radius has a central angle subtending an arc of length , then:
This formula can also be used to derive the formulas for arc length and sector area, which we omit here.
Thus, a angle has radian measure . With this correspondence, degree values and radian measures can be converted:
Consider an angle. If its terminal side is rotated one full turn, or even multiple turns, while the initial side remains fixed, the terminal side always ends at the same position. Such angles are called coterminal angles.
The set of angles coterminal with angle is easy to obtain: .
This can be understood as continuously adding full turns to the side of the angle without changing the terminal-side position.
The mathematical constants and
Some views in the Western mathematical community hold that the “true circle constant” should be , denoted by the Greek letter . Supporters of the new circle constant celebrate the “true” Pi Day on June 28.
For example, in radian measure, a full angle is , and directly dividing gives equal divisions of a full angle. Also, combinations of occur frequently in complex analysis, and so on.
To follow customary conventions in different regions of China, OI Wiki uses the parameter to denote the circle constant.
Conventional notation for in programming
In C/C++, is generally taken to be acos(-1), since this value is the floating-point number closest to . Writing using acos(-1) or 4 * atan(1) gives .
Using other values, such as acos(-1.0/2.0), acos(1.0/2.0), or asin(1.0/2.0), gives , which is not the closest floating-point number to .
If you can remember it, you can also write directly.
Cartesian coordinate system
Two mutually perpendicular number axes with a common origin in the same plane form a Cartesian coordinate system (Rectangular Coordinates).
Usually, the two number axes are placed horizontally and vertically, with rightward and upward directions as their positive directions. The horizontal axis is called the -axis (x-axis) or horizontal axis, and the vertical axis is called the -axis (y-axis) or vertical axis. The -axis and -axis together are called the coordinate axes. Their common origin is called the origin of the Cartesian coordinate system (origin). A Cartesian coordinate system with as its origin is denoted by .
The -axis and -axis divide the coordinate plane into four quadrants (quadrant). The upper-right part is the first quadrant; the other three parts, in counterclockwise order, are the second, third, and fourth quadrants. The axes form the boundaries of the quadrants, so points on either axis and the origin are not in any quadrant. Usually, the - and -axes use the same unit length, but different unit lengths may be used in special cases.
Describing positions in a Cartesian coordinate system
In a Cartesian coordinate system, every point in the plane corresponds to a unique ordered pair (that is, the point's coordinates (coordinates)); conversely, every ordered pair corresponds to a unique point in the plane.
For any point in the plane, draw perpendiculars through to the - and -axes. The corresponding feet on the - and -axes, denoted by , are respectively called the abscissa and ordinate of . The ordered pair (ordered pair) is called the Cartesian coordinate of . A point has different coordinates in different quadrants or on different axes.
Polar coordinate system
Consider a practical situation such as navigation: one would say “point is north of east from point , at a distance of meters”, rather than “construct a Cartesian coordinate system with as the origin, giving ”.
Thus:
- Choose a fixed point in the plane, called the pole;
- Draw a ray from the pole, called the polar axis;
- Choose a unit length (usually in mathematical problems), an angular unit (usually radians), and its positive direction (usually counterclockwise);
This establishes a polar coordinate system.
Describing positions in a polar coordinate system
Let be a point in the plane.
- The distance between the pole and is called the radius vector, denoted by ;
- The angle whose initial side is the polar axis and terminal side is is called the polar angle, denoted by ;
Then the ordered pair is the polar coordinate of .
By the definition of coterminal angles, and represent the same point. In particular, the pole has polar coordinates , so points in the plane have infinitely many polar-coordinate representations.
If we require , every point in the plane other than the pole can be represented by a unique ordered pair , and the point represented by is uniquely determined.
Conversion between Cartesian and polar coordinate systems
Sometimes it is inconvenient to study a figure in polar coordinates. To study it in Cartesian coordinates, use the conversion formulas. The Cartesian coordinates of point are:
Consequently:
Thus .
However, values with the same may correspond to two possible values of , so the direction must also be determined from the values of . Specifically, define:
Then . Note that the range of this function is .
The function is defined in the <math.h> or <cmath> library in C/C++; call it with atan2(y, x).
Cartesian coordinate system in space
Establish a Cartesian coordinate system in space as follows:
- Choose a point in space;
- Through , draw three mutually perpendicular number axes , called the -axis (horizontal axis), -axis (vertical axis), and -axis (upward axis), collectively called the coordinate axes. Their positive directions follow the right-hand rule: hold the -axis with the right hand; when the four fingers turn from the positive direction of the -axis toward the positive direction of the -axis, the thumb points in the positive direction of the -axis;
- Set the length unit on each axis, usually to .
This forms the spatial Cartesian coordinate system . The fixed point is the origin of this coordinate system.
Any two coordinate axes determine a plane, giving three mutually perpendicular planes, collectively called coordinate planes. The coordinate plane determined by the - and -axes is the plane; similarly, there are the and planes. The three coordinate planes divide space into eight parts, each called an octant.
Describing positions in a spatial Cartesian coordinate system
After fixing the spatial Cartesian coordinate system , a one-to-one correspondence can be established between points in space and triples.
Let be a point in space. Through , draw planes perpendicular to the -, -, and -axes. Let their intersections with the -, -, and -axes be , respectively. The points are called the projections of onto the -, -, and -axes. If the coordinates of on the -, -, and -axes are , respectively, then determines a triple .
Conversely, given a triple , take on the -axis the point with coordinate , on the -axis the point with coordinate , and on the -axis the point with coordinate . Through , draw planes perpendicular to the -, -, and -axes, respectively. They intersect at a point in space, and is the point determined by the triple .
Thus, a one-to-one correspondence is established between a spatial point and a triple . The triple is called the coordinate of , written as ; is the abscissa, the ordinate, and the applicate.
Cylindrical coordinate system
A spatial cylindrical coordinate system extends polar coordinates to three dimensions: start with the polar coordinate system used in the plane, then add a -axis perpendicular to the plane through the pole , pointing upward.
To find the point described by cylindrical coordinates , first handle and in the polar coordinate system, then move “up” or “down” along the -axis according to the coordinate.
Conversion between cylindrical and spatial Cartesian coordinate systems
The values of are the same in both coordinate systems.
For the conversion between and , see Conversion between Cartesian and polar coordinate systems.
Spherical coordinate system
Spherical coordinates can be determined as follows:
- Stand at the origin facing the direction of the horizontal polar axis; the vertical axis points from the feet toward the head;
- Raise the arm toward the vertical polar-axis direction;
- Rotate counterclockwise by angle ;
- Rotate the arm downward by angle ; the arm points in the direction specified by and ;
- Move a distance from the origin along that direction.
This reaches the point described by spherical coordinates . Here is called the zenith angle, and the azimuth angle.
Warning
For various reasons, some sources use for the zenith angle and for the azimuth angle. Be sure to pay attention to this when reading an article about spherical coordinates.
When writing about spherical coordinates, it is recommended to state in advance which symbols represent the zenith and azimuth angles.
Conversion between cylindrical and spherical coordinate systems
The values of are the same in both coordinate systems.
From cylindrical coordinates to spherical coordinates:
For the point in cylindrical coordinates, its spherical is undefined.
From spherical coordinates to cylindrical coordinates:
Conversion between spatial Cartesian and spherical coordinate systems
This can be used together with Conversion between Cartesian and polar coordinate systems and Conversion between cylindrical and spherical coordinate systems, or the formulas below can be used directly:
From spatial Cartesian coordinates to spherical coordinates:
The definition of is given in Conversion between Cartesian and polar coordinate systems.
For the point in the spatial Cartesian coordinate system, the values of its spherical and are undefined.
From spherical coordinates to spatial Cartesian coordinates: