Degrees and radians
An angle measures an amount of turning. A full turn is 360 degrees (360°), so a half turn is 180° and a quarter turn, a right angle, is 90°. Turning anticlockwise counts as positive and turning clockwise as negative.
Maths and Python use a second unit, the radian, which comes from a length. Draw the unit circle: radius 1, centred at the origin . An angle of radians at the centre ( is the Greek letter theta) cuts off an arc of length on that circle.
One radian cuts off an arc as long as the radius, about 57.3°. Six radians and a bit go round once: a full turn is radians, and a half turn is .
The whole circle has length , so a full turn is radians. That single fact gives every conversion: , so and one radian is degrees.
On a circle of radius , every arc is times as long, so the arc length is with in radians. A radian is a length divided by a length, so it has no units. An angle written without the ° sign is in radians.
Rule: Converting angles
Both come from radians. The angles below are worth knowing in both units.
| degrees | radians | as a decimal |
|---|---|---|
| 30° | 0.523599 | |
| 45° | 0.785398 | |
| 60° | 1.047198 | |
| 90° | 1.570796 | |
| 180° | 3.141593 | |
| 270° | 4.712389 | |
| 360° | 6.283185 |
Going back, radians is of 180°, which is 135°.
Try it
math.radians and math.degrees do the two conversions. The loop prints the last column of the table.
The last two lines turn and 1 radian into degrees.
Sine and cosine on the unit circle
Start at the point on the unit circle and turn through an angle . The across coordinate of the point you reach is the cosine of , written . The up coordinate is the sine, .
Rule: Sine and cosine
Cosine is the horizontal coordinate and sine the vertical one. The point stays on a circle of radius 1, so both lie between and 1.
The quarter turns land on the axes. At 0 the point is , so and . A quarter turn reaches , a half turn , and three quarters : so and .
Sine and cosine are functions in the sense of lesson 1.1.1: each angle gives one output. Their domain is every real number and their range is .
Move the slider and watch the two coordinates. Then try the presets 30°, 150°, 210° and 330°: the sine is 0.5 or each time. Switch on radians to see each angle as a fraction of .
Explore
Turn the angle. The point on the circle is (cos θ, sin θ): its across distance is the cosine and its height is the sine.
- Angle
- θ = 30°
- cos θ (across)
- 0.866025
- sin θ (up)
- 0.5
- Where
- quadrant 1; cos² θ + sin² θ = 1
Exact values at 30°, 45° and 60°
Three angles come up so often that their exact values are worth knowing. Each comes from a triangle and Pythagoras' theorem. If a right-angled triangle has shorter sides and and longest side , then .
45°. The radius at 45° is the long side of a right-angled triangle with two equal legs, so . Call that value . Then , so and .
60°. The point at 60°, the origin and make a triangle. Two of its sides are radii, with 60° between them, so all three sides are 1. The point sits above the middle of the base, so , and Pythagoras gives .
30°. The point at 30° is the point at 60° mirrored in the line , so the two coordinates swap: and .
The legs of each triangle are the cosine and sine of its angle. At 30° the two legs of the 60° triangle swap places.
| angle | 0 | 30° = | 45° = | 60° = | 90° = |
|---|---|---|---|---|---|
| 1 | 0 | ||||
| 0 | 1 |
A pattern helps to remember the sine row: it is . The cosine row is the same list backwards.
Try it
Each line prints the angle, then cosine and sine from math, then the exact values from the table as decimals. The two pairs agree.
Signs, and every other angle
The two axes cut the plane into four quadrants, numbered I to IV anticlockwise from the top right. Inside each one the signs of the two coordinates are fixed.
| quadrant | angles | ||
|---|---|---|---|
| I | 0° to 90° | ||
| II | 90° to 180° | ||
| III | 180° to 270° | ||
| IV | 270° to 360° |
Every point on the circle is a mirror image of one in quadrant I. Its reference angle is the angle between its radius and the horizontal axis, always between 0° and 90°.
Rule: Any angle
The coordinates have the sizes of the reference angle's coordinates. The quadrant decides which of them are negative.
Example 1. Find the exact cosine and sine of 150°, 225° and 300°.
- 150° is 30° short of 180°, in quadrant II. The reference angle is 30° and the cosine is negative: , .
- 225° is 45° past 180°, in quadrant III. Both are negative: .
- 300° is 60° short of 360°, in quadrant IV. Only the sine is negative: , .
A negative angle turns clockwise, which mirrors the point in the horizontal axis. The across part stays and the up part flips: and . So lands where 330° does, at .
Try it
The loop prints cosine and sine at an angle in each quadrant, then at . Each pair is an entry of the exact table, with signs.
The Pythagorean identity
The point is always 1 from the origin. Its across and up distances are the legs of a right-angled triangle with long side 1, so Pythagoras' theorem holds at every angle.
Rule: Pythagorean identity
means . Knowing one of the two and the quadrant gives the other.
Example 2. An angle in quadrant IV has . Find .
The identity gives , so is 0.8 or . In quadrant IV the sine is negative, so .
Try it
The loop adds at five angles, rounded to 12 places. It is 1 every time, even for 1000°.
Then math.acos(0.6) undoes the cosine, giving the angle between 0 and with cosine 0.6. Its negative is in quadrant IV, and its sine is .
Periodic functions and their graphs
One more full turn brings the point back to the same place. So sine and cosine repeat every , that is every 360°. A function that repeats like this is periodic, and the length of the shortest repeat is its period.
Rule: Period of sine and cosine
Adding or taking away any whole number of turns changes neither. So 30°, 390°, 750° and all have sine .
Plotted against , both make the same wave between and 1. Sine is 0 at every multiple of , and cosine is 0 halfway between, at , and so on. The cosine wave is the sine wave moved to the left, a shift from lesson 1.1.2: .
Tangent
The tangent of is the sine divided by the cosine. It is the slope of the radius at angle : rise over run , as in lesson 1.2.1. From the exact table, , and .
Tangent breaks where the cosine is 0, at 90°, 270° and every half turn from them. There the radius is vertical and has no slope. Near it shoots off: it is 14.1014 at 1.5 and 1255.7656 at 1.57, then just past, at 1.6.
A half turn flips the signs of both sine and cosine, and leaves their ratio alone. So tangent repeats every , not every : .
Rule: Tangent
The slope of the radius at angle . Its period is .
Sine and cosine make the same wave, a quarter turn apart, repeating every . Tangent repeats every and shoots off to infinity at each dashed line, where .
Try it
The first loop checks the period: four angles a whole number of turns apart, one sine.
The second follows tangent past : the cosine shrinks to almost 0 and the tangent blows up, then changes sign. Python does not reject math.tan(math.pi / 2). Its is very slightly off, so the cosine is tiny but not 0, and the answer is huge.
Lesson 1.7.3 writes the point as one complex number, and lesson 2.1.1 needs radians for the limit of at 0.
Common mistakes
- Python works in radians.
math.sin(90)is the sine of 90 radians, 0.893997, not of 90°. Convert first withmath.radians. - Convert the right way round. Degrees to radians multiplies by ; radians to degrees multiplies by .
- Cosine is across, sine is up. The point at 30° is , not the other way round.
- Take the sign from the quadrant. is : the size of , with a minus sign.
- The identity gives two answers. allows 0.8 and . The quadrant decides which.
- means , not . At they are 0.25 and 0.270734.
- Tangent has gaps. At 90° and 270° the cosine is 0 and has no value, whatever Python prints.
Angles, sine, cosine and tangent
0 of 12 correct
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
How to type answers
- Powers with
^:x^7,2^(1/3),a^-2. - Multiply with
*or by writing side by side:3x^2,2(x+1). ln(x)is the natural log,log(x, 2)is log base 2,eis Euler's number,sqrt(x)is a square root.sin(x),cos(x)andtan(x)take radians; writepifor π andsin(x)^2for sin²x.- Your first answer to each question is saved: it counts towards your score and brings the question back for review.
- Exact answers like
ln(20)/ln(3)are best. Decimals need about 4 significant figures.
Summary card
- A full turn is 360° or radians. Radians degrees ; degrees radians . Python works in radians.
- On a circle of radius , an angle of radians cuts off an arc of length .
- The point at angle on the unit circle is : cosine across, sine up.
- Exact values: , , . Other angles take the size from the reference angle and the sign from the quadrant.
- , , and for every angle.
- Sine and cosine repeat every . repeats every and has no value where .