Graphs of sine, cosine and tangent

AS · P1 · 14 min

The sine, cosine and tangent functions repeat themselves for ever, and their graphs are the quickest way to understand them. Paper 1 asks you to sketch them for angles of any size, in degrees or radians, including the forms y=asin⁡(bx)+cy = a\sin(bx) + c, y=acos⁡(bx)+cy = a\cos(bx) + c and y=atan⁡(bx)+cy = a\tan(bx) + c; to find the constants from a graph or from given values; and to use a sketch to count the solutions of an equation. These sketches also underpin every trigonometric equation you will solve.

Sine and cosine for any angle

At GCSE, sine and cosine are ratios of sides in a right-angled triangle, so they only make sense for angles between 0∘0^\circ and 90∘90^\circ. To extend them to any angle, use a circle of radius 11 centred at the origin, the unit circle.

Start at (1,0)(1, 0) and turn anticlockwise through an angle θ\theta (clockwise for a negative angle). The point you reach on the unit circle is defined to be

(cos⁡θ, sin⁡θ),andtan⁡θ=sin⁡θcos⁡θ(\cos\theta,\ \sin\theta), \qquad \text{and} \qquad \tan\theta = \frac{\sin\theta}{\cos\theta}

For an acute angle this agrees with the triangle definitions (the hypotenuse is 11). For any other angle it simply carries on: as θ\theta increases, the point goes round and round, and its height sin⁡θ\sin\theta and its horizontal position cos⁡θ\cos\theta oscillate between −1-1 and 11. The details, including signs in each quadrant and related angles, are in Exact values and angles of any size.

The three basic graphs

Plotting the height of the point against the angle gives the sine wave; plotting its horizontal position gives the cosine wave.

y = sin x y = cos x
y = tan x x = pi/2 x = 3pi/2
Key result
y=sin⁡xy = \sin xy=cos⁡xy = \cos xy=tan⁡xy = \tan x
Period360∘360^\circ or 2π2\pi360∘360^\circ or 2π2\pi180∘180^\circ or π\pi
Range−1≤y≤1-1 \le y \le 1−1≤y≤1-1 \le y \le 1all real numbers
Value at 00001100
Maximum11 at 90∘90^\circ (π2\tfrac{\pi}{2})11 at 0∘0^\circ, 360∘360^\circnone
Minimum−1-1 at 270∘270^\circ (3π2\tfrac{3\pi}{2})−1-1 at 180∘180^\circ (π\pi)none
Zeros0∘,180∘,360∘0^\circ, 180^\circ, 360^\circ (0,π,2π0, \pi, 2\pi)90∘,270∘90^\circ, 270^\circ (π2,3π2\tfrac{\pi}{2}, \tfrac{3\pi}{2})0∘,180∘,360∘0^\circ, 180^\circ, 360^\circ
Asymptotesnonenonex=90∘,270∘x = 90^\circ, 270^\circ (π2,3π2\tfrac{\pi}{2}, \tfrac{3\pi}{2})

The period is the length of one complete cycle: sin⁡(x+360∘)=sin⁡x\sin(x + 360^\circ) = \sin x for every xx. The amplitude of a sine or cosine wave is the distance from its middle line to a peak; for sin⁡x\sin x and cos⁡x\cos x it is 11.

Tangent has vertical asymptotes where cos⁡x=0\cos x = 0, since tan⁡x=sin⁡xcos⁡x\tan x = \dfrac{\sin x}{\cos x} is undefined there. Between asymptotes it increases through every real value.

Symmetries you can read off the graphs

  • The sine curve is symmetrical about x=90∘x = 90^\circ: sin⁡(180∘−x)=sin⁡x\sin(180^\circ - x) = \sin x.
  • The cosine curve is symmetrical about the yy-axis: cos⁡(−x)=cos⁡x\cos(-x) = \cos x.
  • The cosine curve is the sine curve shifted left by 90∘90^\circ: cos⁡x=sin⁡(x+90∘)\cos x = \sin(x + 90^\circ).
  • Sine and tangent have rotational symmetry about the origin: sin⁡(−x)=−sin⁡x\sin(-x) = -\sin x, tan⁡(−x)=−tan⁡x\tan(-x) = -\tan x.

These symmetries are what you use to find the second solution of a trigonometric equation.

Transformed graphs

The transformation rules from Transformations of graphs apply directly. For y=asin⁡(bx)+cy = a\sin(bx) + c:

ConstantTransformationEffect on the wave
aastretch parallel to the yy-axis, factor aaamplitude becomes ∣a∣\lvert a\rvert; if a<0a < 0 the wave is also reflected in the xx-axis
bbstretch parallel to the xx-axis, factor 1b\tfrac{1}{b}period becomes 360∘b\dfrac{360^\circ}{b} or 2πb\dfrac{2\pi}{b} (bb cycles in 360∘360^\circ)
cctranslation by (0c)\begin{pmatrix} 0 \\ c \end{pmatrix}middle line moves to y=cy = c

The same table holds for cosine. For y=atan⁡(bx)+cy = a\tan(bx) + c, the period is 180∘b\dfrac{180^\circ}{b} or πb\dfrac{\pi}{b}, and the asymptotes move with the stretch: they are where bx=90∘,270∘,…bx = 90^\circ, 270^\circ, \ldots

Key result

For y=asin⁡(bx)+cy = a\sin(bx) + c or y=acos⁡(bx)+cy = a\cos(bx) + c with a>0a > 0:

maximum=c+a,minimum=c−a,period=360∘b=2πb\text{maximum} = c + a, \qquad \text{minimum} = c - a, \qquad \text{period} = \frac{360^\circ}{b} = \frac{2\pi}{b}

So c=max⁡+min⁡2c = \dfrac{\max + \min}{2} and a=max⁡−min⁡2a = \dfrac{\max - \min}{2}.

Sketching y = a sin(bx) + c or y = a cos(bx) + c
  1. Find the period from bb, and mark the quarter-periods along the xx-axis: the key points of the wave fall at these.
  2. Draw the middle line y=cy = c, and the lines y=c+ay = c + a and y=c−ay = c - a.
  3. Start the wave correctly: sin⁡\sin starts on the middle line going up, cos⁡\cos starts at a maximum. If a<0a < 0, sin⁡\sin starts going down and cos⁡\cos starts at a minimum.
  4. Sketch smooth waves through the key points, covering exactly the interval asked for.
  5. Label the axis intercepts and the maximum and minimum points, or at least their values.
y = 1 - 2cos(2x) y = 1

y=1−2cos⁡2xy = 1 - 2\cos 2x: period π\pi, amplitude 22, reflected, middle line y=1y = 1, range −1≤y≤3-1 \le y \le 3.

Using graphs to count solutions

The solutions of f(x)=kf(x) = k are the xx-coordinates where the graph of y=f(x)y = f(x) meets the horizontal line y=ky = k. So a sketch tells you how many solutions an equation has in an interval before you solve it, and is the main check that you have found them all. Watch the ends of the interval: a curve that starts and ends at the same height can meet a line at both endpoints.

Worked examples

Sketching a transformed cosine graph

Sketch the graph of y=1−2cos⁡2xy = 1 - 2\cos 2x for 0∘≤x≤360∘0^\circ \le x \le 360^\circ, and state the range of yy.

Solution

cos⁡2x\cos 2x has period 360∘2=180∘\tfrac{360^\circ}{2} = 180^\circ, so there are two complete waves. The factor −2-2 gives amplitude 22 and reflects the wave, so it starts at a minimum. Adding 11 puts the middle line at y=1y = 1.

Key points: (0∘,−1)(0^\circ, -1), (45∘,1)(45^\circ, 1), (90∘,3)(90^\circ, 3), (135∘,1)(135^\circ, 1), (180∘,−1)(180^\circ, -1), then the same again up to (360∘,−1)(360^\circ, -1).

Range: −1≤y≤3-1 \le y \le 3.

y = 1 - 2cos(2x*pi/180) y = 1
Constants from the maximum, minimum and period

A curve has equation y=asin⁡bx+cy = a\sin bx + c, where aa, bb and cc are positive constants. The curve has maximum value 55, minimum value −1-1 and period 120∘120^\circ. Find aa, bb and cc.

Solutionc=5+(−1)2=2,a=5−(−1)2=3,360∘b=120∘⇒b=3c = \frac{5 + (-1)}{2} = 2, \qquad a = \frac{5 - (-1)}{2} = 3, \qquad \frac{360^\circ}{b} = 120^\circ \Rightarrow b = 3

So y=3sin⁡3x+2y = 3\sin 3x + 2.

Constants from two values

The function ff is defined by f(x)=a+bsin⁡xf(x) = a + b\sin x for 0≤x≤2π0 \le x \le 2\pi. Given that f(π2)=5f\left(\tfrac{\pi}{2}\right) = 5 and f(7π6)=2f\left(\tfrac{7\pi}{6}\right) = 2, find aa and bb, and state the range of ff.

Solution

sin⁡π2=1\sin\tfrac{\pi}{2} = 1 and sin⁡7π6=−12\sin\tfrac{7\pi}{6} = -\tfrac{1}{2}, so

a+b=5,a−12b=2a + b = 5, \qquad a - \tfrac{1}{2}b = 2

Subtracting: 32b=3\tfrac{3}{2}b = 3, so b=2b = 2 and a=3a = 3. Then f(x)=3+2sin⁡xf(x) = 3 + 2\sin x, and since −1≤sin⁡x≤1-1 \le \sin x \le 1, the range is 1≤f(x)≤51 \le f(x) \le 5.

A transformed tangent graph

Sketch the graph of y=tan⁡2xy = \tan 2x for 0≤x≤π0 \le x \le \pi, showing the asymptotes and the points where the graph meets the xx-axis.

Solution

The period of tan⁡2x\tan 2x is π2\tfrac{\pi}{2}. Asymptotes occur where 2x=π22x = \tfrac{\pi}{2} or 3π2\tfrac{3\pi}{2}, i.e. x=π4x = \tfrac{\pi}{4} and x=3π4x = \tfrac{3\pi}{4}. Zeros occur where 2x=0,π,2π2x = 0, \pi, 2\pi, i.e. x=0,π2,πx = 0, \tfrac{\pi}{2}, \pi.

y = tan(2x) x = pi/4 x = 3pi/4

The graph rises from (0,0)(0, 0) towards the asymptote x=π4x = \tfrac{\pi}{4}, reappears from below, passes through (π2,0)\left(\tfrac{\pi}{2}, 0\right), rises towards x=3π4x = \tfrac{3\pi}{4}, and reappears to end at (π,0)(\pi, 0).

Counting solutions with a parameter

(a) Sketch y=2cos⁡2xy = 2\cos 2x for 0∘≤x≤180∘0^\circ \le x \le 180^\circ.

(b) Find the set of values of kk for which the equation 2cos⁡2x=k2\cos 2x = k has exactly two solutions in 0∘≤x≤180∘0^\circ \le x \le 180^\circ.

Solution

(a) Period 180∘180^\circ, so one complete wave: it starts at (0∘,2)(0^\circ, 2), falls through (45∘,0)(45^\circ, 0) to (90∘,−2)(90^\circ, -2), and rises through (135∘,0)(135^\circ, 0) to (180∘,2)(180^\circ, 2).

y = 2cos(2x*pi/180) y = 1

(b) Slide a horizontal line y=ky = k across the sketch.

  • −2<k<2-2 < k < 2: the line cuts the wave once on the way down and once on the way up, two solutions.
  • k=2k = 2: the line meets the curve at both ends, x=0∘x = 0^\circ and x=180∘x = 180^\circ, two solutions.
  • k=−2k = -2: the line touches only at x=90∘x = 90^\circ, one solution.
  • ∣k∣>2|k| > 2: no solutions.

So there are exactly two solutions for −2<k≤2-2 < k \le 2.

Range, sketch and number of roots

The function ff is defined by f(x)=2−3sin⁡xf(x) = 2 - 3\sin x for 0≤x≤2π0 \le x \le 2\pi.

(a) State the range of ff.

(b) Sketch the graph of y=f(x)y = f(x).

(c) Find the set of values of kk for which f(x)=kf(x) = k has exactly two solutions.

Solution

(a) −1≤sin⁡x≤1-1 \le \sin x \le 1, so −3≤−3sin⁡x≤3-3 \le -3\sin x \le 3 and −1≤f(x)≤5-1 \le f(x) \le 5.

(b) The sine wave is reflected and stretched by factor 33, then moved up 22. It starts at (0,2)(0, 2), falls to a minimum (π2,−1)\left(\tfrac{\pi}{2}, -1\right), rises through (π,2)(\pi, 2) to a maximum (3π2,5)\left(\tfrac{3\pi}{2}, 5\right) and returns to (2π,2)(2\pi, 2).

y = 2 - 3sin(x) y = 2

(c) A horizontal line y=ky = k meets the graph:

  • once if k=−1k = -1 or k=5k = 5 (touching at a turning point);
  • twice if −1<k<2-1 < k < 2 or 2<k<52 < k < 5;
  • three times if k=2k = 2 (at x=0x = 0, π\pi and 2π2\pi).

Exactly two solutions: −1<k<2-1 < k < 2 or 2<k<52 < k < 5.

Watch out

Period the wrong way round. y=sin⁡3xy = \sin 3x has period 120∘120^\circ, not 1080∘1080^\circ. The factor bb squeezes the graph, so the period is divided by bb.

Amplitude and range confused. y=4cos⁡x−1y = 4\cos x - 1 has amplitude 44 but range −5≤y≤3-5 \le y \le 3.

Wrong starting point. y=−sin⁡xy = -\sin x starts at the origin going down; y=−cos⁡xy = -\cos x starts at −1-1.

Tangent drawn like a wave. tan⁡x\tan x has no maximum or minimum. Draw the asymptotes first, dashed, and make each branch approach them.

Degrees and radians mixed. If the interval is 0≤x≤2π0 \le x \le 2\pi, label the axis in radians. Do not mark 9090 on a radian axis.

Exam tip
  • "Sketch" means the correct shape over the whole interval, with key coordinates labelled: intercepts, maximum and minimum points, asymptotes. It does not mean plot accurately.
  • Interval endpoints. Start and finish the curve exactly at the ends of the interval given, and check whether the endpoints are included (for counting solutions).
  • Finding constants. Use maximum, minimum and period, or substitute given points. Cambridge often gives values at angles with exact sines and cosines, so use exact values, not decimals.
  • "Hence" after a sketch. If the next part says "hence state the number of solutions", count intersections on your sketch; no algebra is required.
  • Range. For asin⁡(bx)+ca\sin(bx) + c over a full period, the range is c−∣a∣≤y≤c+∣a∣c - |a| \le y \le c + |a|. Over a shorter interval, check the values at the ends.
Summary
  • On the unit circle, the point at angle θ\theta is (cos⁡θ,sin⁡θ)(\cos\theta, \sin\theta); this defines sine and cosine for all angles.
  • sin⁡x\sin x and cos⁡x\cos x: period 360∘360^\circ (2π2\pi), range [−1,1][-1, 1]. tan⁡x\tan x: period 180∘180^\circ (π\pi), asymptotes at 90∘+180∘n90^\circ + 180^\circ n.
  • y=asin⁡(bx)+cy = a\sin(bx) + c: amplitude ∣a∣|a|, period 360∘b\tfrac{360^\circ}{b}, middle line y=cy = c, range c−∣a∣c - |a| to c+∣a∣c + |a|.
  • y=atan⁡(bx)+cy = a\tan(bx) + c: period 180∘b\tfrac{180^\circ}{b}; asymptotes where bx=90∘,270∘,…bx = 90^\circ, 270^\circ, \ldots
  • Constants: c=max⁡+min⁡2c = \tfrac{\max + \min}{2}, a=max⁡−min⁡2a = \tfrac{\max - \min}{2}, or substitute known points.
  • Solutions of f(x)=kf(x) = k are the intersections with y=ky = k: count them on a sketch, watching the endpoints.

Practice questions

Question
  1. State the period and the range of y=2−cos⁡3xy = 2 - \cos 3x.
  2. Sketch y=3sin⁡(x+60∘)y = 3\sin\left(x + 60^\circ\right) for 0∘≤x≤360∘0^\circ \le x \le 360^\circ, stating the coordinates of the maximum and minimum points and the yy-intercept.
  3. The curve y=asin⁡bx+cy = a\sin bx + c, where aa, bb, cc are positive, has maximum value 77, minimum value 11 and period π\pi. Find aa, bb and cc.
  4. Sketch y=tan⁡(x−π4)y = \tan\left(x - \tfrac{\pi}{4}\right) for 0≤x≤2π0 \le x \le 2\pi, showing the asymptotes and the xx-intercepts.
  5. The curve y=a+bcos⁡xy = a + b\cos x passes through (0,7)(0, 7) and (π3,4)\left(\tfrac{\pi}{3}, 4\right). Find aa and bb, and state the range of yy.
  6. Use a sketch to state the number of solutions of 3sin⁡2x=23\sin 2x = 2 for 0≤x≤2π0 \le x \le 2\pi.
  7. Describe a sequence of transformations that maps y=sin⁡xy = \sin x onto y=2sin⁡x2−1y = 2\sin\tfrac{x}{2} - 1, and state the period and range of the new curve.
  8. The function ff is defined by f(x)=3cos⁡x−1f(x) = 3\cos x - 1 for 0≤x≤2π0 \le x \le 2\pi. (a) Find the range of ff. (b) Sketch the graph of y=f(x)y = f(x). (c) State the set of values of kk for which f(x)=kf(x) = k has exactly one solution.
  9. The graph of y=atan⁡(bx)+cy = a\tan(bx) + c, for −π6<x<π6-\tfrac{\pi}{6} < x < \tfrac{\pi}{6}, has asymptotes x=±π6x = \pm\tfrac{\pi}{6}, passes through (0,1)(0, 1) and through (π12,3)\left(\tfrac{\pi}{12}, 3\right). Find aa, bb and cc.
Answers
  1. Period 360∘3=120∘\tfrac{360^\circ}{3} = 120^\circ (or 2π3\tfrac{2\pi}{3}). −1≤cos⁡3x≤1-1 \le \cos 3x \le 1, so 1≤2−cos⁡3x≤31 \le 2 - \cos 3x \le 3.

  2. The sine wave is stretched by factor 33 and translated 60∘60^\circ to the left. Maximum when x+60∘=90∘x + 60^\circ = 90^\circ: (30∘,3)(30^\circ, 3). Minimum when x+60∘=270∘x + 60^\circ = 270^\circ: (210∘,−3)(210^\circ, -3). yy-intercept: 3sin⁡60∘=3323\sin 60^\circ = \tfrac{3\sqrt{3}}{2}. Zeros where x+60∘=180∘x + 60^\circ = 180^\circ or 360∘360^\circ: x=120∘,300∘x = 120^\circ, 300^\circ.

  3. c=7+12=4c = \tfrac{7 + 1}{2} = 4, a=7−12=3a = \tfrac{7 - 1}{2} = 3, and 2πb=π\tfrac{2\pi}{b} = \pi gives b=2b = 2. So y=3sin⁡2x+4y = 3\sin 2x + 4.

  4. The tangent graph translated π4\tfrac{\pi}{4} to the right. Asymptotes where x−π4=π2x - \tfrac{\pi}{4} = \tfrac{\pi}{2} or 3π2\tfrac{3\pi}{2}: x=3π4x = \tfrac{3\pi}{4} and x=7π4x = \tfrac{7\pi}{4}. Zeros where x−π4=0x - \tfrac{\pi}{4} = 0 or π\pi: x=π4x = \tfrac{\pi}{4} and 5π4\tfrac{5\pi}{4}. The yy-intercept is tan⁡(−π4)=−1\tan\left(-\tfrac{\pi}{4}\right) = -1.

  5. a+b=7a + b = 7 and a+12b=4a + \tfrac{1}{2}b = 4, so 12b=3\tfrac{1}{2}b = 3, b=6b = 6, a=1a = 1. y=1+6cos⁡xy = 1 + 6\cos x has range −5≤y≤7-5 \le y \le 7.

  6. sin⁡2x=23\sin 2x = \tfrac{2}{3}. Over 0≤x≤2π0 \le x \le 2\pi, y=sin⁡2xy = \sin 2x makes two complete waves, and the line y=23y = \tfrac{2}{3} (between 00 and 11) cuts each wave twice: 44 solutions.

  7. A stretch parallel to the xx-axis with factor 22, a stretch parallel to the yy-axis with factor 22, and a translation by (0−1)\begin{pmatrix} 0 \\ -1 \end{pmatrix} (the two stretches can be in either order; the translation comes after the yy-stretch). Period 4π4\pi (or 720∘720^\circ); range −3≤y≤1-3 \le y \le 1.

  8. (a) −1≤cos⁡x≤1-1 \le \cos x \le 1, so −4≤f(x)≤2-4 \le f(x) \le 2. (b) A cosine wave with amplitude 33 and middle line y=−1y = -1: from (0,2)(0, 2) down to (π,−4)(\pi, -4) and back to (2π,2)(2\pi, 2), crossing y=−1y = -1 at π2\tfrac{\pi}{2} and 3π2\tfrac{3\pi}{2}. (c) y=ky = k meets the graph once only at the minimum, k=−4k = -4. (For −4<k<2-4 < k < 2 there are two solutions, and for k=2k = 2 there are two, at x=0x = 0 and x=2πx = 2\pi.) So k=−4k = -4.

  9. At x=0x = 0, tan⁡0=0\tan 0 = 0, so c=1c = 1. The asymptotes of tan⁡(bx)\tan(bx) nearest the origin are at bx=±π2bx = \pm\tfrac{\pi}{2}, i.e. x=±π2bx = \pm\tfrac{\pi}{2b}, so π2b=π6\tfrac{\pi}{2b} = \tfrac{\pi}{6} and b=3b = 3. Then atan⁡π4+1=3a\tan\tfrac{\pi}{4} + 1 = 3, so a=2a = 2. The curve is y=2tan⁡3x+1y = 2\tan 3x + 1.

How well do you know this?

Builds on

Where this leads

Console

Search notes, courses and tools, or run an action