Practice / Trigonometry

Graphs of sine and cosine: amplitude, period and phase shift

Ten problems on the graphs of sine and cosine: amplitude, period, midline and range read off a formula, the phase shift of sin(2x − π/3) with B factored out, the five key points of one period, cosine as a shifted sine, an equation built from a maximum and the next minimum, a daylight model and the days above 14 hours, hertz against radians per second for a mains voltage, the period of sin 2x + cos 3x, why the order of a stretch and a shift matters, and the wavelengths of a transformer's positional encoding with the rotation that moves it k positions, with worked solutions and the mistakes of reading the phase shift before factoring out B, taking the period as 2πB, taking the maximum as the amplitude, dropping the midline's sign and evaluating in degrees.

Before you start

Every sine wave is the graph of sin⁡x\sin x stretched, shifted and flipped, and four numbers say exactly how: the amplitude, the period, the phase shift and the midline. Reading them off a formula, and writing the formula from a graph or a description, is the skill behind models of daylight, tides, alternating current and sound, and behind the sinusoidal positional encodings of a transformer. These ten problems read the four numbers off formulas, sketch one period from five key points, turn a cosine into a sine, build an equation from a maximum and a minimum, use a daylight model, convert between hertz and radians per second, find the period of a sum, and end with the positional encoding and the rotation hidden in it. The five mistakes at the end are the ones that still give a believable graph: a phase shift read before factoring out BB, a period of 2πB2\pi B, the maximum taken as the amplitude, the midline's sign dropped, and a calculator left in degrees.

  • The general sinusoid. y=Asin⁡(B(x−C))+Dy = A\sin\big(B(x - C)\big) + D, and the same with cos⁡\cos, with A≠0A \ne 0 and B≠0B \ne 0. Angles are in radians throughout.
  • Amplitude ∣A∣|A|: half the distance from the minimum to the maximum. A negative AA flips the graph across the midline.
  • Period 2π/∣B∣2\pi/|B|: the length of one full cycle. ∣B∣|B| is the angular frequency, in radians per unit of xx, and ∣B∣/(2π)|B|/(2\pi), cycles per unit of xx, is the frequency.
  • Phase shift CC: the graph of Asin⁡(Bx)+DA\sin(Bx) + D moved CC units to the right (C<0C < 0 moves it left). It is read only after BB has been factored out of the argument.
  • Midline y=Dy = D: the level halfway between the maximum D+∣A∣D + |A| and the minimum D−∣A∣D - |A|.
  • One period of sin⁡x\sin x, from 00 to 2π2\pi, has five key points: midline at 00, maximum at π2\tfrac\pi2, midline at π\pi, minimum at 3π2\tfrac{3\pi}2, midline at 2π2\pi. For cos⁡x\cos x the list is maximum, midline, minimum, midline, maximum.
  • A function ff is periodic with period T>0T > 0 if f(x+T)=f(x)f(x + T) = f(x) for every xx; "the" period is the smallest such TT.

Problems

  1. ·

    Find the amplitude, period, midline and range of y=3sin⁡(4x)−1y = 3\sin(4x) - 1 and of y=−2cos⁡(x/3)+5y = -2\cos(x/3) + 5.

  2. ··

    For y=2sin⁡(2x−π/3)+1y = 2\sin(2x - \pi/3) + 1, find the amplitude, period and phase shift, and the first x≥0x \ge 0 where yy is largest.

  3. ··

    List the five key points of one period of y=3sin⁡(x2−π4)+2y = 3\sin\big(\tfrac x2 - \tfrac\pi4\big) + 2, starting at the phase shift.

  4. ··

    Show that cos⁡x=sin⁡(x+π2)\cos x = \sin\big(x + \tfrac\pi2\big). Then write y=5cos⁡(3x)y = 5\cos(3x) in the form Asin⁡(B(x−C))A\sin(B(x - C)) with A>0A > 0, and write y=−2sin⁡xy = -2\sin x as a cosine with a positive amplitude.

  5. ··

    A sinusoid has a maximum of 77 at x=1x = 1, and its next minimum is −1-1, at x=4x = 4. Write it as y=Acos⁡(B(x−C))+Dy = A\cos(B(x - C)) + D with A,B>0A, B > 0, and then as a sine.

  6. ···

    A model of the hours of daylight on day tt of the year at a northern latitude is

    H(t)=12+3sin⁡ ⁣(2π365(t−80)).H(t) = 12 + 3\sin\!\Big(\frac{2\pi}{365}(t - 80)\Big).

    Give its period, midline and amplitude, and the daylight on day 172172. On which days of the year does it give more than 1414 hours?

  7. ·

    A mains voltage is V(t)=170sin⁡(120πt)V(t) = 170\sin(120\pi t) volts, with tt in seconds. Find its angular frequency, frequency, period and amplitude, and its root-mean-square value mean of V2\sqrt{\text{mean of } V^2} over one period.

  8. ···

    Find the period of f(x)=sin⁡(2x)+cos⁡(3x)f(x) = \sin(2x) + \cos(3x). Is g(x)=sin⁡x+sin⁡(2 x)g(x) = \sin x + \sin(\sqrt2\,x) periodic?

  9. ··

    Start from y=sin⁡xy = \sin x. (a) Stretch the graph horizontally by a factor of 44, then shift it π\pi to the right. (b) Shift it π\pi to the right, then stretch it horizontally by a factor of 44. Write each equation and give its phase shift.

  10. ···

    A transformer's sinusoidal positional encoding gives position pp the features

    PE(p,2i)=sin⁡(ωip),PE(p,2i+1)=cos⁡(ωip),\begin{aligned} \mathrm{PE}(p, 2i) &= \sin(\omega_i p),\\ \mathrm{PE}(p, 2i+1) &= \cos(\omega_i p), \end{aligned}

    with ωi=10000−2i/d\omega_i = 10000^{-2i/d}, for i=0,…,d/2−1i = 0, \ldots, d/2 - 1. With d=512d = 512, find the period in positions of pair i=0i = 0, i=128i = 128 and i=255i = 255. Then show that for each pair there is a 2×22 \times 2 matrix RkR_k, depending on kk but not on pp, that sends the pair at position pp to the pair at position p+kp + k.

Worked solutions

Problem 1

Find the amplitude, period, midline and range of y=3sin⁡(4x)−1y = 3\sin(4x) - 1 and of y=−2cos⁡(x/3)+5y = -2\cos(x/3) + 5.

  1. For 3sin⁡(4x)−13\sin(4x) - 1: A=3A = 3, B=4B = 4, D=−1D = -1Match it to Asin⁡(B(x−C))+DA\sin(B(x - C)) + D with C=0C = 0.
  2. Amplitude 33, period 2π/4=π22\pi/4 = \tfrac\pi2, midline y=−1y = -1The definitions.
  3. Range [−1−3,−1+3]=[−4,2][-1 - 3, -1 + 3] = [-4, 2]Maximum D+∣A∣D + |A|, minimum D−∣A∣D - |A|.
  4. For −2cos⁡(x/3)+5-2\cos(x/3) + 5: A=−2A = -2, B=13B = \tfrac13, D=5D = 5x/3=13xx/3 = \tfrac13x.
  5. Amplitude ∣−2∣=2|{-2}| = 2, period 2π/13=6π2\pi/\tfrac13 = 6\pi, midline y=5y = 5A small BB means a long period.
  6. 3sin⁡(4x)−13\sin(4x) - 1: amplitude 33, period π2\tfrac\pi2, midline y=−1y = -1, range [−4,2][-4, 2]. −2cos⁡(x/3)+5-2\cos(x/3) + 5: amplitude 22, period 6π6\pi, midline y=5y = 5, range [3,7][3, 7]The negative AA does not shrink anything: it starts the cosine at its minimum, 33 at x=0x = 0, instead of its maximum.

Problem 2

For y=2sin⁡(2x−π/3)+1y = 2\sin(2x - \pi/3) + 1, find the amplitude, period and phase shift, and the first x≥0x \ge 0 where yy is largest.

  1. 2x−π3=2(x−π6)2x - \tfrac\pi3 = 2\big(x - \tfrac\pi6\big)Factor B=2B = 2 out of the whole argument.
  2. Amplitude 22, period 2π/2=π2\pi/2 = \pi, phase shift π6\tfrac\pi6Now it matches Asin⁡(B(x−C))+DA\sin(B(x - C)) + D with C=π6C = \tfrac\pi6.
  3. The maximum is where 2(x−π6)=π2+2πk2\big(x - \tfrac\pi6\big) = \tfrac\pi2 + 2\pi ksin⁡\sin peaks at π2\tfrac\pi2 plus whole periods.
  4. x=π6+π4+πk=5π12+πkx = \tfrac\pi6 + \tfrac\pi4 + \pi k = \tfrac{5\pi}{12} + \pi kDivide by 22, then add π6\tfrac\pi6.
  5. Amplitude 22, period π\pi, phase shift π6\tfrac\pi6 to the right; the first maximum for x≥0x \ge 0 is at x=5π12≈1.309x = \tfrac{5\pi}{12} \approx 1.309, where y=3y = 3k=−1k = -1 gives 5π12−π<0\tfrac{5\pi}{12} - \pi < 0. Equivalently, the peak of sin⁡(2x)\sin(2x) at π4\tfrac\pi4 moved right by π6\tfrac\pi6.

Problem 3

List the five key points of one period of y=3sin⁡(x2−π4)+2y = 3\sin\big(\tfrac x2 - \tfrac\pi4\big) + 2, starting at the phase shift.

  1. x2−π4=12(x−π2)\tfrac x2 - \tfrac\pi4 = \tfrac12\big(x - \tfrac\pi2\big)Factor out B=12B = \tfrac12: phase shift π2\tfrac\pi2.
  2. Period 2π/12=4π2\pi/\tfrac12 = 4\pi, so the key points are π\pi apartFive points split one period into four equal quarters.
  3. x=π2,3π2,5π2,7π2,9π2x = \tfrac\pi2, \tfrac{3\pi}2, \tfrac{5\pi}2, \tfrac{7\pi}2, \tfrac{9\pi}2Start at the phase shift and add a quarter period each time.
  4. y=2,5,2,−1,2y = 2, 5, 2, -1, 2Midline 22, then 2+32 + 3, midline, 2−32 - 3, midline: the pattern of sin⁡\sin.
  5. (π2,2)(\tfrac\pi2, 2), (3π2,5)(\tfrac{3\pi}2, 5), (5π2,2)(\tfrac{5\pi}2, 2), (7π2,−1)(\tfrac{7\pi}2, -1), (9π2,2)(\tfrac{9\pi}2, 2)At x=π2x = \tfrac\pi2 the argument is 00, the start of a sine cycle, so the graph crosses the midline going up. Join the points with the smooth sine shape and repeat every 4π4\pi.

Problem 4

Show that cos⁡x=sin⁡(x+π2)\cos x = \sin\big(x + \tfrac\pi2\big). Then write y=5cos⁡(3x)y = 5\cos(3x) in the form Asin⁡(B(x−C))A\sin(B(x - C)) with A>0A > 0, and write y=−2sin⁡xy = -2\sin x as a cosine with a positive amplitude.

  1. sin⁡(x+π2)=sin⁡xcos⁡π2+cos⁡xsin⁡π2=cos⁡x\sin\big(x + \tfrac\pi2\big) = \sin x\cos\tfrac\pi2 + \cos x\sin\tfrac\pi2 = \cos xThe sum formula, with cos⁡π2=0\cos\tfrac\pi2 = 0 and sin⁡π2=1\sin\tfrac\pi2 = 1.
  2. 5cos⁡(3x)=5sin⁡(3x+π2)5\cos(3x) = 5\sin\big(3x + \tfrac\pi2\big)Step 1 with 3x3x in place of xx.
  3. 3x+π2=3(x+π6)3x + \tfrac\pi2 = 3\big(x + \tfrac\pi6\big)Factor out B=3B = 3: C=−π6C = -\tfrac\pi6.
  4. cos⁡(x+π2)=cos⁡xcos⁡π2−sin⁡xsin⁡π2=−sin⁡x\cos\big(x + \tfrac\pi2\big) = \cos x\cos\tfrac\pi2 - \sin x\sin\tfrac\pi2 = -\sin xThe cosine sum formula.
  5. 5cos⁡(3x)=5sin⁡(3(x+π6))5\cos(3x) = 5\sin\big(3(x + \tfrac\pi6)\big), phase shift −π6-\tfrac\pi6; −2sin⁡x=2cos⁡(x+π2)-2\sin x = 2\cos\big(x + \tfrac\pi2\big)A cosine is a sine a quarter period earlier: here the period is 2π3\tfrac{2\pi}3, and a quarter of it is π6\tfrac\pi6. Any sinusoid can be written with either function; only CC changes. Combining a sine and a cosine of the same BB into one wave is the asin⁡x+bcos⁡xa\sin x + b\cos x identity of the trig identities page.

Problem 5

A sinusoid has a maximum of 77 at x=1x = 1, and its next minimum is −1-1, at x=4x = 4. Write it as y=Acos⁡(B(x−C))+Dy = A\cos(B(x - C)) + D with A,B>0A, B > 0, and then as a sine.

  1. A=7−(−1)2=4A = \tfrac{7 - (-1)}2 = 4, D=7+(−1)2=3D = \tfrac{7 + (-1)}2 = 3Half the distance from minimum to maximum, and the level halfway between them.
  2. A maximum to the next minimum is half a period: 4−1=34 - 1 = 3, so the period is 66A cycle goes maximum, minimum, maximum.
  3. B=2π/6=π3B = 2\pi/6 = \tfrac\pi3Period =2π/B= 2\pi/B.
  4. C=1C = 1cos⁡\cos peaks where its argument is 00, so put that peak at x=1x = 1.
  5. As a sine, the peak sits a quarter period, 64=1.5\tfrac64 = 1.5, after the start of the cycle: C=1−1.5=−12C = 1 - 1.5 = -\tfrac12sin⁡\sin peaks a quarter period after its midline crossing.
  6. y=4cos⁡(π3(x−1))+3=4sin⁡(π3(x+12))+3y = 4\cos\big(\tfrac\pi3(x - 1)\big) + 3 = 4\sin\big(\tfrac\pi3(x + \tfrac12)\big) + 3Check: at x=1x = 1 the cosine is cos⁡0=1\cos 0 = 1, so y=7y = 7; at x=4x = 4 it is cos⁡π=−1\cos\pi = -1, so y=−1y = -1. In the sine form the arguments are π2\tfrac\pi2 and 3π2\tfrac{3\pi}2, with the same values.

Problem 6

A model of the hours of daylight on day tt of the year at a northern latitude is

H(t)=12+3sin⁡ ⁣(2π365(t−80)).H(t) = 12 + 3\sin\!\Big(\frac{2\pi}{365}(t - 80)\Big).

Give its period, midline and amplitude, and the daylight on day 172172. On which days of the year does it give more than 1414 hours?

  1. Period 2π/2π365=3652\pi\big/\tfrac{2\pi}{365} = 365 days, midline 1212 hours, amplitude 33 hoursThe model repeats every year, between 99 and 1515 hours.
  2. At t=172t = 172: the argument is 2π365⋅92≈1.5837\tfrac{2\pi}{365} \cdot 92 \approx 1.5837Close to π2≈1.5708\tfrac\pi2 \approx 1.5708.
  3. H(172)≈12+3(0.99992)≈15.00H(172) \approx 12 + 3(0.99992) \approx 15.00Day 172172 is about June 21, the longest day: the peak is at t=80+3654=171.25t = 80 + \tfrac{365}4 = 171.25.
  4. H(t)>14H(t) > 14 when sin⁡θ>23\sin\theta > \tfrac23, with θ=2π365(t−80)\theta = \tfrac{2\pi}{365}(t - 80)Subtract 1212, divide by 33.
  5. arcsin⁡23≈0.7297<θ<π−0.7297≈2.4119\arcsin\tfrac23 \approx 0.7297 < \theta < \pi - 0.7297 \approx 2.4119On one cycle the sine is above 23\tfrac23 between the two angles where it equals 23\tfrac23.
  6. t−80=3652πθt - 80 = \tfrac{365}{2\pi}\theta, so 122.39<t<220.11122.39 < t < 220.11Undo the scaling and the shift.
  7. Period 365365 days, midline 1212 hours, amplitude 33 hours; H(172)≈15.00H(172) \approx 15.00 hours; more than 1414 hours from day 123123 to day 220220That is 9898 whole days, from a stretch of about 97.797.7 days: H(122)≈13.98H(122) \approx 13.98 and H(123)≈14.02H(123) \approx 14.02, H(220)≈14.004H(220) \approx 14.004 and H(221)≈13.97H(221) \approx 13.97.

Problem 7

A mains voltage is V(t)=170sin⁡(120πt)V(t) = 170\sin(120\pi t) volts, with tt in seconds. Find its angular frequency, frequency, period and amplitude, and its root-mean-square value mean of V2\sqrt{\text{mean of } V^2} over one period.

  1. Angular frequency B=120π≈376.99B = 120\pi \approx 376.99 radians per secondThe coefficient of tt.
  2. Frequency B/(2π)=60B/(2\pi) = 60 cycles per second, 6060 HzOne cycle is 2π2\pi radians.
  3. Period 1/60≈0.016671/60 \approx 0.01667 sPeriod =2π/B= 2\pi/B, the reciprocal of the frequency.
  4. Mean of sin⁡2\sin^2 over a period is 12\tfrac12sin⁡2u=12(1−cos⁡2u)\sin^2 u = \tfrac12(1 - \cos 2u), and cos⁡2u\cos 2u averages to 00 over whole cycles.
  5. 120π≈377120\pi \approx 377 rad/s, 6060 Hz, period 160\tfrac1{60} s, amplitude 170170 V, RMS 170/2≈120.2170/\sqrt2 \approx 120.2 VThe "120120 volts" on a North American outlet is this RMS value; the peak is 170170. Hertz count cycles, radians per second count angle, and they differ by 2π2\pi.

Problem 8

Find the period of f(x)=sin⁡(2x)+cos⁡(3x)f(x) = \sin(2x) + \cos(3x). Is g(x)=sin⁡x+sin⁡(2 x)g(x) = \sin x + \sin(\sqrt2\,x) periodic?

  1. sin⁡(2x)\sin(2x) has period π\pi and cos⁡(3x)\cos(3x) has period 2π3\tfrac{2\pi}32π/B2\pi/B for each.
  2. If TT is a period of ff, it is one of f′′=−4sin⁡(2x)−9cos⁡(3x)f'' = -4\sin(2x) - 9\cos(3x) tooDifferentiate f(x+T)=f(x)f(x + T) = f(x) twice.
  3. So TT is a period of 9f+f′′=5sin⁡(2x)9f + f'' = 5\sin(2x) and of 4f+f′′=−5cos⁡(3x)4f + f'' = -5\cos(3x)Each combination cancels one term, so each term repeats on its own.
  4. T=πj=2π3kT = \pi j = \tfrac{2\pi}3 k for positive integers jj, kk, so 3j=2k3j = 2k; the smallest is j=2j = 2, k=3k = 3, T=2πT = 2\piA sinusoid repeats only after whole periods: 2π2\pi is the least common multiple of π\pi and 2π3\tfrac{2\pi}3, and f(x+2π)=f(x)f(x + 2\pi) = f(x).
  5. For gg: a period would need T=2πj=2π2kT = 2\pi j = \tfrac{2\pi}{\sqrt2}k, so 2=k/j\sqrt2 = k/jThe same argument, with g′′=−sin⁡x−2sin⁡(2 x)g'' = -\sin x - 2\sin(\sqrt2\,x), makes TT a period of each term; but 2\sqrt2 is irrational, so no such jj, kk exist.
  6. ff has period 2π2\pi; gg is not periodicA sum of sinusoids is periodic exactly when the ratio of their frequencies is rational, and its period is the least common multiple of theirs. gg comes close to repeating, but never exactly.

Problem 9

Start from y=sin⁡xy = \sin x. (a) Stretch the graph horizontally by a factor of 44, then shift it π\pi to the right. (b) Shift it π\pi to the right, then stretch it horizontally by a factor of 44. Write each equation and give its phase shift.

  1. A horizontal stretch by 44 replaces xx with x4\tfrac x4; a shift right by π\pi replaces xx with x−πx - \piEach moves the point that used to be at xx.
  2. (a) Stretch: sin⁡x4\sin\tfrac x4. Then shift: sin⁡x−π4\sin\tfrac{x - \pi}4The shift replaces xx in the current equation.
  3. (b) Shift: sin⁡(x−π)\sin(x - \pi). Then stretch: sin⁡(x4−π)=sin⁡(14(x−4π))\sin\big(\tfrac x4 - \pi\big) = \sin\big(\tfrac14(x - 4\pi)\big)The stretch also stretches the shift that was already applied.
  4. (a) y=sin⁡(14(x−π))y = \sin\big(\tfrac14(x - \pi)\big), phase shift π\pi; (b) y=sin⁡(14(x−4π))y = \sin\big(\tfrac14(x - 4\pi)\big), phase shift 4π4\pi; both have period 8π8\piThe order matters for the shift but not the period. In Asin⁡(B(x−C))+DA\sin(B(x - C)) + D the CC is the shift applied last, after the stretch, which is why it is read with BB factored out.

Problem 10

A transformer's sinusoidal positional encoding gives position pp the features

PE(p,2i)=sin⁡(ωip),PE(p,2i+1)=cos⁡(ωip),\begin{aligned} \mathrm{PE}(p, 2i) &= \sin(\omega_i p),\\ \mathrm{PE}(p, 2i+1) &= \cos(\omega_i p), \end{aligned}

with ωi=10000−2i/d\omega_i = 10000^{-2i/d}, for i=0,…,d/2−1i = 0, \ldots, d/2 - 1. With d=512d = 512, find the period in positions of pair i=0i = 0, i=128i = 128 and i=255i = 255. Then show that for each pair there is a 2×22 \times 2 matrix RkR_k, depending on kk but not on pp, that sends the pair at position pp to the pair at position p+kp + k.

  1. Pair ii has period 2π/ωi=2π⋅100002i/d2\pi/\omega_i = 2\pi \cdot 10000^{2i/d}Period =2π/B= 2\pi/B with B=ωiB = \omega_i.
  2. i=0i = 0: 2π≈6.282\pi \approx 6.28; i=128i = 128: 2π⋅100001/2=200π≈628.32\pi \cdot 10000^{1/2} = 200\pi \approx 628.32i/d=02i/d = 0 and 256/512=12256/512 = \tfrac12.
  3. i=255i = 255: 2π⋅10000510/512≈2π⋅9646.6≈606112\pi \cdot 10000^{510/512} \approx 2\pi \cdot 9646.6 \approx 60611The periods grow geometrically from 2π2\pi to almost 20000π20000\pi.
  4. With a=ωipa = \omega_i p and b=ωikb = \omega_i k: sin⁡(a+b)=cos⁡b sin⁡a+sin⁡b cos⁡a\sin(a + b) = \cos b\,\sin a + \sin b\,\cos aThe sine sum formula.
  5. cos⁡(a+b)=−sin⁡b sin⁡a+cos⁡b cos⁡a\cos(a + b) = -\sin b\,\sin a + \cos b\,\cos aThe cosine sum formula.
  6. Periods 2π≈6.282\pi \approx 6.28, 200π≈628.3200\pi \approx 628.3 and about 6061160611 positions; Rk=[cos⁡ωiksin⁡ωik−sin⁡ωikcos⁡ωik]R_k = \begin{bmatrix}\cos\omega_i k & \sin\omega_i k\\ -\sin\omega_i k & \cos\omega_i k\end{bmatrix} sends (sin⁡ωip,cos⁡ωip)(\sin\omega_i p, \cos\omega_i p) to (sin⁡ωi(p+k),cos⁡ωi(p+k))(\sin\omega_i(p + k), \cos\omega_i(p + k))Steps 4 and 5 are the two rows of RkR_k applied to (sin⁡a,cos⁡a)(\sin a, \cos a), and only b=ωikb = \omega_i k appears in RkR_k. It is a rotation, so an offset of kk positions is the same linear map wherever it happens. Fast pairs separate nearby positions; slow pairs tell far-apart positions apart.

Where this goes wrong

1. Reading the phase shift before factoring out B

The argument 2x−π/32x - \pi/3 shows a π/3\pi/3 in plain sight, and it is tempting to read it as the shift.

  1. y=2sin⁡(2x−π3)+1y = 2\sin(2x - \tfrac\pi3) + 1, amplitude 22, period π\piRight so far: Problem 2.
  2. “sin⁡(x−C)\sin(x - C) is shifted by CC, so this is shifted by π3\tfrac\pi3.”The habit that causes the mistake: the rule holds only when the coefficient of xx is 11.
  3. Phase shift π3\tfrac\pi3, first maximum at π3+π4=7π12\tfrac\pi3 + \tfrac\pi4 = \tfrac{7\pi}{12}At x=7π12x = \tfrac{7\pi}{12} the argument is 7π6−π3=5π6\tfrac{7\pi}6 - \tfrac\pi3 = \tfrac{5\pi}6, so y=2⋅12+1=2y = 2 \cdot \tfrac12 + 1 = 2, not the maximum 33. Factoring gives 2(x−π6)2(x - \tfrac\pi6): the shift is π6\tfrac\pi6 and the peak is at 5π12\tfrac{5\pi}{12}.

2. Taking the period as 2πB

Larger BB means more of something, and the period is the quantity it is easy to attach that to.

  1. y=3sin⁡(4x)−1y = 3\sin(4x) - 1, B=4B = 4Right so far: Problem 1.
  2. “The period of sin⁡x\sin x is 2π2\pi, and BB scales it.”The slip: BB scales the speed of the cycle, so it divides the period.
  3. Period 2π⋅4=8π2\pi \cdot 4 = 8\piThe graph completes a cycle when 4x4x grows by 2π2\pi, that is when xx grows by π2\tfrac\pi2. The wrong period is 1616 times too long, and a sketch with it shows one bump where there should be sixteen.

3. Taking the maximum as the amplitude

The amplitude is the "height" of a wave, and the maximum is the height that shows on a graph.

  1. Maximum 77 at x=1x = 1, next minimum −1-1 at x=4x = 4Right so far: Problem 5.
  2. “The amplitude is how high the wave goes: 77.”The habit that causes the mistake: the amplitude is measured from the midline, not from y=0y = 0.
  3. A=7A = 7, D=3D = 3This curve reaches 3+7=103 + 7 = 10 and 3−7=−43 - 7 = -4, neither of which the data shows. The amplitude is 7−(−1)2=4\tfrac{7 - (-1)}2 = 4. Taking the maximum works only when the midline is y=0y = 0.

4. Dropping the midline's sign

The vertical shift is written last, and its sign is read the way the phase shift's is.

  1. y=3sin⁡(4x)−1y = 3\sin(4x) - 1, amplitude 33Right so far: Problem 1.
  2. “A vertical shift written −1-1 moves the graph by 11, the same way x−Cx - C moves it by CC.”The analogy that causes the mistake: inside the argument a minus sign means a move in the positive direction, but outside it means what it says.
  3. Midline y=1y = 1, range [−2,4][-2, 4]At x=π8x = \tfrac\pi8, where sin⁡(4x)=1\sin(4x) = 1, the function is 3−1=23 - 1 = 2, not 44. The midline is y=−1y = -1 and the range [−4,2][-4, 2].

5. Evaluating in degrees

Calculators keep the last mode they were in, and a daylight model is a natural place to think in degrees.

  1. H(172)=12+3sin⁡(1.5837)H(172) = 12 + 3\sin(1.5837)Right so far: Problem 6, step 2. The 2π2\pi in the formula means the argument is in radians.
  2. “Type sin⁡(1.5837)\sin(1.5837) into the calculator.”The slip: the calculator is in degree mode.
  3. H(172)≈12+3(0.0276)≈12.08H(172) \approx 12 + 3(0.0276) \approx 12.08 hoursThat is 1.58371.5837 degrees, not radians. In radians sin⁡(1.5837)≈0.99992\sin(1.5837) \approx 0.99992 and H(172)≈15.00H(172) \approx 15.00. A result near the midline on the longest day of the year is the warning sign.

Print this set: graphs-of-sine-and-cosine.pdf (problems, answers, and worked solutions on separate pages).