girgit.org

Trigonometric Functions

Sine and cosine for any angle

{ "view": [-1.95, 1.95, -1.3, 1.3], "equal": true, "grid": false, "ticks": {"x": 1, "y": 1}, "params": {"x": {"min": -6.2832, "max": 6.2832, "value": 0.9, "label": "x", "unit": "rad", "play": true, "period": 16}}, "items": [ {"curve": ["cos(t)", "sin(t)"], "t": [0, 6.2832], "color": "dim"}, {"curve": ["(1+0.05*abs(t))*cos(t)", "(1+0.05*abs(t))*sin(t)"], "t": [0, "x"], "color": "d", "width": 3}, {"seg": [[0, 0], ["cos(x)", "sin(x)"]], "color": "ink"}, {"seg": [[0, 0], ["cos(x)", 0]], "color": "c", "width": 4}, {"seg": [["cos(x)", 0], ["cos(x)", "sin(x)"]], "color": "b", "width": 4}, {"text": "cos x", "at": ["cos(x)/2", "sin(x)>=0 ? -0.2 : 0.09"], "anchor": "middle", "color": "c"}, {"text": "sin x", "at": ["cos(x)>=0 ? cos(x) : NaN", "sin(x)/2"], "dx": 8, "color": "b"}, {"text": "sin x", "at": ["cos(x)<0 ? cos(x) : NaN", "sin(x)/2"], "dx": -8, "anchor": "end", "color": "b"}, {"point": [1, 0], "color": "d", "label": "A", "dx": 8, "dy": 18}, {"text": "({cos(x)|2}, {sin(x)|2})", "at": ["cos(x)>=0 ? cos(x) : NaN", "sin(x)+(sin(x)>=0 ? 0.1 : -0.2)"], "dx": 6}, {"text": "({cos(x)|2}, {sin(x)|2})", "at": ["cos(x)<0 ? cos(x) : NaN", "sin(x)+(sin(x)>=0 ? 0.1 : -0.2)"], "dx": -6, "anchor": "end"}, {"point": ["cos(x)", "sin(x)"], "drag": {"param": "x", "by": "turn"}} ], "read": ["P = (cos x, sin x) = ({cos(x)|2}, {sin(x)|2})"] }

The big ideaWalk a distance \( x \) anticlockwise round the unit circle from \( (1, 0) \); the point you reach is \( (\cos x, \sin x) \), and this defines sine and cosine for every real number.

In simple words

Picture a round track with its centre at the middle of graph paper and a radius of 1. Start at the right-hand edge and walk round, against the clock. Wherever you stop, ask two questions: how far to the right of the centre am I, and how far above it? The first answer is the cosine. The second is the sine. Walk backwards and you get the answers for minus numbers.

The definition

Draw a unit circle with its centre at the origin O. Let A be the point \( (1, 0) \). Go along the circle from A, anticlockwise, an arc of length \( x \), and call the point you reach \( P(a, b) \). Then \( \angle AOP = x \) radian, and we define

\[ \cos x = a, \qquad \sin x = b \]

In words: cosine is the \( x \)-coordinate and sine is the \( y \)-coordinate of the point on the unit circle. For negative \( x \), go clockwise instead.

One point, two graphs: as P goes round, its height draws \( \sin x \) to the right and its run draws \( \cos x \) downwards. Same circle, same moment, so the two waves are the same shape a quarter turn apart.
{ "view": [-0.3, 1.5, -0.3, 1.15], "equal": true, "grid": false, "labels": false, "params": {"x": {"min": 0.15, "max": 1.42, "value": 0.7, "label": "x", "unit": "rad"}}, "items": [ {"curve": ["cos(t)", "sin(t)"], "t": [0, 1.5708], "color": "dim"}, {"poly": [[0, 0], ["cos(x)", 0], ["cos(x)", "sin(x)"]], "color": "ink", "fill": true, "width": 0.5}, {"seg": [[0, 0], ["cos(x)", 0]], "color": "c", "width": 4}, {"seg": [["cos(x)", 0], ["cos(x)", "sin(x)"]], "color": "b", "width": 4}, {"seg": [[0, 0], ["cos(x)", "sin(x)"]], "color": "ink", "width": 2.5}, {"poly": [["cos(x)-0.07", 0], ["cos(x)-0.07", 0.07], ["cos(x)", 0.07]], "open": true, "color": "dim", "width": 1.5}, {"angle": [0, 0], "from": 0, "to": "x", "r": 0.2, "label": "x"}, {"text": "1", "at": ["0.5*cos(x)-0.09*sin(x)", "0.5*sin(x)+0.09*cos(x)"], "anchor": "middle", "dy": 5}, {"text": "a", "at": ["cos(x)/2", -0.16], "anchor": "middle", "color": "c"}, {"text": "b", "at": ["cos(x)+0.06", "sin(x)/2"], "color": "b"}, {"text": "O", "at": [-0.05, -0.16], "anchor": "end"}, {"text": "M", "at": ["cos(x)+0.04", -0.16], "anchor": "start"}, {"point": ["cos(x)", "sin(x)"], "label": "P(a, b)", "drag": {"param": "x", "by": "angle"}} ], "read": ["cos x = a ÷ 1 = {cos(x)|2}", "sin x = b ÷ 1 = {sin(x)|2}"] }

This matches what you learnt in Class 10. If \( P \) is in the first quadrant, drop a perpendicular PM to the \( x \)-axis. Triangle OMP is right-angled with hypotenuse \( OP = 1 \), adjacent side \( OM = a \) and opposite side \( MP = b \). So \( \cos x = \tfrac{a}{1} \) and \( \sin x = \tfrac{b}{1} \), exactly the old ratios. The new definition simply keeps working after the triangle runs out.

Try it: walk P round the circle, past the first quadrant and all the way back, and watch the two coordinates.

The most used identity

Since \( P(a, b) \) is on a circle of radius 1, its distance from O is 1. By Pythagoras, \( OM^2 + MP^2 = OP^2 \), so \( a^2 + b^2 = 1 \). Hence, for every real \( x \),

\[ \cos^2 x + \sin^2 x = 1 \]

(\( \cos^2 x \) means \( (\cos x)^2 \).) This holds for every angle, not only acute ones, because every point of the unit circle obeys \( a^2 + b^2 = 1 \).

Quadrantal angles

Angles that are integer multiples of \( \tfrac{\pi}{2} \) put P exactly on an axis. These are called quadrantal angles. A quarter turn takes you from A\( (1, 0) \) to B\( (0, 1) \), a half turn to C\( (-1, 0) \), three quarters to D\( (0, -1) \), and a full turn back to A.

AnglePoint Pcossin
\( 0 \)\( (1, 0) \)\( 1 \)\( 0 \)
\( \tfrac{\pi}{2} \)\( (0, 1) \)\( 0 \)\( 1 \)
\( \pi \)\( (-1, 0) \)\( -1 \)\( 0 \)
\( \tfrac{3\pi}{2} \)\( (0, -1) \)\( 0 \)\( -1 \)
\( 2\pi \)\( (1, 0) \)\( 1 \)\( 0 \)
{ "view": [-1.95, 1.95, -1.35, 1.35], "equal": true, "grid": false, "labels": false, "params": {"k": {"min": 0, "max": 4, "value": 1, "step": 1, "label": "quarter turns", "digits": 0}}, "items": [ {"curve": ["cos(t)", "sin(t)"], "t": [0, 6.2832], "color": "dim"}, {"curve": ["1.06*cos(t)", "1.06*sin(t)"], "t": [0, "k*pi/2"], "color": "d", "width": 3}, {"seg": [[0, 0], ["cos(k*pi/2)", "sin(k*pi/2)"]], "color": "ink", "width": 2.5}, {"point": [1, 0], "color": "dim"}, {"point": [0, 1], "color": "dim"}, {"point": [-1, 0], "color": "dim"}, {"point": [0, -1], "color": "dim"}, {"text": "A(1, 0)", "at": [1.08, 0.1]}, {"text": "B(0, 1)", "at": [0.1, 1.12]}, {"text": "C(−1, 0)", "at": [-1.08, 0.1], "anchor": "end"}, {"text": "D(0, −1)", "at": [0.1, -1.25]}, {"text": "0, 2π", "at": [0.88, -0.2], "anchor": "end", "color": "d"}, {"text": "π/2", "at": [-0.08, 0.78], "anchor": "end", "color": "d"}, {"text": "π", "at": [-0.86, -0.2], "color": "d"}, {"text": "3π/2", "at": [-0.08, -0.86], "anchor": "end", "color": "d"}, {"point": ["cos(k*pi/2)", "sin(k*pi/2)"], "color": "ink"} ], "read": ["x = {k|0} × π/2", "cos x = {round(cos(k*pi/2))|0}", "sin x = {round(sin(k*pi/2))|0}"] }

Going round again changes nothing

After one full turn, \( 2\pi \), you are back at the same point P. After any whole number of turns, forwards or backwards, the same. So for every integer \( n \):

\[ \sin(2n\pi + x) = \sin x, \qquad \cos(2n\pi + x) = \cos x, \qquad n \in \mathbf{Z} \]

Where sine and cosine are zero

  • \( \sin x = 0 \) when P is on the \( x \)-axis: at \( x = 0, \pm\pi, \pm 2\pi, \pm 3\pi, \dots \) So \( \sin x = 0 \) exactly when \( x = n\pi \), \( n \) any integer.
  • \( \cos x = 0 \) when P is on the \( y \)-axis: at \( x = \pm\tfrac{\pi}{2}, \pm\tfrac{3\pi}{2}, \pm\tfrac{5\pi}{2}, \dots \), the odd multiples of \( \tfrac{\pi}{2} \). So \( \cos x = 0 \) exactly when \( x = (2n + 1)\tfrac{\pi}{2} \), \( n \) any integer.
{ "view": [-7, 7, -1.6, 1.7], "aspect": 0.5, "grid": false, "ticks": {"x": "pi", "y": 1, "xunit": "pi"}, "items": [ {"fn": "sin(x)", "color": "b", "width": 2.5, "label": "sin x", "labelAt": 1.2}, {"fn": "cos(x)", "color": "c", "width": 2.5, "label": "cos x", "labelAt": -0.6}, {"point": ["-2*pi", 0], "color": "b"}, {"point": ["-1*pi", 0], "color": "b"}, {"point": ["0*pi", 0], "color": "b"}, {"point": ["1*pi", 0], "color": "b"}, {"point": ["2*pi", 0], "color": "b"}, {"point": ["-3*pi/2", 0], "color": "c"}, {"point": ["-1*pi/2", 0], "color": "c"}, {"point": ["1*pi/2", 0], "color": "c"}, {"point": ["3*pi/2", 0], "color": "c"}, {"text": "sin x = 0", "at": [-6.8, -1.35], "color": "b"}, {"text": "cos x = 0", "at": [6.8, -1.35], "anchor": "end", "color": "c"} ] }

Worked example

  1. \( \sin \tfrac{5\pi}{2} = \sin\left(2\pi + \tfrac{\pi}{2}\right) = \sin \tfrac{\pi}{2} = 1 \).
  2. \( \cos(-3\pi) = \cos(-4\pi + \pi) = \cos \pi = -1 \). (Here \( n = -2 \).)
  3. \( \cos 7\pi \): \( 7\pi = 6\pi + \pi \), so \( \cos 7\pi = \cos \pi = -1 \).
  4. If \( \cos x = 0.6 \), what can \( \sin x \) be? \( \sin^2 x = 1 - 0.36 = 0.64 \), so \( \sin x = 0.8 \) or \( -0.8 \). Without knowing the quadrant, both are possible.
{ "view": [-1.95, 1.95, -1.3, 1.3], "equal": true, "grid": false, "ticks": {"x": 1, "y": 1}, "params": {"c": {"min": -1, "max": 1, "value": 0.6, "label": "cos x", "step": 0.01}}, "items": [ {"curve": ["cos(t)", "sin(t)"], "t": [0, 6.2832], "color": "dim"}, {"seg": [["c", -1.25], ["c", 1.25]], "color": "c", "dash": true}, {"seg": [[0, 0], ["c", 0]], "color": "c", "width": 4}, {"seg": [["c", 0], ["c", "sqrt(1-c*c)"]], "color": "b", "width": 4}, {"seg": [["c", 0], ["c", "-sqrt(1-c*c)"]], "color": "b", "width": 4}, {"point": ["c", "sqrt(1-c*c)"], "color": "b"}, {"text": "({c|1}, {sqrt(1-c*c)|1})", "at": ["c", "sqrt(1-c*c)"], "dx": -12, "dy": -8, "anchor": "end", "color": "b"}, {"point": ["c", "-sqrt(1-c*c)"], "color": "b"}, {"text": "({c|1}, −{sqrt(1-c*c)|1})", "at": ["c", "-sqrt(1-c*c)"], "dx": -12, "dy": 18, "anchor": "end", "color": "b"}, {"point": ["c", 0], "color": "c", "drag": {"param": "c", "by": "x"}} ], "read": ["sin x = ±√(1 − {c*c|2}) = ±{sqrt(1-c*c)|2}"] }

Remember

  • On the unit circle, \( P = (\cos x, \sin x) \).
  • \( \cos^2 x + \sin^2 x = 1 \) for every real \( x \).
  • \( \sin x = 0 \iff x = n\pi \); \( \cos x = 0 \iff x = (2n+1)\tfrac{\pi}{2} \).

Try it. (a) Find \( \sin \tfrac{7\pi}{2} \) and \( \cos(-2\pi) \). (b) Is \( \sin x = 0 \) at \( x = 15\pi \)? Is \( \cos x = 0 \) at \( x = 15\pi \)? (c) If \( \sin x = \tfrac{5}{13} \), find the two possible values of \( \cos x \).

Answer
(a) \( \tfrac{7\pi}{2} = 2\pi + \tfrac{3\pi}{2} \), so \( \sin \tfrac{7\pi}{2} = -1 \); \( \cos(-2\pi) = \cos 0 = 1 \). (b) \( 15\pi \) is a multiple of \( \pi \), so \( \sin 15\pi = 0 \); and \( \cos 15\pi = \cos \pi = -1 \), not 0. (c) \( \cos^2 x = 1 - \tfrac{25}{169} = \tfrac{144}{169} \), so \( \cos x = \pm\tfrac{12}{13} \).

Just remember

Two conventions with no deeper reason: someone had to pick an order and a way of writing it. Hooks below; the unit circle rebuilds both.

The point is \( (\cos x, \sin x) \), cos first
Alphabet order twice over: c before s, and x before y. So cos goes with \( x \) (across) and sin with \( y \) (up). Rebuild: at \( x = 0 \) you stand at \( (1, 0) \), and \( \cos 0 = 1 \), \( \sin 0 = 0 \), so the first number must be cos.
\( \cos^2 x \) means \( (\cos x)^2 \)
The little 2 sits on the function's name but squares the answer, not the angle. It is not \( \cos(x^2) \). (Only \( \cos^{-1} x \), in Class 12, breaks this pattern.)

Words to know

Unit circle
Circle of radius 1 with centre at the origin.
\( \cos x \)
The \( x \)-coordinate of the point reached after an arc \( x \).
\( \sin x \)
The \( y \)-coordinate of that point.
Quadrantal angle
An integer multiple of \( \tfrac{\pi}{2} \); the point lies on an axis.
\( n \in \mathbf{Z} \)
\( n \) is any integer: \( \dots, -2, -1, 0, 1, 2, \dots \)

The point on the unit circle for angle \( x \) is \( (-0.6, 0.8) \). What is \( \sin x \)?

  1. \( -0.6 \)
  2. \( 0.8 \)
  3. \( -\tfrac{4}{3} \)

For which values of \( x \) is \( \cos x = 0 \)?

  1. \( x = n\pi \)
  2. \( x = (2n + 1)\tfrac{\pi}{2} \)
  3. \( x = 2n\pi \)

Which statement is true for every real \( x \)?

  1. \( \sin x + \cos x = 1 \)
  2. \( \sin^2 x + \cos^2 x = 1 \)
  3. \( \sin x = \cos x \)

Deep dive · optional

Why is the sine half of a bowstring?

Where the definition comes from, why it is a coordinate, and how an Indian word for a bowstring became the English word "sine". The exam does not ask this; it is here so the definition never feels arbitrary again.

  1. The roots
  2. The story
  3. See it
  4. Solve it
  5. Connect it
  6. Still confused?

The roots: why a coordinate, why radius 1

  1. Why is \( \sin x \) the \( y \)-coordinate of P?Because for an acute angle that is exactly the Class 10 ratio: opposite ÷ hypotenuse, with the hypotenuse OP equal to 1. The new definition agrees with the old one wherever the old one works.
  2. Why does it have to be a circle of radius 1?It does not have to be. On a circle of radius \( r \) the point is \( (r\cos x, r\sin x) \); dividing by \( r \) gives the same two numbers. Radius 1 just means there is nothing to divide by: the coordinates are the values.
  3. Why does \( \cos^2 x + \sin^2 x = 1 \) then hold for every angle?Because every point of the circle is at distance 1 from O, in every quadrant. The definition was chosen so that this, the most useful fact about the triangle, survives after the triangle is gone.
  4. Why is this "half a chord"?Reflect P in the \( x \)-axis to get P′, at angle \( -x \). The chord PP′ is cut in half by the axis at M, so \( MP = \sin x \) is half the chord of the arc \( 2x \). Old astronomers measured chords of circles; the half-chord is the piece that sits in a right triangle.
  5. And underneath?Pythagoras: a circle is just the set of points at one fixed distance from the centre, and distance is worked out with \( a^2 + b^2 \).

So "sine" is not a new invention of this chapter. Greek astronomers, from Hipparchus in the second century BCE, made tables of chords: the straight line across a circle for a given arc. Indian astronomers noticed that only half of that chord is needed, because the half-chord, the radius and a piece of the diameter make a right triangle. That half-chord is our sine. The chord itself is still useful: for an arc \( 2x \) on a unit circle,

\[ \text{chord}(2x) = 2\sin x . \]

The story: a bowstring that became a fold

Stone statue of a seated, bearded scholar with a book, on a pedestal in a garden
A modern statue of Aryabhata at IUCAA, Pune. No picture from his own time survives; the face is the sculptor's idea.

Why the odd radius 3438? A full circle has \( 360 \times 60 = 21600 \) minutes of arc. If the radius is measured in the same "minutes" as the arc, it must be \( \tfrac{21600}{2\pi} \approx 3437.7 \), so 3438. Aryabhata was measuring the radius and the arc with one ruler, which is exactly the idea behind the radian on page 2. That is why his first jump, 225, equals the first arc, 225 minutes: for a small angle the half-chord and the arc are almost the same length.

See it: the table, all at once

Printed book page from Clark's 1930 translation of the Aryabhatiya, with stanza 10 listing the twenty-four sines 225, 224, 222 and so onthe 24 jumpsradius 3438
Stanza 10 of the Aryabhatiya in W. E. Clark's 1930 English translation: twenty-four numbers, each a jump in the half-chord, for every 3°45′ of arc on a circle of radius 3438.

Drag P below and the bow, the string and the half-string move together. Then look at the bottom chart: all 24 of Aryabhata's jumps as bars, their running total as dots, and the true sine curve under the dots. Tap a bar to see how close a 1,500-year-old table comes.

Why do the jumps shrink? Near 0° the point P on the circle moves almost straight up, so its height grows fast. Near 90° it moves almost sideways, so its height hardly changes. The size of each jump follows the cosine, and the cosine falls from 1 to 0. (This is the first glimpse of a Class 12 fact: the rate of change of \( \sin x \) is \( \cos x \).)

Solve it

Solve it

Aryabhata's first sine is 225 on a circle of radius 3438, for an arc of 225 minutes. Turn this into today's numbers and say what it tells you about \( \sin x \) for a small angle.

Hint
Divide the half-chord by the radius. Then write the arc 3°45′ in radians.
Answer
\( \sin 3^\circ 45' \approx \tfrac{225}{3438} = 0.06545 \). The arc in radians is \( 3.75 \times \tfrac{\pi}{180} = 0.06545 \) too. The true value is \( \sin 3.75^\circ = 0.06540 \). So for a small angle in radians, \( \sin x \approx x \): the half-chord is almost the arc. The table is accurate to the nearest whole minute, so it cannot see the tiny difference.

Spot the error

A student writes: "P = (3, 4) is on the terminal side of angle \( x \), and sine is the \( y \)-coordinate, so \( \sin x = 4 \)." What went wrong, and what is \( \sin x \)?

Answer
Sine is the \( y \)-coordinate only on the unit circle. The point (3, 4) is at distance \( \sqrt{9 + 16} = 5 \) from O, so it lies on the circle of radius 5. Divide by 5: \( \sin x = \tfrac{4}{5} \), \( \cos x = \tfrac{3}{5} \). A value of 4 is impossible anyway, since \( \sin x \) never goes above 1.

Solve it (JEE style)

A and B are the points of the unit circle for angles \( a \) and \( b \). Show that the chord AB has length \( 2\left|\sin \tfrac{a - b}{2}\right| \). Then find the side of a regular 12-sided polygon drawn inside a circle of radius 10 cm.

Hint
The angle AOB is \( a - b \) (or its negative). Drop a perpendicular from O to AB: it cuts the chord and the angle in half.
Answer
Triangle AOB is isosceles with OA = OB = 1. The perpendicular from O bisects the angle \( |a - b| \) and the chord, making two right triangles with hypotenuse 1 and opposite side \( \sin\tfrac{|a - b|}{2} \). So AB \( = 2\left|\sin\tfrac{a - b}{2}\right| \). For 12 sides each side subtends \( 30^\circ \) at the centre, so the side is \( 2 \times 10 \times \sin 15^\circ \approx 20 \times 0.2588 = 5.18 \) cm.

Connect it

Connect it

  • Radians, page 2. Aryabhata's 3438 is a radius measured in arc-minutes: the same "measure the arc with the radius" idea as the radian.
  • The sum formula, page 9. The proof of \( \cos(x + y) \) on page 9 compares two chords of the unit circle: chords again.
  • Physics: SHM and circular motion. The shadow of a point going round a circle moves in simple harmonic motion, \( x = A\cos\omega t \): Oscillations.
  • Limits, Ch 12. "The half-chord is almost the arc" becomes \( \lim_{x \to 0} \tfrac{\sin x}{x} = 1 \): sin x over x.
  • The circle, Ch 10. Every point of \( x^2 + y^2 = r^2 \) can be written \( (r\cos\theta, r\sin\theta) \): the circle.

Still confused?

In Class 10 sine was a ratio. Now it is a coordinate. Which is it?

Both, and they agree. A ratio does not depend on the size of the triangle, so you may pick the triangle whose hypotenuse is 1. Then "opposite ÷ hypotenuse" is just "opposite", which is the \( y \)-coordinate of P. The coordinate version is the ratio version with the division already done, and it keeps working past 90°.

Is \( x \) an angle or a length here?

On the unit circle it is both at once. The arc walked from A has length \( x \), and the angle it makes at O is \( x \) radians, because on a circle of radius 1 arc length = angle in radians. That is why the definition can say "walk a distance \( x \)".

Why did old tables use a radius like 3438 or 60 instead of 1?

Before decimals were common, a fraction like 0.0654 was awkward to write. A big radius turned every sine into a whole number of units (225 instead of 0.0654). Radius 1 became the standard with Euler's book of 1748; see the story on page 6.