girgit.org

Trigonometric Functions

What the graphs look like, and why they repeat

{ "view": [-0.7, 19.4, -1.75, 1.85], "aspect": 0.5, "grid": false, "ticks": {"x": "2*pi", "y": 1, "xunit": "pi"}, "params": {"p": {"min": 0, "max": 12.566, "value": 1.6, "label": "shift", "fmt": "pi", "play": true, "period": 12}}, "items": [ {"fn": "sin(x)", "domain": [0, 19.4], "color": "b", "width": 2}, {"curve": ["t+p", "sin(t)"], "t": [0, 6.2832], "color": "e", "width": 4}, {"seg": [[0, 1.45], ["max(p, 0.001)", 1.45]], "color": "e", "width": 2, "arrow": true}, {"text": "shift {p/pi|2}π", "at": ["p/2", 1.45], "dy": -10, "anchor": "middle", "color": "e"} ], "read": ["biggest gap between copy and wave: {2*abs(sin(p/2))|2}"] }

The big ideaTrigonometric functions repeat: sine, cosine, secant and cosecant every \( 2\pi \), tangent and cotangent every \( \pi \), so their graphs are one basic shape copied again and again.

In simple words

A ceiling fan blade comes back to the same spot after each full turn. So anything you measure about it, such as its height, also comes back to the same value. Draw that height against time and you get the same hump and dip over and over, like waves on the sea. To find the value for a huge angle, throw away the full turns and look only at what is left.

Repeating after a fixed gap

We saw that \( \sin(2n\pi + x) = \sin x \) and \( \cos(2n\pi + x) = \cos x \): the values of sine and cosine repeat after an interval of \( 2\pi \). Their reciprocals, \( \operatorname{cosec} x \) and \( \sec x \), must repeat after \( 2\pi \) too.

Tangent repeats sooner. Going half a turn round, from P to the opposite point, changes the signs of both coordinates, and \( \tfrac{-b}{-a} = \tfrac{b}{a} \). So \( \tan(\pi + x) = \tan x \) (proved properly in the next pages), and tan repeats after an interval of \( \pi \). Its reciprocal, \( \cot x \), repeats after \( \pi \) too.

{ "view": [-1.95, 1.95, -1.3, 1.3], "equal": true, "grid": false, "labels": false, "params": {"x": {"min": 0.1, "max": 3.04, "value": 0.6, "label": "x", "fmt": "deg"}}, "items": [ {"curve": ["cos(t)", "sin(t)"], "t": [0, 6.2832], "color": "dim"}, {"seg": [["-1.25*cos(x)", "-1.25*sin(x)"], ["1.25*cos(x)", "1.25*sin(x)"]], "color": "d", "width": 2.5}, {"angle": [0, 0], "from": "x", "to": "x+pi", "r": 0.28, "color": "e", "label": "π"}, {"point": ["cos(x)", "sin(x)"], "drag": {"param": "x", "by": "angle"}}, {"point": ["-cos(x)", "-sin(x)"], "color": "e"}, {"text": "P({cos(x)|2}, {sin(x)|2})", "at": ["cos(x)", "sin(x)"], "dx": 12, "dy": 22}, {"text": "({-cos(x)|2}, {-sin(x)|2})", "at": ["-cos(x)", "-sin(x)"], "dx": -12, "dy": 20, "anchor": "end", "color": "e"} ], "read": ["tan x = {tan(x)|2}", "tan(π + x) = {(-sin(x))/(-cos(x))|2}"] }

The smallest such gap is called the period of the function.

Try it: run the point round twice and watch each graph repeat. Which one repeats soonest?

The graphs of sine and cosine

\( y = \sin x \) is a smooth wave. It passes through the origin, rises to a peak of 1 at \( x = \tfrac{\pi}{2} \), comes back down to cross the \( x \)-axis at \( \pi \), sinks to a lowest value of \( -1 \) at \( \tfrac{3\pi}{2} \), and returns to 0 at \( 2\pi \). Then the same hump and dip repeat to the right (\( 2\pi \) to \( 4\pi \), and on) and to the left (\( -2\pi \) to 0, and on). It crosses the \( x \)-axis at every multiple of \( \pi \) and never goes above 1 or below \( -1 \). Because \( \sin(-x) = -\sin x \), the left half is the right half turned upside down: the graph is symmetric about the origin.

{ "view": [-6.8, 6.8, -1.6, 1.7], "aspect": 0.5, "grid": false, "ticks": {"x": "pi", "y": 1, "xunit": "pi"}, "params": {"x0": {"min": -6.5, "max": 6.5, "value": 2.2, "label": "x", "unit": "rad"}}, "items": [ {"fn": "sin(x)", "color": "b", "width": 2.5}, {"seg": [["x0", "sin(x0)"], ["-x0", "-sin(x0)"]], "color": "dim", "dash": true, "width": 1.5}, {"point": ["pi/2", 1], "color": "b", "label": "peak 1", "dx": -20, "dy": -10}, {"point": ["3*pi/2", -1], "color": "b", "label": "lowest −1", "dx": -30, "dy": 24}, {"point": ["-x0", "-sin(x0)"], "color": "e"}, {"point": ["x0", "sin(x0)"], "color": "ink", "drag": {"param": "x0", "by": "x"}} ], "read": ["sin({x0|2}) = {sin(x0)|2}", "sin({-x0|2}) = {-sin(x0)|2}"] }

\( y = \cos x \) is exactly the same wave, slid \( \tfrac{\pi}{2} \) to the left. It starts at its peak, \( (0, 1) \), falls through 0 at \( \tfrac{\pi}{2} \) to \( -1 \) at \( \pi \), climbs through 0 at \( \tfrac{3\pi}{2} \) and is back at 1 at \( 2\pi \). Because \( \cos(-x) = \cos x \), its left half is the mirror image of its right half in the \( y \)-axis.

{ "view": [-6.8, 6.8, -1.6, 1.7], "aspect": 0.5, "grid": false, "ticks": {"x": "pi", "y": 1, "xunit": "pi"}, "params": {"s": {"min": 0, "max": 1.5708, "value": 0.5, "label": "shift left", "fmt": "pi"}}, "items": [ {"fn": "cos(x)", "color": "c", "width": 5, "label": "cos x", "labelAt": -2.5}, {"fn": "sin(x)", "color": "b", "width": 1, "dash": true}, {"fn": "sin(x+s)", "color": "b", "width": 2.5, "label": "sin x slid", "labelAt": 3.3}, {"seg": [["pi/2", 1.3], ["pi/2-s+0.001", 1.3]], "color": "b", "arrow": true, "width": 1.5} ], "read": ["shift = {s/pi|2}π"] }
One cabin of a giant wheel, its height drawn against time: each full turn of the wheel draws one full wave, so the wheel's period is the wave's period. Our own animation, computed from h = 22 − 20 cos(2πt/T).

The graphs of tangent and cotangent

\( y = \tan x \) is not one wave but a row of separate pieces. There are vertical dashed lines at \( x = \pm\tfrac{\pi}{2}, \pm\tfrac{3\pi}{2}, \dots \), where tan is not defined. Between two neighbouring lines, the curve comes up from far below, crosses the \( x \)-axis at the middle point (\( 0, \pi, 2\pi, \dots \)), and climbs steeply towards the next line, getting closer and closer to it without touching. Every piece is an identical, always-rising copy, one every \( \pi \).

\( y = \cot x \) looks like tan reflected: the vertical lines are at \( 0, \pm\pi, \pm 2\pi, \dots \), and in each gap the curve comes down from very high, crosses the \( x \)-axis at \( \tfrac{\pi}{2}, \tfrac{3\pi}{2}, \dots \), and falls away to very low. Each piece is always falling.

{ "view": [-3.5, 6.6, -3.2, 3.2], "aspect": 0.62, "grid": false, "ticks": {"x": "pi/2", "y": 1, "xunit": "pi"}, "items": [ {"vline": "-pi/2", "color": "d", "dash": true, "width": 1.2}, {"vline": "pi/2", "color": "d", "dash": true, "width": 1.2}, {"vline": "3*pi/2", "color": "d", "dash": true, "width": 1.2}, {"vline": "-pi", "color": "e", "dash": true, "width": 1.2}, {"vline": "pi", "color": "e", "dash": true, "width": 1.2}, {"vline": "2*pi", "color": "e", "dash": true, "width": 1.2}, {"fn": "tan(x)", "color": "d", "width": 3, "label": "tan x", "labelAt": 1.2}, {"fn": "1/tan(x)", "color": "e", "width": 3, "label": "cot x", "labelAt": 3.55}, {"seg": [["-pi/2", -2.75], ["pi/2", -2.75]], "color": "ink", "width": 1.5}, {"text": "period π", "at": [0, -2.62], "anchor": "middle"} ] }

The graphs of secant and cosecant

\( y = \sec x \) is a row of U-shaped cups. Vertical lines stand where \( \cos x = 0 \) (\( \pm\tfrac{\pi}{2}, \pm\tfrac{3\pi}{2}, \dots \)). Where \( \cos x \) is positive, the cup opens upward with its lowest point at height 1 (at \( x = 0, \pm 2\pi, \dots \)). Where \( \cos x \) is negative, the cup opens downward with its highest point at \( -1 \) (at \( x = \pm\pi, \pm 3\pi, \dots \)). No part of the graph lies in the strip between \( y = -1 \) and \( y = 1 \): that is its range in picture form.

\( y = \operatorname{cosec} x \) is the same cup pattern built on the sine wave: vertical lines at the multiples of \( \pi \), an upward cup with lowest point 1 at \( \tfrac{\pi}{2} \), a downward cup with highest point \( -1 \) at \( \tfrac{3\pi}{2} \), and so on, repeating every \( 2\pi \).

{ "view": [-3.5, 6.6, -3.4, 3.4], "aspect": 0.62, "grid": false, "ticks": {"x": "pi/2", "y": 1, "xunit": "pi"}, "params": {"x0": {"min": -3.3, "max": 6.4, "value": 0.8, "label": "x", "unit": "rad"}}, "items": [ {"area": {"between": ["1", "-1"], "from": -3.5, "to": 6.6}, "color": "dim", "opacity": 0.35}, {"vline": "-pi/2", "color": "e", "dash": true, "width": 1.2}, {"vline": "pi/2", "color": "e", "dash": true, "width": 1.2}, {"vline": "3*pi/2", "color": "e", "dash": true, "width": 1.2}, {"fn": "cos(x)", "color": "c", "width": 2, "label": "cos x", "labelAt": 3.6}, {"fn": "1/cos(x)", "color": "e", "width": 3, "label": "sec x", "labelAt": 0.95}, {"point": ["x0", "cos(x0)"], "color": "c"}, {"point": ["x0", "1/cos(x0)"], "color": "e", "drag": {"param": "x0", "by": "x"}} ], "read": ["cos x = {cos(x0)|2}", "sec x = {1/cos(x0)|2}"] }

Using the period to find values

To find a function of a large or negative angle, add or subtract whole periods until the angle is one you know.

Worked example

  1. \( \sin \tfrac{25\pi}{6} \): \( \tfrac{25\pi}{6} = 4\pi + \tfrac{\pi}{6} \), so the value is \( \sin \tfrac{\pi}{6} = \tfrac{1}{2} \).
  2. \( \sin 1110^\circ \): \( 1110^\circ = 3 \times 360^\circ + 30^\circ \), so the value is \( \sin 30^\circ = \tfrac{1}{2} \).
  3. \( \operatorname{cosec}(-690^\circ) \): add \( 2 \times 360^\circ = 720^\circ \) to get \( 30^\circ \). So the value is \( \operatorname{cosec} 30^\circ = 2 \).
  4. \( \tan \tfrac{13\pi}{4} \): tan has period \( \pi \), and \( \tfrac{13\pi}{4} = 3\pi + \tfrac{\pi}{4} \), so the value is \( \tan \tfrac{\pi}{4} = 1 \).

Try it: drag the angle as big as you like, either way, and see what is left after the full periods go.

Don't mix these up

  • Sin, cos, sec and cosec repeat every \( 2\pi \); tan and cot every \( \pi \).
  • For tan and cot you may remove whole multiples of \( \pi \), not just \( 2\pi \). For sin and cos, removing a single \( \pi \) changes the sign.
  • The dashed vertical lines in the tan, cot, sec and cosec graphs are not part of the graph; they mark where the function is not defined.

Try it. (a) Find \( \cos 750^\circ \). (b) Find \( \cot\left(-\tfrac{11\pi}{4}\right) \). (c) Where does the graph of \( y = \sin x \) reach its lowest value between 0 and \( 4\pi \)?

Answer
(a) \( 750^\circ = 720^\circ + 30^\circ \), so \( \cos 30^\circ = \tfrac{\sqrt{3}}{2} \). (b) Add \( 3\pi \): \( -\tfrac{11\pi}{4} + 3\pi = \tfrac{\pi}{4} \). Cot has period \( \pi \), so the value is \( \cot \tfrac{\pi}{4} = 1 \). (c) At \( x = \tfrac{3\pi}{2} \) and \( x = \tfrac{7\pi}{2} \), where \( \sin x = -1 \).

Just remember

The reason is above (half a turn keeps P on the same line), but here is a one-second check.

Period \( \pi \): tan and cot. Period \( 2\pi \): sin, cos, sec, cosec
"Got a t in your name? You repeat in half the time." Only tan and cot have a letter t, and only they repeat every \( \pi \). Rebuild: tan is the slope of OP, and the opposite point \( (-a, -b) \) sits on the same line, so the slope comes back after half a turn; a height or a run needs the full turn.

Words to know

Period
The smallest gap after which a function's values repeat.
Sine wave
The smooth repeating hump-and-dip graph of \( y = \sin x \).
Vertical line in a graph
A value of \( x \) where the function is not defined and shoots off towards \( \pm\infty \).
Period of tan and cot
\( \pi \), half that of the other four.

What is \( \cos(-1440^\circ) \)?

  1. 1
  2. 0
  3. \( -1 \)

Which statement about the graph of \( y = \cos x \) is true?

  1. It passes through the origin
  2. It is symmetric about the \( y \)-axis
  3. It has vertical lines at odd multiples of \( \tfrac{\pi}{2} \)

Is \( \tan\left(x + \pi\right) = \tan x \) for every \( x \) in the domain of tan?

  1. No, half a turn changes the sign of tan
  2. Yes, tan repeats every \( \pi \)
  3. Only for \( x \) in the first quadrant

Deep dive · optional

Why the wave never repeats sooner, and a sine with no table

A proof that \( 2\pi \) really is the smallest gap, a giant wheel turned into an equation, and a 1,400-year-old fraction that draws the sine curve almost perfectly. None of it is needed for the exam's basic questions; all of it makes the graphs stick.

  1. The roots
  2. The story
  3. See it
  4. Solve it
  5. Connect it

Why exactly 2π, and why exactly π?

  1. Why does \( \sin x \) repeat after \( 2\pi \)?Because \( \sin x \) only depends on where P stands, and a walk of \( 2\pi \) round the unit circle brings P back to the same spot.
  2. Why is a full walk \( 2\pi \) long?The unit circle has radius 1, so its circumference is \( 2\pi \times 1 \). In radians, the angle is the distance walked.
  3. Could some smaller gap \( p \) also work, for every \( x \)?No. If \( \sin(x + p) = \sin x \) for every \( x \), it must hold at \( x = \tfrac{\pi}{2} \), so \( \sin\left(\tfrac{\pi}{2} + p\right) = 1 \). Sine is 1 only at the very top of the circle, so \( p \) has to be a whole number of full turns: \( 2\pi, 4\pi, \dots \) The smallest is \( 2\pi \).
  4. Why does tan get away with \( \pi \)?\( \tan x \) is the slope of the line OP. Half a turn takes P to the other end of the same line through O, and a line has one slope. For tan the same test gives: \( \tan p = \tan 0 = 0 \), so \( p \) is a multiple of \( \pi \), smallest \( \pi \).
  5. So what is the bedrock?A full turn is the circumference of the unit circle, and the functions read off one point of it. Same point, same values.

The test in step 3 is worth keeping: to prove a gap is the smallest period, pick one clever \( x \) where the function takes a value it reaches only once per turn. And notice what a period does to a real motion. The cabin of a giant wheel of radius 20 m on an axle 22 m high, starting at the bottom and turning once every \( T \) seconds, is at height

\[ h(t) = 22 - 20\cos\left(\frac{2\pi t}{T}\right), \]

because after \( t \) seconds it has turned through the angle \( \tfrac{2\pi t}{T} \). Put in \( t = T \): the angle is \( 2\pi \) and the height is back where it began. The wheel's period becomes the graph's period.

The story

See it

A tall lit-up giant wheel at night with yellow and white cabins hanging all round its rimaxle: the centrecabinrim: radius from the axle
A giant wheel at a fair in Kottayam, Kerala, 2023. Every cabin hangs at the same distance from the axle, so each one rises and falls in the same wave, just started at a different moment.

Lay Bhaskara's fraction on the true sine curve. First guess how far off it can be; then slide along and watch the magnified gap. Try the plain parabola too: it has the right shape, so why is it so much worse?

The parabola \( \tfrac{4x(180 - x)}{180^2} \) is the obvious first try: 0 at both ends, 1 in the middle. But it bulges too much near \( 30^\circ \) (it gives 0.56 instead of 0.5). Bhaskara's bottom line \( 40500 - x(180 - x) \) is smallest in the middle and largest at the ends, and it bends the parabola just enough to pass through the true value at \( 30^\circ \) and \( 150^\circ \).

Solve it

Solve it

The giant wheel above has its axle 22 m up and a radius of 20 m, and it turns once every 2 minutes. A cabin starts at the bottom. How long until it is first 32 m above the ground?

Hint
Use \( h(t) = 22 - 20\cos\left(\tfrac{2\pi t}{T}\right) \) with \( T = 2 \) minutes, set \( h = 32 \), and find the first angle that works.
Answer
\( 32 = 22 - 20\cos(\pi t) \) gives \( \cos(\pi t) = -\tfrac{1}{2} \). The first angle after 0 with cosine \( -\tfrac{1}{2} \) is \( \tfrac{2\pi}{3} \) (that is \( 120^\circ \)). So \( \pi t = \tfrac{2\pi}{3} \) and \( t = \tfrac{2}{3} \) minute = 40 seconds. Check with a picture: 32 m is 10 m above the axle, half the radius, and a third of a turn (\( 120^\circ \) from the bottom) is where a cabin is half a radius above the centre.

What is the period of \( y = \tan 2x \)?

  1. \( \pi \)
  2. \( \tfrac{\pi}{2} \)
  3. \( 2\pi \)
  4. \( 4\pi \)

Predict, then check

Without a calculator, use Bhaskara's fraction to estimate \( \sin 45^\circ \). Is the answer a little too big or a little too small? Then check against \( \tfrac{1}{\sqrt{2}} \approx 0.7071 \) and in the interactive.

Answer
\( x(180 - x) = 45 \times 135 = 6075 \). Top: \( 4 \times 6075 = 24300 \). Bottom: \( 40500 - 6075 = 34425 \). So \( \sin 45^\circ \approx \tfrac{24300}{34425} \approx 0.7059 \), a little too small (by about 0.0012). The gap curve in the interactive dips below zero between \( 30^\circ \) and \( 90^\circ \), and you have just landed in that dip.

Connect it

Connect it

  • Period and frequency, Physics Class 11. A swinging pendulum or a spring repeats every \( T \) seconds; its displacement is a sine of \( \tfrac{2\pi t}{T} \), just like the wheel. See period and frequency.
  • Waves, Physics Class 11. A wave repeats in space too: its wavelength is a period measured in metres. See wavelength, frequency and speed.
  • The unit circle, this chapter. Every graph on this page is the circle of sine and cosine for any angle, unrolled.
  • Limits, Class 11. Near \( 0^\circ \) Bhaskara's fraction is about 1.9% too big, because its slope at 0 is slightly wrong. The true slope is the limit \( \tfrac{\sin x}{x} \to 1 \) (in radians), proved in the sandwich theorem.
  • At home. India's mains voltage repeats 50 times a second: its period is \( \tfrac{1}{50} \) s = 20 milliseconds (see domain and range).

Sources

  1. Bhāskara I, Wikipedia (dates, works, zero, attribution of the rule to Aryabhata).
  2. Bhāskara I's sine approximation formula, Wikipedia (the formula, Mahabhaskariya chapter VII verses 17 to 19, error under 0.0016, proposed derivations).
  3. K. Stroethoff, "Bhaskara's approximation for the sine", The Mathematics Enthusiast 11(3), 2014, pp. 485 to 494.

Picture and video credits

Show 1 picture and video credits
  1. giant-wheel-kottayam-fair.jpg: Vis M, CC BY-SA 4.0