girgit.org

Trigonometric Functions

Domain and range of the six functions

{ "view": [-7, 7, -1.85, 1.85], "aspect": 0.55, "grid": false, "ticks": {"x": "pi", "y": 1, "xunit": "pi"}, "params": {"x0": {"min": -6.8, "max": 6.8, "value": 2.2, "label": "x", "play": true, "period": 14}}, "items": [ {"seg": [[-7, 0], [7, 0]], "color": "d", "width": 3}, {"seg": [[0, -1], [0, 1]], "color": "b", "width": 9}, {"fn": "sin(x)", "color": "b", "width": 2}, {"seg": [["x0", 0], ["x0", "sin(x0)"]], "color": "d", "dash": true, "width": 1.5}, {"seg": [["x0", "sin(x0)"], [0, "sin(x0)"]], "color": "b", "dash": true, "width": 1.5}, {"point": ["x0", "sin(x0)"], "color": "ink"}, {"point": [0, "sin(x0)"], "color": "b"}, {"point": ["x0", 0], "color": "d", "drag": {"param": "x0", "by": "x"}}, {"text": "range: −1 to 1", "at": [0.25, 1.45], "color": "b"}, {"text": "domain: every real x", "at": [-6.9, -1.55], "color": "d"} ], "read": ["sin({x0|2}) = {sin(x0)|2}"] }

The big ideaSine and cosine accept every real number and never leave \( [-1, 1] \); the other four lose the points where they would divide by zero, and their ranges follow from that.

In simple words

Ask two questions of each of the six machines. Which numbers can I feed it? Which answers can come out? Sine and cosine take any number and always answer something between minus one and one. The other four refuse a few numbers. Two of them can answer anything at all. The other two can answer anything except the numbers strictly between minus one and one.

Sine and cosine

Every real number is an angle, and every angle gives a point on the unit circle, so \( \sin x \) and \( \cos x \) are defined for all real \( x \). And since the coordinates of that point lie between \( -1 \) and \( 1 \):

  • \( y = \sin x \) and \( y = \cos x \): domain \( \mathbf{R} \), range \( [-1, 1] \), that is \( -1 \le y \le 1 \).
{ "view": [-1.95, 1.95, -1.3, 1.3], "equal": true, "grid": false, "ticks": {"x": 1, "y": 1}, "params": {"x": {"min": 0, "max": 6.2832, "value": 2.3, "label": "x", "fmt": "deg"}}, "items": [ {"curve": ["cos(t)", "sin(t)"], "t": [0, 6.2832], "color": "dim"}, {"seg": [[-1, 0], [1, 0]], "color": "c", "width": 9}, {"seg": [[0, -1], [0, 1]], "color": "b", "width": 9}, {"seg": [["cos(x)", "sin(x)"], [0, "sin(x)"]], "color": "b", "dash": true, "width": 1.5}, {"seg": [["cos(x)", "sin(x)"], ["cos(x)", 0]], "color": "c", "dash": true, "width": 1.5}, {"seg": [[0, 0], ["cos(x)", "sin(x)"]], "color": "ink"}, {"point": [0, "sin(x)"], "color": "b", "label": "sin x", "dx": 10, "dy": -6}, {"point": ["cos(x)", 0], "color": "c", "label": "cos x", "dx": -16, "dy": 24}, {"point": ["cos(x)", "sin(x)"], "label": "P", "drag": {"param": "x", "by": "angle"}} ], "read": ["sin x = {sin(x)|2}", "cos x = {cos(x)|2}"] }

The other four

FunctionDomainRange
\( y = \operatorname{cosec} x \)\( \{x : x \in \mathbf{R},\ x \ne n\pi,\ n \in \mathbf{Z}\} \)\( \{y : y \in \mathbf{R},\ y \ge 1 \text{ or } y \le -1\} \)
\( y = \sec x \)\( \{x : x \in \mathbf{R},\ x \ne (2n+1)\tfrac{\pi}{2},\ n \in \mathbf{Z}\} \)\( \{y : y \in \mathbf{R},\ y \le -1 \text{ or } y \ge 1\} \)
\( y = \tan x \)\( \{x : x \in \mathbf{R},\ x \ne (2n+1)\tfrac{\pi}{2},\ n \in \mathbf{Z}\} \)\( \mathbf{R} \)
\( y = \cot x \)\( \{x : x \in \mathbf{R},\ x \ne n\pi,\ n \in \mathbf{Z}\} \)\( \mathbf{R} \)

Try it: pick a function and slide the line to every height you can. Where does it stop meeting the graph?

Why cosec and sec never lie strictly between −1 and 1. \( \sin x \) is a number of size at most 1. Turning a number of size at most 1 upside down gives a number of size at least 1: \( \tfrac{1}{0.5} = 2 \), \( \tfrac{1}{-0.25} = -4 \), \( \tfrac{1}{1} = 1 \). So \( |\operatorname{cosec} x| \ge 1 \) always. In interval form the range is \( (-\infty, -1] \cup [1, \infty) \). The same holds for \( \sec x \).

{ "view": [-0.25, 6.55, -4, 4], "aspect": 0.62, "grid": false, "ticks": {"x": "pi/2", "y": 1, "xunit": "pi"}, "params": {"x0": {"min": 0.12, "max": 6.16, "value": 0.52, "label": "x", "unit": "rad"}}, "items": [ {"area": {"between": ["1", "-1"], "from": -0.25, "to": 6.55}, "color": "dim", "opacity": 0.35}, {"vline": "pi", "color": "e", "dash": true, "width": 1.5}, {"vline": "2*pi", "color": "e", "dash": true, "width": 1.5}, {"fn": "sin(x)", "color": "b", "label": "sin x", "labelAt": 2.4}, {"fn": "1/sin(x)", "domain": [0.01, 6.27], "color": "e", "width": 3, "label": "cosec x", "labelAt": 2.75}, {"point": ["x0", "sin(x0)"], "color": "b"}, {"point": ["x0", "1/sin(x0)"], "color": "e", "drag": {"param": "x0", "by": "x"}}, {"text": "no cosec values here", "at": [3.3, -0.2], "anchor": "middle", "color": "ink"} ], "read": ["sin x = {sin(x0)|2}", "cosec x = 1 ÷ {sin(x0)|2} = {1/sin(x0)|2}"] }

Why tan and cot can be anything. \( \tan x \) is the slope of the line OP. As P goes from the bottom of the circle to the top on the right-hand side, that line tilts from nearly straight down, through flat, to nearly straight up, and its slope takes every real value.

How each function changes, quadrant by quadrant

Follow the point round the circle and watch its height. In the first quadrant, as \( x \) goes from 0 to \( \tfrac{\pi}{2} \), \( \sin x \) climbs from 0 to 1. In the second it falls from 1 back to 0. In the third it keeps falling, from 0 to \( -1 \). In the fourth it climbs from \( -1 \) back to 0. The full picture for all six:

{ "view": [-0.3, 6.6, -1.55, 1.65], "aspect": 0.5, "grid": false, "ticks": {"x": "pi/2", "xunit": "pi"}, "params": {"x0": {"min": 0, "max": 6.2832, "value": 1.0, "label": "x", "unit": "rad"}}, "items": [ {"vline": "pi/2", "color": "dim", "dash": true, "width": 1}, {"vline": "pi", "color": "dim", "dash": true, "width": 1}, {"vline": "3*pi/2", "color": "dim", "dash": true, "width": 1}, {"vline": "2*pi", "color": "dim", "dash": true, "width": 1}, {"fn": "sin(x)", "domain": [0, "2*pi"], "color": "b", "width": 2.5}, {"text": "I", "at": ["pi/4", -1.38], "anchor": "middle"}, {"text": "II", "at": ["3*pi/4", -1.38], "anchor": "middle"}, {"text": "III", "at": ["5*pi/4", -1.38], "anchor": "middle"}, {"text": "IV", "at": ["7*pi/4", -1.38], "anchor": "middle"}, {"text": "0 → 1", "at": ["pi/4", -0.55], "anchor": "middle", "color": "b"}, {"text": "1 → 0", "at": ["3*pi/4", -0.55], "anchor": "middle", "color": "b"}, {"text": "0 → −1", "at": ["5*pi/4", 0.45], "anchor": "middle", "color": "b"}, {"text": "−1 → 0", "at": ["7*pi/4", 0.45], "anchor": "middle", "color": "b"}, {"seg": [["x0", 0], ["x0", "sin(x0)"]], "color": "b", "width": 4}, {"point": ["x0", "sin(x0)"], "color": "b", "drag": {"param": "x0", "by": "x"}} ], "read": ["sin x = {sin(x0)|2}"] }
I quadrantII quadrantIII quadrantIV quadrant
sinincreases from 0 to 1decreases from 1 to 0decreases from 0 to −1increases from −1 to 0
cosdecreases from 1 to 0decreases from 0 to −1increases from −1 to 0increases from 0 to 1
tanincreases from 0 to ∞increases from −∞ to 0increases from 0 to ∞increases from −∞ to 0
cotdecreases from ∞ to 0decreases from 0 to −∞decreases from ∞ to 0decreases from 0 to −∞
secincreases from 1 to ∞increases from −∞ to −1decreases from −1 to −∞decreases from ∞ to 1
cosecdecreases from ∞ to 1increases from 1 to ∞increases from −∞ to −1decreases from −1 to −∞

What "∞" means here. "tan \( x \) increases from 0 to ∞ in the first quadrant" means: as \( x \) grows from 0 towards \( \tfrac{\pi}{2} \), \( \tan x \) keeps growing and becomes larger than any number you name, as \( x \) gets close to \( \tfrac{\pi}{2} \). It never reaches a value called infinity; \( \tan \tfrac{\pi}{2} \) is still not defined. Likewise, "cosec \( x \) decreases from −1 to −∞ in the fourth quadrant" means it keeps falling, taking huge negative values, as \( x \) approaches \( 2\pi \). The symbols \( \infty \) and \( -\infty \) describe a behaviour, not a number.

{ "view": [-0.12, 2.15, -0.8, 11], "aspect": 0.62, "grid": false, "ticks": {"x": "pi/4", "y": 2, "xunit": "pi"}, "params": {"N": {"min": 1, "max": 10, "value": 4, "label": "your number N", "digits": 1}}, "items": [ {"vline": "pi/2", "color": "d", "dash": true, "width": 1.5}, {"fn": "tan(x)", "domain": [0, 1.5707], "color": "d", "width": 3, "label": "tan x", "labelAt": 1.0}, {"hline": "N", "color": "ink", "dash": true, "width": 1.5}, {"seg": [["atan(N)", 0], ["atan(N)", "N"]], "color": "dim", "dash": true, "width": 1.5}, {"point": ["atan(N)", "N"], "color": "ink", "label": "N = {N|1}", "dx": -12, "dy": -10}, {"seg": [[1.33, 9.3], [1.55, 9.3]], "color": "d", "arrow": true, "width": 1.5}, {"text": "π/2 never reached", "at": [1.3, 9.05], "anchor": "end", "color": "d"} ], "read": ["tan x passes {N|1} at x = {atan(N)|4}", "still {pi/2-atan(N)|4} short of π/2"] }

You do not need to memorise the table. Each row can be read off the unit circle: watch the coordinate, or its reciprocal, as the point moves.

Before the examples, try it: stretch and lift \( \sin x \) and watch the band of values it covers.

Worked example

  1. Can \( \sin x = 1.2 \)? No: 1.2 is outside the range \( [-1, 1] \).
  2. Can \( \sec x = 0.5 \)? No: \( \sec x = 0.5 \) would need \( \cos x = 2 \).
  3. Can \( \tan x = 1000 \)? Yes: tan takes every real value. (It happens for an \( x \) just a little less than \( \tfrac{\pi}{2} \).)
  4. Find the range of \( y = 3\sin x + 2 \). From \( -1 \le \sin x \le 1 \): \( -3 \le 3\sin x \le 3 \), so \( -1 \le y \le 5 \). Range \( [-1, 5] \).

Try it. (a) Is \( x = \tfrac{3\pi}{2} \) in the domain of \( \tan x \)? Of \( \cot x \)? (b) Which of these can be a value of \( \operatorname{cosec} x \): \( 0.9,\ -1,\ \sqrt{2},\ -0.3 \)? (c) Find the range of \( y = 5 - 2\cos x \).

Answer
(a) \( \tfrac{3\pi}{2} \) is an odd multiple of \( \tfrac{\pi}{2} \), so it is not in the domain of tan; it is not a multiple of \( \pi \), so it is in the domain of cot (\( \cot \tfrac{3\pi}{2} = 0 \)). (b) Only \( -1 \) and \( \sqrt{2} \): cosec is never strictly between \( -1 \) and 1. (c) \( -2 \le -2\cos x \le 2 \), so \( 3 \le y \le 7 \): range \( [3, 7] \).

Just remember

These all have reasons (above), but in an exam you want them in a second. Use the hook, and if you blank, rebuild from the circle.

tan and sec drop the odd multiples of \( \tfrac{\pi}{2} \); cot and cosec drop the multiples of \( \pi \)
"Tan and Sec Stand on cos; Cot and Cosec Cling to sin": each pair dies where the one it divides by is 0. Rebuild: cos is 0 at the top and bottom of the circle (\( \pm\tfrac{\pi}{2}, \pm\tfrac{3\pi}{2}, \dots \)), sin is 0 at the left and right ends (\( 0, \pm\pi, \dots \)).
Ranges: sin, cos in \( [-1, 1] \); tan, cot everything; sec, cosec everything except \( (-1, 1) \)
"Boxed, free, and banned from the box." sin and cos live inside the box from −1 to 1; tan and cot are free; sec and cosec are their upside-down partners, so they live everywhere outside the box. Rebuild: coordinates of a point on a radius-1 circle; then flip.

Words to know

Domain
All the \( x \) a function can take.
Range
All the values the function actually gives.
\( [-1, 1] \)
Range of sine and cosine.
\( (-\infty, -1] \cup [1, \infty) \)
Range of sec and cosec: everything except the numbers strictly between −1 and 1.
Increases to ∞
Keeps growing beyond every bound; not a value that is reached.

What is the domain of \( y = \sec x \)?

  1. \( \mathbf{R} \)
  2. \( \mathbf{R} \) except \( n\pi \)
  3. \( \mathbf{R} \) except \( (2n+1)\tfrac{\pi}{2} \)

As \( x \) goes through the third quadrant (from \( \pi \) to \( \tfrac{3\pi}{2} \)), what does \( \cos x \) do?

  1. Increases from \( -1 \) to 0
  2. Decreases from 0 to \( -1 \)
  3. Increases from 0 to 1

Which value can \( \tan x \) never take?

  1. \( -500 \)
  2. 0
  3. None: every real number is possible

Deep dive · optional

How high can a wave go?

Why the ranges are what they are, how to find the range of a mixed wave like \( 3\sin x + 4\cos x \) by adding two turning arrows, and why your wall socket swings to 325 volts. Not needed for the exam's basic questions, but JEE loves the result.

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

Why sine is trapped between −1 and 1

  1. Why can \( \sin x \) never be 1.2?Because \( \sin x \) is the height of a point P on the unit circle, and no point of that circle is 1.2 above the centre.
  2. Why is no point of the circle higher than 1?Every point is exactly 1 away from O. Drop a line from P to the \( x \)-axis: the height is one side of a right triangle whose longest side, the slanting one, is that 1.
  3. Why is the slanting side the longest?Pythagoras: \( \sin^2 x + \cos^2 x = 1 \). A square is never negative, so \( \sin^2 x \le 1 \), which means \( -1 \le \sin x \le 1 \).
  4. And why is \( \sec x \) never 0.5?\( \sec x = \tfrac{1}{\cos x} \), and \( \cos x \) is at most 1 in size. Dividing 1 by something no bigger than 1 gives something no smaller than 1.
  5. So where does it all rest?On two things you already believe: the definition (sine and cosine are coordinates on a circle of radius 1) and Pythagoras' theorem.

The domains follow the same way. Sine and cosine are coordinates, and every angle has a point, so nothing is ever refused. The other four are fractions made from sine and cosine, and a fraction only breaks when its bottom is 0. That is the whole reason for every gap in the table.

The mixed wave. What about \( y = 3\sin x + 4\cos x \)? The lazy guess is "at most \( 3 + 4 = 7 \)", but that needs \( \sin x = 1 \) and \( \cos x = 1 \) at the same \( x \), which never happens. The true answer comes from a trick. Draw a right triangle with sides 3 and 4; its long side is \( \sqrt{3^2 + 4^2} = 5 \) and one of its angles, call it \( \alpha \), has \( \cos\alpha = \tfrac{3}{5} \), \( \sin\alpha = \tfrac{4}{5} \). Then

\[ \begin{aligned} 3\sin x + 4\cos x &= 5\left(\sin x \cos\alpha + \cos x \sin\alpha\right) \\ &= 5\sin(x + \alpha). \end{aligned} \]

The bracket is the sine of a sum (you prove it two pages on). A sine is between −1 and 1, so \( y \) is between −5 and 5, and it really reaches both. The same works for any numbers:

\[ -\sqrt{a^2 + b^2} \;\le\; a\sin x + b\cos x \;\le\; \sqrt{a^2 + b^2}. \]

The story

See it

A green sine wave on an oscilloscope grid, every peak at the same height and every trough at the same depthpeak: top of the rangetrough: bottom of the range
A real sine wave on an oscilloscope. However many times it repeats, every peak stops at the same height and every trough at the same depth: that band is its range.

Now add two waves yourself. Arrow \( a \) turns with \( x \); arrow \( b \) rides on its tip, always at right angles. Because the corner stays square, the long arrow keeps the same length, \( \sqrt{a^2 + b^2} \), however it turns, and the height of its tip is the whole wave.

Notice the peak does not come at \( x = 90^\circ \) (where \( a\sin x \) peaks) or at \( 0^\circ \) (where \( b\cos x \) peaks), but in between, where the long arrow points straight up. That shift is the \( \alpha \) in \( \sqrt{a^2 + b^2}\,\sin(x + \alpha) \).

Solve it

Solve it

Find the greatest and least values of \( y = 5\sin x - 12\cos x + 7 \).

Hint
Deal with \( 5\sin x - 12\cos x \) first; the \( +7 \) only lifts everything.
Answer
\( \sqrt{5^2 + 12^2} = 13 \), so \( -13 \le 5\sin x - 12\cos x \le 13 \). Add 7: \( -6 \le y \le 20 \). Greatest 20, least −6. (The minus sign on 12 changes where the peak happens, not how high it is: the arrow's length uses \( b^2 \).)

Spot the error

A student writes: "\( \sin x \) and \( \cos x \) are each between −1 and 1, so \( \sin x + \cos x \) is between −2 and 2. Its range is \( [-2, 2] \)." What is wrong, and what is the real range?

Answer
The bound −2 to 2 is true but not reached: the sum is 2 only if both are 1 at the same \( x \), and they never are (when \( \sin x = 1 \), \( \cos x = 0 \)). With \( a = b = 1 \) the arrows give \( \sqrt{2} \): the range is \( [-\sqrt{2}, \sqrt{2}] \), reached at \( x = 45^\circ \) and \( 225^\circ \). A range must list values actually taken, not just a fence around them.

Solve it

Find the range of \( y = \dfrac{1}{2 + \sin x} \).

Hint
Find the range of the bottom first, then turn it upside down. Is the bottom ever 0?
Answer
\( -1 \le \sin x \le 1 \), so \( 1 \le 2 + \sin x \le 3 \). The bottom is always positive, so \( y \) is defined for every \( x \), and turning upside down reverses the order: \( \tfrac{1}{3} \le y \le 1 \). Range \( \left[\tfrac{1}{3}, 1\right] \): biggest when the bottom is smallest (\( \sin x = -1 \)).

Connect it

Connect it

  • Sine of a sum, this chapter. The step \( a\sin x + b\cos x = \sqrt{a^2 + b^2}\,\sin(x + \alpha) \) is the sum formula read backwards.
  • Phasors and rms, Physics Class 12. The arrows above are the phasors of alternating current, and 230 V vs 325 V is explained in rms values.
  • Oscillations, Physics Class 11. A swinging mass has \( x = A\sin(\omega t + \phi) \); its range is \( [-A, A] \) and \( A \) is the amplitude.
  • Inverse functions, Class 12. The range of sine becomes the domain of \( \sin^{-1} \): you can only ask "which angle has sine 0.3?" for numbers in \( [-1, 1] \). See why the domain is restricted.
  • Complex numbers. The length \( \sqrt{a^2 + b^2} \) is the modulus of \( a + ib \): Steinmetz's arrows are complex numbers.

Still confused?

Is ∞ in the range of tan?

No. The range of tan is \( \mathbf{R} \), the real numbers, and ∞ is not one of them. "tan increases to ∞" describes a behaviour: it passes every number you name. No angle gives the value ∞.

Can sec x be exactly 1?

Yes: at \( x = 0, \pm 2\pi, \dots \), where \( \cos x = 1 \). The range of sec includes 1 and −1; it only leaves out the numbers strictly between them.

Sources

  1. Charles Proteus Steinmetz, Wikipedia (the 1893 paper "Complex Quantities and Their Use in Electrical Engineering").
  2. Phasor, Wikipedia.
  3. Mains electricity by country, Wikipedia (India: 230 V, 50 Hz).
  4. NCERT Physics Part I, Class 12, Chapter 7 (Alternating Current): rms and peak values, \( v_m = \sqrt{2}\,V \).

Picture and video credits

Show 1 picture and video credits
  1. oscilloscope-sine-wave.jpg: Pittigrilli, CC BY-SA 4.0