DoAssignment.ca

SL 3.7 · Analyse and transform sine, cosine, and tangent graphs

Learn to analyse and transform sine, cosine, and tangent graphs through clear examples and targeted practice.

International Baccalaureate (IB) IB AA SL: Mathematics: Analysis and Approaches SL

Geometry and Trigonometry

Reading period, shifts, scale, and key features from equations and graphs

The graphs of sine, cosine, and tangent repeat in regular patterns. Their familiar shapes can be shifted, reflected, or stretched by changing parameters in an equation. To analyse a transformed graph, first identify its parent function and then connect each parameter to a visible feature. Angles in this lesson are in radians unless stated otherwise. Familiarity with the basic graphs and exact values such as sin⁡0=0\sin 0=0 and cos⁡0=1\cos 0=1 is useful.

What you will learn

1. Start with the parent graphs

The parent sine graph is y=sin⁡xy=\sin x. It repeats every 2π2\pi, has midline y=0y=0, and ranges from −1-1 to 11. One cycle passes through (0,0)(0,0), (π2,1)(\frac{\pi}{2},1), (π,0)(\pi,0), (3π2,−1)(\frac{3\pi}{2},-1), and (2π,0)(2\pi,0).
The parent cosine graph is y=cos⁡xy=\cos x. It also repeats every 2π2\pi and ranges from −1-1 to 11. Its cycle starts at a maximum: (0,1)(0,1), (π2,0)(\frac{\pi}{2},0), (π,−1)(\pi,-1), (3π2,0)(\frac{3\pi}{2},0), and (2π,1)(2\pi,1).
The parent tangent graph is y=tan⁡xy=\tan x. It repeats every π\pi and passes through (0,0)(0,0). It is undefined at x=π2+kπx=\frac{\pi}{2}+k\pi, where kk is any integer; these values produce vertical asymptotes. Its graph has no maximum or minimum and has range all real numbers.

2. Read the parameters in a transformed equation

A useful form for sine and cosine is y=asin⁡(b(x−c))+dy=a\sin(b(x-c))+d or y=acos⁡(b(x−c))+dy=a\cos(b(x-c))+d. Here aa changes vertical scale and may reflect the graph; bb changes horizontal scale and period; cc shifts the graph horizontally; and dd shifts it vertically. The horizontal shift is cc to the right when c>0c>0, and to the left when c<0c<0.
For sine and cosine, the amplitude is |a|, the distance from the midline to a maximum or minimum. The midline is y=dy=d, so the range is from d−∣a∣d-|a| to d+∣a∣d+|a|. The period is 2π∣b∣\frac{2\pi}{|b|}. If a<0a<0, the graph is reflected vertically across its midline. If b<0b<0, the direction of travel along the horizontal axis is reversed; the period still uses |b|.
For tangent, a corresponding form is y=atan⁡(b(x−c))+dy=a\tan(b(x-c))+d. Its period is π∣b∣\frac{\pi}{|b|}. The value aa stretches or reflects the graph vertically, but tangent has no amplitude and its range remains all real numbers when a≠0a\ne 0. The central point is (c,d)(c,d). The vertical asymptotes occur when b(x−c)=π2+kπb(x-c)=\frac{\pi}{2}+k\pi, so their positions depend on both bb and cc.
To sketch a transformed sine or cosine graph, find the midline and period, then mark one cycle at five equally spaced horizontal positions. The spacing is one quarter-period. Use the parent graph’s sequence of highs, lows, and midline crossings, then apply the vertical scale and shift. For tangent, mark its central point and the two nearest asymptotes, then sketch the increasing or decreasing branch.
A context can help interpret the parameters. For example, a repeating height may have a midline representing average height, amplitude representing the size of the variation, and period representing the time for one complete cycle. The independent variable and its units must be stated; the equation’s shifts and period use those same units.
Tsin⁡,cos⁡=2π∣b∣,Ttan⁡=π∣b∣T_{\sin,\cos}=\frac{2\pi}{|b|},\qquad T_{\tan}=\frac{\pi}{|b|}

3. Connect equations, tables, graphs, and technology

A table of values is a practical bridge between an equation and a graph. For a sine or cosine model, choose inputs one quarter-period apart and evaluate the function. Plot the resulting points, draw the midline, and join the points with a smooth repeating curve. The points show where the graph crosses its midline and reaches its turning points.
For tangent, make a table only at inputs where the function is defined. Do not join points across a vertical asymptote. The graph approaches the asymptote on either side, but the asymptote itself is not in the domain.
A graphing calculator can check a sketch and reveal whether the chosen viewing window shows a complete cycle or an asymptote. Enter the equation with parentheses around the transformed input, set the angle mode to radians when using radian values, and adjust the window to include the relevant interval. Then verify the period, midline, turning points, or asymptotes analytically. A calculator display is a check, not a substitute for explaining how those features follow from the equation.
When a graph is provided instead, estimate its period by measuring the horizontal distance between matching points, such as consecutive maxima. For sine and cosine, the maximum and minimum values reveal the midline and amplitude: the midline is halfway between them, and the amplitude is half their difference. For tangent, use the spacing between equivalent branches or consecutive asymptotes to infer the period.

4. A reliable analysis routine

For a sine or cosine equation, rewrite the input as b(x−c)b(x-c) when possible. Read off aa, bb, cc, and dd; calculate amplitude, period, midline, and range; then plot key points over one period. For tangent, identify the centre, period, and nearest asymptotes before sketching.
State the domain when it matters. Sine and cosine are defined for every real input. Tangent excludes inputs that make its angle an odd multiple of π2\frac{\pi}{2}. In a real situation, the context may further restrict the domain, for example to nonnegative time or a stated observation interval.
Finish by checking that the graph matches the equation’s features. A vertical shift changes the midline or centre, not the period. A horizontal scale changes the period, not the vertical range. These checks often expose a misplaced bracket or a shift applied in the wrong direction.

Worked example

Sine graph with a shift and vertical stretch

Analyse and sketch one cycle of y=3sin⁡(2(x−π6))+1y=3\sin(2(x-\frac{\pi}{6}))+1.
  1. Identify the parameters
    Compare the equation with y=asin⁡(b(x−c))+dy=a\sin(b(x-c))+d. The amplitude is 33, the horizontal shift is π6\frac{\pi}{6} to the right, and the midline is y=1y=1.
    a=3,b=2,c=π6,d=1a=3,\quad b=2,\quad c=\frac{\pi}{6},\quad d=1
  2. Find the period and range
    The period is the parent period divided by the horizontal scale factor. The range extends three units above and below the midline.
    T=2π2=π,−2≤y≤4T=\frac{2\pi}{2}=\pi,\qquad -2\le y\le 4
  3. Mark the key points
    A quarter-period is π4\frac{\pi}{4}. Starting at the shifted sine crossing, use the usual sequence of midline, maximum, midline, minimum, and midline values.
    (π6,1),(5π12,4),(2π3,1),(11π12,−2),(7π6,1)\left(\frac{\pi}{6},1\right),\left(\frac{5\pi}{12},4\right),\left(\frac{2\pi}{3},1\right),\left(\frac{11\pi}{12},-2\right),\left(\frac{7\pi}{6},1\right)
Answer: One cycle runs from x=π6x=\frac{\pi}{6} to x=7π6x=\frac{7\pi}{6}. The graph has midline y=1y=1, amplitude 33, period π\pi, and range [−2,4][-2,4].
Check: The interval length is 7π6−π6=π\frac{7\pi}{6}-\frac{\pi}{6}=\pi, matching the calculated period.

Worked example

Cosine model from graph features

A repeating temperature model has a maximum of 2222 degrees at time t=1t=1 hour and a minimum of 1010 degrees at time t=7t=7 hours. Find a cosine model with positive amplitude for one repeating cycle, and state its period.
  1. Find the midline and amplitude
    The midline is halfway between the maximum and minimum. The amplitude is half their difference.
    d=22+102=16,a=22−102=6d=\frac{22+10}{2}=16,\qquad a=\frac{22-10}{2}=6
  2. Find the period
    The maximum and minimum are half a cycle apart. Their time difference is six hours, so the full period is twelve hours.
    T=2(7−1)=12T=2(7-1)=12
  3. Build the model
    A positive cosine graph begins at a maximum. Since the maximum occurs at t=1t=1, shift the cosine graph right by one hour. Choose bb so that its period is twelve hours.
    b=2π12=π6,T(t)=6cos⁡(π6(t−1))+16b=\frac{2\pi}{12}=\frac{\pi}{6},\qquad T(t)=6\cos\left(\frac{\pi}{6}(t-1)\right)+16
Answer: One suitable model is T(t)=6cos⁡(π6(t−1))+16T(t)=6\cos(\frac{\pi}{6}(t-1))+16, where tt is in hours and temperature is in degrees. Its period is 1212 hours.
Check: At t=1t=1, the cosine input is 00, giving the maximum 2222. At t=7t=7, the input is π\pi, giving the minimum 1010.

Worked example

Tangent period and asymptotes

For y=2tan⁡(3(x+π6))−1y=2\tan(3(x+\frac{\pi}{6}))-1, find the period, centre, and the two nearest vertical asymptotes.
  1. Read the centre and period
    The tangent centre occurs when its input is zero. The horizontal shift is left by π6\frac{\pi}{6}, and the vertical shift is down one unit.
    (−π6,−1),T=π3\left(-\frac{\pi}{6},-1\right),\qquad T=\frac{\pi}{3}
  2. Locate asymptotes
    Asymptotes occur when the tangent input is π2\frac{\pi}{2} or −π2-\frac{\pi}{2} around the centre. Solve for xx at each value.
    3(x+π6)=±π2⟹x=−π3, 03\left(x+\frac{\pi}{6}\right)=\pm\frac{\pi}{2}\quad\Longrightarrow\quad x=-\frac{\pi}{3},\ 0
  3. Describe the branch
    The vertical factor is positive, so the branch between these asymptotes increases through the centre. The factor 22 changes its vertical steepness but does not change the period.
    −π3<x<0-\frac{\pi}{3}<x<0
Answer: The period is π3\frac{\pi}{3}, the centre is (−π6,−1)(-\frac{\pi}{6},-1), and the nearest asymptotes are x=−π3x=-\frac{\pi}{3} and x=0x=0.
Check: The centre lies halfway between the asymptotes, and their separation is π3\frac{\pi}{3}, equal to one tangent period.

Common mistakes and how to avoid them

Using 2πb2\pi b as the sine or cosine period.
Correction: The period is divided by the magnitude of the coefficient of xx: 2π∣b∣\frac{2\pi}{|b|}. For tangent, use π∣b∣\frac{\pi}{|b|}.
Treating a shift written as (x+q)(x+q) as a shift right by qq.
Correction: Rewrite the input as b(x−c)b(x-c). A positive cc shifts right; a negative cc shifts left.
Calling the factor outside tangent its amplitude.
Correction: Tangent has no maximum or minimum, so it has no amplitude. The factor changes vertical scale and the range remains all real numbers when the factor is nonzero.
Drawing through a tangent asymptote or including its input in the domain.
Correction: Find the excluded inputs from the transformed angle and sketch separate branches on either side.

Lesson summary

Check your understanding

Question 1

What is the period of y=cos⁡(4x)−2y=\cos(4x)-2?
  1. π2\frac{\pi}{2}
  2. 4π4\pi
  3. 2π2\pi
  4. π4\frac{\pi}{4}
Show answer and explanation
π2\frac{\pi}{2}
For cosine, the period is 2π∣b∣\frac{2\pi}{|b|}. With b=4b=4, it is π2\frac{\pi}{2}; the vertical shift does not change the period.

Question 2

For y=−2sin⁡(x)+3y=-2\sin(x)+3, what are the range and midline?
  1. Range [1,5][1,5], midline y=3y=3
  2. Range [−2,2][-2,2], midline y=0y=0
  3. Range [3,5][3,5], midline y=−2y=-2
  4. Range [−5,−1][-5,-1], midline y=−3y=-3
Show answer and explanation
Range [1,5][1,5], midline y=3y=3
The amplitude is 22 and the midline is y=3y=3, so the range is [3−2,3+2]=[1,5][3-2,3+2]=[1,5]. The negative sign reflects the graph but does not change these values.

Question 3

Which inputs are vertical asymptotes of y=tan⁡(2x)y=\tan(2x) in the interval 0≤x≤π0\le x\le\pi?
  1. x=π4,3π4x=\frac{\pi}{4},\frac{3\pi}{4}
  2. x=π2x=\frac{\pi}{2} only
  3. x=π2,πx=\frac{\pi}{2},\pi
  4. x=π8,5π8x=\frac{\pi}{8},\frac{5\pi}{8}
Show answer and explanation
x=π4,3π4x=\frac{\pi}{4},\frac{3\pi}{4}
Set 2x=π2+kπ2x=\frac{\pi}{2}+k\pi. In the stated interval, this gives x=π4x=\frac{\pi}{4} and x=3π4x=\frac{3\pi}{4}.

Key terms

Amplitude
For a sine or cosine graph, the distance from its midline to a maximum or minimum.
Midline
The horizontal line halfway between the maximum and minimum of a sine or cosine graph.
Period
The horizontal length of one complete repeating cycle.
Vertical asymptote
A vertical line that a graph approaches but does not meet; tangent is undefined at its asymptote inputs.

Continue through IB AA SL

View the complete IB AA SL International Baccalaureate (IB) IB AA SL: Mathematics: Analysis and Approaches SL curriculum and lessons

About this lesson and its review

Published by DoAssignment. This AI-assisted lesson follows International Baccalaureate (IB) IB AA SL: Mathematics: Analysis and Approaches SL, study topic SL 3.7. It is a study resource, not an official curriculum publication.

Before publication, the draft is checked for structure, mathematical or chemical notation, calculations, course boundaries, and readability, and then requires administrator approval. Errors can still occur, so corrections are welcomed.

Official curriculum reference

Report a correction or ask a question