Math Lab
Home/Class XI/Ch 3/Domain, range and graphs of trigonometric functions

Domain, range and graphs of trigonometric functions

Once each trigonometric function is defined for every real argument, we can draw its graph. The shapes are some of the most important curves in mathematics; you must be able to sketch each one from memory.

The six standard graphs

sinx\sin x

  • Domain: R\mathbb{R}. Range: [1,1][-1, 1].
  • Period 2π2\pi. Zeros at x=nπx = n\pi.
  • Maximum 11 at x=π2+2nπx = \dfrac{\pi}{2} + 2n\pi; minimum 1-1 at x=3π2+2nπx = \dfrac{3\pi}{2} + 2n\pi.
  • Odd function , graph symmetric about the origin.

cosx\cos x

  • Domain: R\mathbb{R}. Range: [1,1][-1, 1].
  • Period 2π2\pi. Zeros at x=π2+nπx = \dfrac{\pi}{2} + n\pi.
  • Maximum 11 at x=2nπx = 2n\pi; minimum 1-1 at x=(2n+1)πx = (2n+1)\pi.
  • Even function , graph symmetric about the yy-axis.
  • The cosine graph is the sine graph shifted left by π/2\pi/2: cosx=sin ⁣(x+π2)\cos x = \sin\!\left(x + \dfrac{\pi}{2}\right).

tanx\tan x

  • Domain: R{π2+nπ}\mathbb{R} \setminus \left\{\dfrac{\pi}{2} + n\pi\right\}. Range: R\mathbb{R}.
  • Period π\pi.
  • Vertical asymptotes at x=π2+nπx = \dfrac{\pi}{2} + n\pi.
  • Increasing on each interval (π2+nπ, π2+nπ)\left(-\dfrac{\pi}{2} + n\pi,\ \dfrac{\pi}{2} + n\pi\right).
  • Odd function.

cotx\cot x

  • Domain: R{nπ}\mathbb{R} \setminus \{n\pi\}. Range: R\mathbb{R}. Period π\pi.
  • Vertical asymptotes at x=nπx = n\pi.
  • Decreasing on each (nπ,(n+1)π)(n\pi, (n+1)\pi). Odd.

secx\sec x and cscx\csc x

  • secx\sec x: range (,1][1,)(-\infty, -1] \cup [1, \infty). Period 2π2\pi. Vertical asymptotes where cosx=0\cos x = 0. Even.
  • cscx\csc x: range (,1][1,)(-\infty, -1] \cup [1, \infty). Period 2π2\pi. Vertical asymptotes where sinx=0\sin x = 0. Odd.

Transformations

Given a base function y=f(x)y = f(x), the transformed function y=af(b(xc))+dy = a\,f(b(x - c)) + d has:

  • Amplitude a|a| , vertical stretch (relevant for sin,cos\sin, \cos).
  • Period 2πb\dfrac{2\pi}{|b|} for sin,cos\sin, \cos (or πb\dfrac{\pi}{|b|} for tan,cot\tan, \cot).
  • Phase shift cc , horizontal translation (positive cc shifts right).
  • Vertical shift dd , moves the midline.

So y=3sin ⁣(2xπ3)+1y = 3 \sin\!\left(2x - \dfrac{\pi}{3}\right) + 1 has amplitude 33, period 2π2=π\dfrac{2\pi}{2} = \pi, phase shift π6\dfrac{\pi}{6} (rewriting 2(xπ/6)2(x - \pi/6)), midline y=1y = 1.

Even and odd

  • sin(x)=sinx\sin(-x) = -\sin x, cos(x)=cosx\cos(-x) = \cos x, tan(x)=tanx\tan(-x) = -\tan x.
  • cot,csc\cot, \csc are odd; sec\sec is even.

Combining trigonometric functions

The graph of y=sinx+cosxy = \sin x + \cos x can be rewritten as sinx+cosx=2sin ⁣(x+π4),\sin x + \cos x = \sqrt{2}\,\sin\!\left(x + \dfrac{\pi}{4}\right), revealing amplitude 2\sqrt{2} and a phase shift of π4-\dfrac{\pi}{4}. More generally: asinx+bcosx=Rsin(x+ϕ),R=a2+b2,tanϕ=ba.a \sin x + b \cos x = R\sin(x + \phi), \quad R = \sqrt{a^2 + b^2}, \quad \tan\phi = \dfrac{b}{a}.

This is a workhorse trick , used in solving trigonometric equations, modelling, and Class-XII calculus.

Worked examples

Example 1. Find the maximum and minimum of f(x)=3cos2x1f(x) = 3 \cos 2x - 1.

cos2x[1,1]\cos 2x \in [-1, 1], so 3cos2x[3,3]3\cos 2x \in [-3, 3], hence f[4,2]f \in [-4, 2]. Max =2= 2, min =4= -4.

Example 2. Period of f(x)=sinx3f(x) = \sin\dfrac{x}{3}?

2π1/3=6π\dfrac{2\pi}{1/3} = 6\pi.

Example 3. Sketch y=2sin(xπ/2)y = 2\sin(x - \pi/2) on [0,2π][0, 2\pi].

Amplitude 22, period 2π2\pi, phase shift π/2\pi/2 right. Note sin(xπ/2)=cosx\sin(x - \pi/2) = -\cos x, so this is y=2cosxy = -2\cos x: starts at 2-2, hits 00 at π/2\pi/2, reaches 22 at π\pi, 00 at 3π/23\pi/2, 2-2 at 2π2\pi.

Example 4. Find the range of f(x)=3sinx+4cosxf(x) = 3\sin x + 4\cos x.

By the RR-formula: R=9+16=5R = \sqrt{9 + 16} = 5. So f[5,5]f \in [-5, 5].

Example 5 (harder). Sketch and describe the graph of f(x)=sinx+sin2xf(x) = \sin x + \sin 2x on [0,2π][0, 2\pi].

This is a non-elementary curve. By sampling:

  • f(0)=0f(0) = 0.
  • f(π/4)=22+11.71f(\pi/4) = \dfrac{\sqrt{2}}{2} + 1 \approx 1.71.
  • f(π/2)=1+0=1f(\pi/2) = 1 + 0 = 1.
  • f(3π/4)=2210.29f(3\pi/4) = \dfrac{\sqrt{2}}{2} - 1 \approx -0.29.
  • f(π)=0f(\pi) = 0.

The graph has one tall hump near π/4\pi/4, a smaller dip near 3π/43\pi/4, then mirrors in the second half. Calculus tools (Chapter 12) make the extrema explicit.

Try it yourself

  1. Period of sin3x\sin 3x, cos5x\cos 5x, tan(2x+1)\tan(2x + 1).
  2. Amplitude and period of y=4cosx2y = -4\cos\dfrac{x}{2}.
  3. Sketch y=cosxy = |\cos x| on [π,π][-\pi, \pi] and find its period.
  4. Find max and min of f(x)=5sinx12cosxf(x) = 5\sin x - 12\cos x.
  5. Express sinx+3cosx\sin x + \sqrt{3}\cos x in the form Rsin(x+ϕ)R\sin(x + \phi).
  6. Sketch y=tan(xπ/4)y = \tan(x - \pi/4) on (π/4,3π/4)(-\pi/4, 3\pi/4).
  7. Find the range of f(x)=2+3sinxf(x) = 2 + 3\sin x.
  8. Show sin(x+2π)=sinx\sin(x + 2\pi) = \sin x from the unit circle definition.
  9. Sketch y=cos2xy = \cos 2x and y=2cosxy = 2\cos x on the same axes; describe how they differ.
  10. Find the values of xx in [0,2π][0, 2\pi] at which secx\sec x is undefined.
  11. Sketch y=x+sinxy = x + \sin x on [2π,2π][-2\pi, 2\pi].
  12. Prove that sinx\sin x is not a polynomial in xx by considering its zeros.

Pitfalls / Tricks

  • A coefficient inside the argument divides the period: sin3x\sin 3x has period 2π3\dfrac{2\pi}{3}, not 2π/32\pi/3 "stretched".
  • sinx\sin x does not equal cosx\cos x except at isolated points: do not "swap" them mid-calculation.
  • sec,csc\sec, \csc have gaps in their ranges , they never take values in (1,1)(-1, 1).
  • Insight. Every linear combination asinx+bcosxa \sin x + b \cos x is itself a sine wave with amplitude a2+b2\sqrt{a^2 + b^2}. This is a complete description of all "single-frequency" oscillations.

Practice quiz

Quick check on this topic.

Quiz
Quick check : Graphs of trig functions
6 questions · pick the best answer
Q1

Q2

Q3

Q4

Q5

Q6