Graphs of Sine and Cosine

Study Sheet

Graphs of Sine and Cosine

Amplitude, period, phase shift, vertical shift, and modeling

The Basic Graphs y=sinxy=\sin x and y=cosxy=\cos x

Concept
The parent sine and cosine curves
2

Both y=sinxy=\sin x and y=cosxy=\cos x are periodic with period 2π2\pi: the graph repeats every 2π2\pi units. Each has amplitude 11, midline y=0y=0, maximum value 11, and minimum value 1-1.

  • [leftmargin=*]
  • y=sinxy=\sin x starts at the midline: (0,0)(0,0), rises to a max, returns, falls to a min, returns.
  • y=cosxy=\cos x starts at a maximum: (0,1)(0,1), falls to the midline, to a min, and back up.

Five-point method: divide one period into four equal pieces. For [0,2π][0,2\pi] the key xx-values are

0,π2,π,3π2,2π.0,\quad \dfrac{\pi}{2},\quad \pi,\quad \dfrac{3\pi}{2},\quad 2\pi.

Evaluate the function at these five points, then connect with a smooth wave.

Amplitude is the height; period is one full cycle.

Example
Worked example: graph y=sinxy=\sin x with the five-point method

Amplitude =1=1, period =2π=2\pi, midline y=0y=0. Key points on [0,2π][0,2\pi]:

Tip

Tip: Cosine is just sine shifted π2\tfrac{\pi}{2} to the left: cosx=sin ⁣(x+π2)\cos x=\sin\!\left(x+\tfrac{\pi}{2}\right). Remember “sine starts at the middle, cosine starts at the top.”

Amplitude a|a| and Vertical Reflection

Concept
The role of aa in y=asinxy=a\sin x and y=acosxy=a\cos x
2

The number aa stretches the graph vertically.

  • [leftmargin=*]
  • Amplitude =a=maxmin2=|a|=\dfrac{\text{max}-\text{min}}{2}: the distance from the midline to a peak.
  • Maximum value =a=|a|, minimum value =a=-|a| (when midline is y=0y=0).
  • If a<0a<0, the graph is reflected across the xx-axis (flipped upside down).
  • aa does not change the period or the midline.

Amplitude is the height; period is one full cycle.

Example
Worked example: y=3cosxy=3\cos x and y=2sinxy=-2\sin x

y=3cosxy=3\cos x: amplitude =3=3=|3|=3, max 33, min 3-3, period 2π2\pi, midline y=0y=0. y=2sinxy=-2\sin x: amplitude =2=2=|-2|=2; because a=2<0a=-2<0 the sine wave is reflected, so it goes down first from (0,0)(0,0).

Tip

Tip: A negative aa never makes the amplitude negative. Amplitude is always a0|a|\ge 0; the sign only tells you whether the wave is flipped.

Period and the Coefficient bb

Concept
Period =2πb=\dfrac{2\pi}{b}
2

In y=asin(bx)y=a\sin(bx) or y=acos(bx)y=a\cos(bx) (with b>0b>0), the coefficient bb controls how fast the wave cycles:

 Period=2πb sob=2πPeriod.\boxed{\ \text{Period}=\dfrac{2\pi}{b}\ }\qquad\text{so}\qquad b=\dfrac{2\pi}{\text{Period}}.
  • [leftmargin=*]
  • b>1b>1 compresses the graph: more cycles, shorter period.
  • 0<b<10<b<1 stretches the graph: fewer cycles, longer period.

To find five key points, split one period into four equal steps of width 142πb=π2b\tfrac{1}{4}\cdot\tfrac{2\pi}{b}=\tfrac{\pi}{2b}.

Amplitude is the height; period is one full cycle.

Example
Worked example: y=sin2xy=\sin 2x

Here b=2b=2, so period =2π2=π=\dfrac{2\pi}{2}=\pi. The wave completes a full cycle in π\pi, i.e. two cycles on [0,2π][0,2\pi]. Key xx-values, stepping by π4\tfrac{\pi}{4}:  0, π4, π2, 3π4, π.\ 0,\ \tfrac{\pi}{4},\ \tfrac{\pi}{2},\ \tfrac{3\pi}{4},\ \pi.

Tip

Tip: Amplitude and period are independent. In y=4sin2xy=4\sin 2x the amplitude is 44 and the period is still 2π2=π\dfrac{2\pi}{2}=\pi --- the 44 has no effect on the period.

Phase (Horizontal) Shift and Vertical Shift

Concept
Shifting the graph: y=asin(bxc)+dy=a\sin(bx-c)+d
xy

Two more numbers slide the whole graph:

  • [leftmargin=*]
  • Vertical shift dd: raises (d>0d>0) or lowers (d<0d<0) the graph. The new midline is y=dy=d; max =d+a=d+|a|, min =da=d-|a|.
  • Phase (horizontal) shift =cb=\dfrac{c}{b}: found by setting the inside equal to zero, bxc=0x=cbbx-c=0\Rightarrow x=\dfrac{c}{b}. A positive result shifts right, negative shifts left.

Slope is rise over run.

Example
Worked example: y=sin ⁣(xπ2)y=\sin\!\left(x-\frac{\pi}{2}\right) and y=cosx+2y=\cos x+2

y=sin ⁣(xπ2)y=\sin\!\left(x-\tfrac{\pi}{2}\right): set xπ2=0x=π2x-\tfrac{\pi}{2}=0\Rightarrow x=\tfrac{\pi}{2}, so shift π2\tfrac{\pi}{2} to the right. (It coincides with cosx-\cos x.) y=cosx+2y=\cos x+2: no horizontal shift; d=2d=2 moves the midline up to y=2y=2, so it swings between 11 and 33.

Tip

Tip: Always factor out bb before reading the phase shift: sin(2xπ)=sin ⁣(2(xπ2))\sin(2x-\pi)=\sin\!\big(2(x-\tfrac{\pi}{2})\big) shows the shift is π2\tfrac{\pi}{2}, not π\pi. Equivalently, phase shift =cb=\dfrac{c}{b}.

Graphing the Full Sinusoid y=asin(bxc)+dy=a\sin(bx-c)+d

Concept
Five steps for any sinusoid
2
  • [leftmargin=*]
  • Amplitude =a=|a|.   2. Period =2πb=\dfrac{2\pi}{b}.   3. Phase shift =cb=\dfrac{c}{b} (right if ++).
  • [4.] Midline y=dy=d; max =d+a=d+|a|, min =da=d-|a|.
  • [5.] Start the cycle at x=cbx=\dfrac{c}{b}, then plot five points a quarter-period 2π4b\dfrac{2\pi}{4b} apart.

Amplitude is the height; period is one full cycle.

Example
Worked example: y=2sin ⁣(2xπ2)+1y=2\sin\!\left(2x-\frac{\pi}{2}\right)+1

a=2, b=2, c=π2, d=1a=2,\ b=2,\ c=\tfrac{\pi}{2},\ d=1.

  • [leftmargin=*]
  • Amplitude =2=2=|2|=2;   Period =2π2=π=\dfrac{2\pi}{2}=\pi.
  • Phase shift =cb=π/22=π4=\dfrac{c}{b}=\dfrac{\pi/2}{2}=\dfrac{\pi}{4} to the right.
  • Midline y=1y=1; max =1+2=3=1+2=3; min =12=1=1-2=-1.
  • Cycle starts at x=π4x=\tfrac{\pi}{4}; quarter-period =π4=\dfrac{\pi}{4}. Key points at x=π4,π2,3π4,π,5π4x=\tfrac{\pi}{4},\tfrac{\pi}{2},\tfrac{3\pi}{4},\pi,\tfrac{5\pi}{4} give y=1,3,1,1,1y=1,3,1,-1,1.
Tip

Tip: The vertical shift dd and midline are the “sea level” of the wave. Find max/min by adding and subtracting the amplitude from dd: max=d+a\text{max}=d+|a|, min=da\text{min}=d-|a|.

Writing an Equation from a Graph or Description

Concept
Reverse-engineering a sinusoid
2

Given a graph or a word description, recover a,b,c,da,b,c,d:

  • [leftmargin=*]
  • d=max+min2d=\dfrac{\text{max}+\text{min}}{2} (midline).   2. a=maxmin2|a|=\dfrac{\text{max}-\text{min}}{2} (amplitude).
  • [3.] b=2πPeriodb=\dfrac{2\pi}{\text{Period}}.
  • [4.] Choose sine or cosine to match the starting behavior, then set cc from the horizontal shift. A maximum at x=x0x=x_0 suggests y=acos ⁣(b(xx0))+dy=a\cos\!\big(b(x-x_0)\big)+d. A midline point rising suggests sine.

Amplitude is the height; period is one full cycle.

Example
Worked example: write an equation

A wave has maximum 77, minimum 1-1, period π\pi, and a maximum at x=0x=0. d=7+(1)2=3d=\dfrac{7+(-1)}{2}=3;   a=7(1)2=4|a|=\dfrac{7-(-1)}{2}=4;   b=2ππ=2b=\dfrac{2\pi}{\pi}=2. A maximum at x=0x=0 with no shift matches cosine: y=4cos(2x)+3\boxed{\,y=4\cos(2x)+3\,}.

Example
Worked example: modeling with a Ferris wheel

A Ferris wheel has radius 2020 m; its center is 2222 m above the ground. It makes one revolution every 4040 s and a rider boards at the bottom at t=0t=0. Model the height h(t)h(t). Amplitude =20=20 (the radius); midline d=22d=22 (center height); period =40b=2π40=π20=40\Rightarrow b=\dfrac{2\pi}{40}=\dfrac{\pi}{20}. Starting at the bottom (a minimum) matches cos-\cos:

h(t)=20cos ⁣(π20t)+22\boxed{\,h(t)=-20\cos\!\left(\dfrac{\pi}{20}\,t\right)+22\,}

Check: h(0)=20+22=2h(0)=-20+22=2 m (bottom); h(20)=20+22=42h(20)=20+22=42 m (top). ✓

Tip

Modeling tip: In real problems, amplitude =12(highlow)=\tfrac12(\text{high}-\text{low}), midline =12(high+low)=\tfrac12(\text{high}+\text{low}), and the period is the time for one full cycle. Use +cos+\cos if it starts at the high point, cos-\cos if it starts at the low point, and sin\sin if it starts at the midline.

Going Deeper: Advanced Sine & Cosine Graphs

Concept
Combining two sinusoids: asinx+bcosx=Rsin(x+ϕ)a\sin x+b\cos x=R\sin(x+\phi)
2

A sum of a sine and a cosine of the same frequency is itself a single sinusoid. For any constants a,ba,b,

 asinx+bcosx=Rsin(x+ϕ) R=a2+b2,tanϕ=ba.\boxed{\ a\sin x+b\cos x=R\sin(x+\phi)\ }\qquad R=\sqrt{a^2+b^2},\quad \tan\phi=\dfrac{b}{a}.
  • [leftmargin=*]
  • R=a2+b2R=\sqrt{a^2+b^2} is the amplitude of the combined wave (always 0\ge 0).
  • The phase angle ϕ\phi satisfies cosϕ=aR\cos\phi=\dfrac{a}{R} and sinϕ=bR\sin\phi=\dfrac{b}{R}; use both signs to place ϕ\phi in the correct quadrant --- do not trust arctan\arctan alone.
  • You may also write it as Rcos(xψ)R\cos(x-\psi) with tanψ=ab\tan\psi=\dfrac{a}{b}. Same curve, different bookkeeping.

This is why superposition of two oscillations (of equal period) never produces a new shape --- only a shifted, rescaled sine.

Amplitude is the height; period is one full cycle.

Example
Worked example: rewrite 3sinx+4cosx3\sin x+4\cos x as a single sine

Here a=3, b=4a=3,\ b=4. Then R=32+42=25=5R=\sqrt{3^2+4^2}=\sqrt{25}=5, and cosϕ=35\cos\phi=\tfrac{3}{5}, sinϕ=45\sin\phi=\tfrac{4}{5} (both positive, so ϕ\phi is in the first quadrant):

ϕ=arctan ⁣430.927 rad3sinx+4cosx=5sin(x+0.927).\phi=\arctan\!\tfrac{4}{3}\approx 0.927\ \text{rad}\quad\Longrightarrow\quad 3\sin x+4\cos x=5\sin(x+0.927).

So the sum has amplitude 55, period 2π2\pi, and peaks a little before x=π2x=\tfrac{\pi}{2} (shifted left by 0.9270.927). The thick curve below is the single combined sinusoid; the two thin curves are its ingredients.

Tip

Tip: The combined amplitude R=a2+b2R=\sqrt{a^2+b^2} is never simply a+ba+b. For 3sinx+4cosx3\sin x+4\cos x the peaks of the two pieces occur at different xx-values, so they never add to 3+4=73+4=7; the true maximum is R=5R=5.

Concept
Max, min, and the period of a sum

Once a sinusoid is written as y=Asin(bxc)+dy=A\sin(bx-c)+d (or found via RR above), reading its extremes is mechanical:

  • [leftmargin=*]
  • Maximum =d+A=d+|A|, reached when the inside angle =π2=\tfrac{\pi}{2}; minimum =dA=d-|A|, when the inside angle =π2=-\tfrac{\pi}{2} (or 3π2\tfrac{3\pi}{2}).
  • Solve for the location: set bxc=π2+2πkbx-c=\tfrac{\pi}{2}+2\pi k and solve for xx to find where the max occurs.

Period of a sum of different frequencies. y=sin(b1x)+sin(b2x)y=\sin(b_1 x)+\sin(b_2 x) is generally not a simple sinusoid. Its period is the least common multiple of the two periods 2πb1\tfrac{2\pi}{b_1} and 2πb2\tfrac{2\pi}{b_2} (when that LCM exists):

Period(sin2x+sin3x)=lcm ⁣(2π2,2π3)=lcm(π,2π3)=2π.\text{Period}\big(\sin 2x+\sin 3x\big)=\operatorname{lcm}\!\left(\tfrac{2\pi}{2},\tfrac{2\pi}{3}\right)=\operatorname{lcm}(\pi,\tfrac{2\pi}{3})=2\pi.

If the ratio b1/b2b_1/b_2 is irrational, the sum is not periodic at all.

Concept
Intersections and counting solutions on an interval

To find where two graphs meet, or how many times an equation is satisfied on an interval, think geometrically:

  • [leftmargin=*]
  • Intersection of two curves y=f(x)y=f(x) and y=g(x)y=g(x): set f(x)=g(x)f(x)=g(x) and solve. Each solution is one crossing point.
  • Number of solutions of sinx=k\sin x=k on [0,2π)[0,2\pi): draw the horizontal line y=ky=k. If 1<k<1-1<k<1 there are 2 solutions; if k=±1k=\pm 1 there is exactly 1 (a tangent touch at the peak/trough); if k>1|k|>1 there are 0.
  • For a compressed wave sin(bx)=k\sin(bx)=k on [0,2π)[0,2\pi), the line crosses roughly 2b2b times because the wave completes bb full cycles. Count crossings, do not just solve once.
Example
Worked example: count solutions of cosx=12\cos x=\tfrac12 vs. cos2x=12\cos 2x=\tfrac12 on [0,2π)[0,2\pi)

The line y=12y=\tfrac12 meets y=cosxy=\cos x where x=π3x=\tfrac{\pi}{3} and x=5π3x=\tfrac{5\pi}{3} --- 2 solutions. But y=cos2xy=\cos 2x completes two full cycles on [0,2π)[0,2\pi), so the same line cuts it 4 times: 2x=π3,5π3,7π3,11π32x=\tfrac{\pi}{3},\tfrac{5\pi}{3},\tfrac{7\pi}{3},\tfrac{11\pi}{3}, giving x=π6,5π6,7π6,11π6x=\tfrac{\pi}{6},\tfrac{5\pi}{6},\tfrac{7\pi}{6},\tfrac{11\pi}{6}.

Doubling the frequency doubled the number of solutions.

Example
Worked example: tide model with a solve-for-time step

At a harbor the water is 66 m deep at high tide and 22 m at low tide; high tide occurs at t=0t=0 hours and the cycle repeats every 1212 hours. Model the depth and find when the depth first reaches 55 m.

Build the model. Midline d=6+22=4d=\tfrac{6+2}{2}=4; amplitude A=622=2|A|=\tfrac{6-2}{2}=2; period 12b=2π12=π612\Rightarrow b=\tfrac{2\pi}{12}=\tfrac{\pi}{6}. It starts at a maximum, so use +cos+\cos:

h(t)=2cos ⁣(π6t)+4\boxed{\,h(t)=2\cos\!\left(\tfrac{\pi}{6}t\right)+4\,}

Solve for time. Set h(t)=5h(t)=5:

2cos ⁣(π6t)+4=5cos ⁣(π6t)=12π6t=π3 or 5π3t=2 h or t=10 h.\begin{aligned} 2\cos\!\left(\tfrac{\pi}{6}t\right)+4&=5 &&\Longrightarrow&& \cos\!\left(\tfrac{\pi}{6}t\right)=\tfrac12\\ \tfrac{\pi}{6}t&=\tfrac{\pi}{3}\ \text{or}\ \tfrac{5\pi}{3} &&\Longrightarrow&& t=2\ \text{h}\ \text{or}\ t=10\ \text{h}. \end{aligned}

The depth first hits 55 m at t=2t=2 hours (falling), and again at t=10t=10 hours (rising back up).

Concept
Writing a sinusoid from scattered conditions, and identical graphs

From scattered data. You do not need a clean starting point. Given a few facts:

  • [leftmargin=*]
  • Get the midline and amplitude from any known high and low: d=12(high+low)d=\tfrac12(\text{high}+\text{low}), A=12(highlow)|A|=\tfrac12(\text{high}-\text{low}).
  • Get bb from the period, or from the distance between a max and the next min (that gap is a half-period).
  • Pin the horizontal shift with one labeled point --- ideally a max, min, or midline crossing --- by forcing the model to pass through it.

Different formulas, identical graphs. Because sine and cosine are shifts of each other, many equations describe the same curve. All four below are one graph:

sin ⁣(x+π2)=cosx=cos(x+π)=sin ⁣(π2x).\sin\!\left(x+\tfrac{\pi}{2}\right)=\cos x=-\cos(x+\pi)=\sin\!\left(\tfrac{\pi}{2}-x\right).

A reflection  ⁣sinx-\!\sin x equals a half-period shift sin(xπ)\sin(x-\pi); adding 2π2\pi to a phase changes nothing. When two answers look different, test a few points (or compare A,b,dA,b,d and one peak location) to confirm they match.

Tip

Big-picture tip: Every equal-frequency combination, reflection, and phase shift of sine and cosine is still a single sinusoid --- same midline spacing, same period, just relocated and rescaled. Reach for Rsin(x+ϕ)R\sin(x+\phi) to unify them, and always finish a modeling problem with an explicit solve-for-tt step.

Formulas, Proofs & Tips

Tip
Amplitude, period and shifts
y=asin(b(xc))+d:amplitude=a,period=2πb,shift=c,midline=dy=a\sin\big(b(x-c)\big)+d:\quad \text{amplitude}=|a|,\quad \text{period}=\frac{2\pi}{|b|},\quad \text{shift}=c,\quad \text{midline}=d

What it means. aa stretches the wave, bb squeezes it, cc slides it sideways, dd moves the centre line.

Example. y=3sin(2x)y=3\sin(2x) has amplitude 33 and period 2π2=π\tfrac{2\pi}{2}=\pi.

Why it works. sin\sin repeats when its input advances by 2π2\pi. Here the input is b(xc)b(x-c), so xx only needs to advance by 2πb\tfrac{2\pi}{b} to complete a cycle — the period shrinks as bb grows.

Tip. Amplitude uses a|a| — a negative aa flips the wave but does not make the amplitude negative.