Quarry School

Sinusoidal functions: crash course

about 12 min to listen9 lessons13 questions to tryUnit 6 of 11

Short view. Each lesson's rule, its steps and its trap. Switch to Full for a worked example and a question to try in every lesson.Full view. Each lesson's rule, its steps, one worked example with Watch it solved, the trap, and one question to try.

Starts here no skill from another unit needed first

1 A sinusoidal function is a repeating wave

Open the full lessonOnly this lesson

The rule

a sine wave is written y=Asin(ωx−φ)+B, and a cosine wave is written y=Acos(ωx−φ)+B.

For a nonconstant wave, A≠0; use ω>0 after rewriting signs. The inside input is in radians. Read ω as omega and φ as phi. A coefficient is a multiplier; ω is the coefficient of x. A parameter is a fixed setting such as A, ω,φ or B. T labels the period and h labels the signed horizontal shift. The subscript max means highest output and min means lowest output.

How

  1. Name the wave as sine or cosine.
  2. Read the number multiplying the whole wave, A.
  3. Read the coefficient of x inside, ω, and match the inside to ωx − φ.
  4. Read the number added after the wave, B.
  5. Use the next lessons to translate these parameters into distances.

Worked example

Worked example

Follow one unshifted sine cycle

The input is an angle in radians. Find the five turning and crossing heights of y = sin x in one full cycle, then see where they repeat.

Show the steps and the answer
π/23π/2−2−112
The same picture, shown 4 times now: y = sin x, for x from −1 to 7.2832.
input xoutput sin x00π/21π03π/2−12π0↓ evaluate: input given, read the output below it
The same picture again: x: 0, π2, π, 3π2, 2π; sin x: 0, 1, 0, −1, 0.
  1. Read the sine table at x=0: sin0=0.Sine is the vertical coordinate on the unit circle, whose starting point has height 0.
  2. At x=π2,sinx=1; at x=π,sinx=0.A quarter turn reaches the top of the circle, and a half turn returns to height 0.
  3. At x=3π2,sinx=−1; at x=2π,sinx=0.Three quarters of a turn reaches the bottom, and a full turn reaches the start.
  4. At x=2π+π2=5π2, the output is 1 again.The extra 2π is one full turn, which returns to the same circle point before the quarter turn.
Answer
  • One cycle runs from x = 0 to x = 2π.
  • The heights at the five key points are shown in the table.
  • The pattern then repeats.
Double-check The start and end both have height 0 and are followed by increasing heights. You have returned to the same stage of the motion.

The trap

Do not call every periodic function sinusoidal. Repeating stair steps repeat too, but they are not sine or cosine waves.

2 Amplitude measures height, not direction

Open the full lessonOnly this lesson

The rule

amplitude =|A|=ymax−ymin2.

It is the distance from the midline to an extreme, not the full height. Negative A reflects the wave vertically.

How

  1. Read A, the entire outside multiplier, including its sign.
  2. Use |A| for the amplitude.
  3. If heights are given instead, subtract minimum from maximum and divide by 2.
  4. Keep A's sign when drawing which part of the cycle rises or falls.

Worked example

Worked example

Amplitude when the outside multiplier is negative

Find A and the amplitude of y = −9 sin(π2x) + 2. The midline is y = 2, and one cycle runs from x = 0 to x = 4, with lowest point (1, −7) and highest point (3, 11). Confirm the amplitude from those two heights, then say whether the graph falls or rises first as it leaves (0, 2). The figure shows the midline with the five key points (0, 2), (1, −7), (2, 2), (3, 11) and (4, 2).

(0, 2)(1, −7)(2, 2)(3, 11)(4, 2)−2246−8−44812
The horizontal line is the midline y = 2.
Show the steps and the answer
  1. Read the outside multiplier of y=−9sin(π2x)+2: A=−9.A is the entire number multiplying the sine, sign included. The π2 inside the sine and the + 2 added at the end are not part of it.
  2. Take the absolute value: amplitude =|A|=|−9|=9.Amplitude is a distance from the midline to an extreme, and a distance cannot be negative, so the sign is dropped when measuring the size of the wave.
  3. Confirm with the heights. The highest point (3, 11) gives ymax=11 and the lowest point (1,−7) gives ymin=−7, so amplitude =ymax−ymin2=11−(−7)2=182=9.Subtracting the minimum from the maximum gives the full height, 18, which is two amplitudes: one below the midline and one above. Dividing by 2 leaves one amplitude, and it matches |A|.
  4. Measure from the midline y=2: up to the top is 11−2=9, and down to the bottom is 2−(−7)=9.The amplitude runs from the midline to an extreme, not from bottom to top, so each of these distances must be 9. The full height 18 is not the amplitude.
  5. Bring the sign back for the shape. At x=1,y=−9sin(π2)+2=−9×1+2=−7, so the graph leaves (0, 2) going down to (1,−7), comes back to (2, 2), climbs to (3, 11) and returns to (4, 2).With A = 9 the graph would rise first, to (1, 11). The negative A reflects the wave vertically across the midline, so the fall comes first and the rise second. Only the direction changes; the size stays 9.
Answer
A = −9, and the amplitude is |−9| = 9 (not −9, and not 18). The heights agree: 11−(−7)2 = 182 = 9, so the full height 18 is twice the amplitude. Because A is negative, the graph falls first, from (0, 2) to its lowest point (1, −7), and rises to its highest point (3, 11) afterwards.
Double-check Since sin(π2x) stays between −1 and 1, −9 sin(π2x) stays between −9 and 9, so y stays between 2 − 9 = −7 and 2 + 9 = 11. Substituting confirms both ends are reached: at x = 1, sin(π2) = 1 gives y = −9 × 1 + 2 = −7, and at x = 3, sin(3π2) = −1 gives y = −9 × (−1) + 2 = 11. The formula gives the same lowest and highest heights as the problem, and 11 − (−7) = 18 = 2 × 9, so the amplitude is 9.

Work to write

  1. A=−9
  2. amplitude = |A| = |−9| = 9
  3. ymax−ymin2 = 11−(−7)2 = 182 = 9
  4. 11 − 2 = 9 and 2 − (−7) = 9
  5. A is negative, so the graph falls first from (0, 2) to (1, −7), then rises to (3, 11)

The trap

Do not report maximum-minus-minimum as the amplitude. It contains two amplitude distances.

3 Period measures the width of a repeat

about 1 minOpen the full lessonOnly this lesson

The rule

for ω>0,T=2πω and ω=2πT.

Use adjacent matching stages of the wave to read T from a graph. T is a positive repeat distance, and h will name a signed horizontal shift.

How

  1. Read ω, the coefficient of x inside.
  2. Divide 2π by that positive coefficient.
  3. If T is given instead, divide 2π by T to find ω.
  4. Plug back into ωT = 2π.

Worked example

Worked example

Four times the input runs four times as fast

Find the period of y = sin(4x). This asks how far x moves before the entire shape repeats.

Show the steps and the answer
one periodπ/2π−2−112
The same picture, shown 6 times now: y = sin 4x.
  1. The inside input needs to advance by 2π for one full sine cycle.That is one full turn.
  2. Set 4T=2π to find the horizontal distance that produces this inside change.Changing x by T changes 4x by 4T.
  3. Divide by 4: T=2π4=π2.Division undoes multiplication and finds the needed distance.
  4. Plug back: 4×π2=2π.The distance really does send the inside through exactly one turn.
Answer
Period T = π2
Double-check At x + π2, the inside becomes 4x + 2π; sine then gives the same output as at x.

The trap

ω is not the period. It is the multiplier that determines the period.

4 Phase shift: why minus inside moves right

about 1 minOpen the full lessonOnly this lesson

The rule

h=φω, with ω>0.

Factor ωx−φ=ω(x−h). h > 0 moves right; h < 0 moves left; h=0 gives no horizontal shift. We name the signed horizontal slide h.

How

  1. Match the entire inside input to ωx − φ, including the sign of φ.
  2. Set the inside input equal to 0 to locate the chosen cycle start.
  3. Undo the subtraction, then divide by the positive coefficient of x.
  4. Plug the answer back into the inside and confirm 0.
  5. State the distance and direction separately.

Worked example

Worked example

Subtract 1 inside

Compare sin(x − 1) with sin x. Find where the original inside input 0 now happens. This asks where the original starting point moves.

Show the steps and the answer
cycle startsπ/23π/25π/2−2−112
The same picture, shown 7 times now: y = sin(x − 1), solid, beside y = sin x, dashed.
  1. The basic sine has inside input 0 at x=0.Its starting height is sin 0 = 0.
  2. Set x−1=0 to find where the shifted formula receives that same inside input.Matching the inside input matches the stage of the sine motion.
  3. Add 1 to both sides: x=1.Adding undoes subtraction and locates the shifted starting point.
  4. Plug back: 1−1=0.The new input 1 does feed the original sine input 0.
  5. For any old input u, choose x=u+1; then x−1=u.This shows every point moves right 1, not only the starting point.
Answer
Phase shift = 1 unit right
Double-check The old peak at x = π2 now occurs at x = 1 + π2, because (1 + π2) − 1 = π2.

The trap

Do not read the phase shift as φ alone. First translate from inside units to x-units by dividing by ω.

Quick check

Try it before you open its steps. It is question 3 of 5 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 5

Divide the inside subtraction by its speed

Find the phase shift of sin(2x − π). This asks how much the graph slides relative to sin(2x).

cycle startsπ/23π/2−2−112
y=sin(2x−π).
Show the steps and the answer
  1. Match 2x−π to ωx−φ: ω=2 and φ=π.The subtracted number is not yet the x-distance.
  2. Set 2x−π=0 to locate the selected cycle start.The sine receives inside input 0 at that horizontal position.
  3. Add π: 2x=π. Divide by 2: x=π2.You undo the subtraction and then the input multiplier.
  4. Plug back: 2×π2−π=0.The proposed x gives the intended inside input.
  5. Factor: 2x−π=2(x−π2).The form x − h displays the horizontal distance h.
Answer
Phase shift = π2 right
Double-check The unshifted peak needs inside input π2. Solve 2x = π2 to find its horizontal position: x = π4. Plug back: 2 × π4 = π2. Moving it right by h = π2 gives π4 + 2π4 = 3π4. Plug into the shifted inside: 2 × 3π4 − π = 3π2 − π = π2, so sine is 1 at the shifted peak.

5 One cycle: solve the inside-input inequality

about 1 minOpen the full lessonOnly this lesson

The rule

0≤ωx−φ≤2π gives h≤x≤h+T, where h=φω and T=2πω, provided ω>0.

How

  1. Write 0 ≤ the entire inside input ≤ 2π.
  2. Undo addition or subtraction in all three parts.
  3. Undo multiplication by dividing all three parts by positive ω.
  4. Plug both endpoints back into the inside; get 0 and 2π.
  5. Subtract start from end to get the period.

Worked example

Worked example

The basic cycle

Find one cycle interval of y = sin x using the inside input from 0 to 2π. This asks for the horizontal beginning and end.

Show the steps and the answer
π/23π/2−2−112
y = sin x.
  1. The inside is x, so 0≤x≤2π.The base sine completes one turn as its inside moves through that interval.
  2. The selected start is x=0 and end is x=2π.These inputs send the inside to its required endpoints.
  3. Plug back: at x=0 the inside is 0; at x=2π the inside is 2π.Both endpoints match the desired stages.
  4. Length =2π−0=2π.A horizontal distance is right endpoint minus left endpoint.
Answer
  • One cycle: [0, 2π]
  • Phase shift = 0
  • Period = 2π
Double-check The graph begins at height 0 going up and returns to that same stage at 2π.

The trap

Matching endpoint heights alone does not prove a full cycle. A sine wave also has equal heights half a cycle apart, but it then moves in the opposite direction.

Quick check

Try it before you open its steps. It is question 2 of 4 in the full lesson, where they run from easy to exam-hard.

Try it · level 2 of 4

Speed up the inside

Find one cycle interval of sin(2x). Find the two x-values that make the inside run from 0 to 2π.

Show the steps and the answer
one periodπ/2π3π/22π−2−112
y = sin 2x.
  1. Write 0≤2x≤2π.This restricts the inside input to one full turn.
  2. Divide all three parts by positive 2: 0≤x≤π.Positive division preserves their order.
  3. Plug back: 2×0=0 and 2×π=2π.The endpoints produce a full inside cycle.
  4. Length =π−0=π.Subtracting endpoints measures the width.
Answer
  • One cycle: [0, π]
  • Period = π
Double-check T = 2π2 = π independently.

6 Midline, maximum, minimum and range

about 1 minOpen the full lessonOnly this lesson

The rule

midline y=B, with B=ymax+ymin2.

Minimum =B−|A|; maximum =B+|A|. Range: [B−|A|,B+|A|].

How

  1. Find the center B from the outside addition or the average of the extremes.
  2. Find the positive amplitude |A|.
  3. Subtract the amplitude from B for the minimum.
  4. Add the amplitude to B for the maximum.
  5. Write the midline as an equation and the range as an included interval.

Worked example

Worked example

A reflected wave above a new center

Find the midline and range of y = −3 sin x + 1. This asks for the center line and every possible output height.

Show the steps and the answer
amplitude 3rangeπ/23π/2−224
The same picture, shown 4 times now: y = −3 sin x + 1, with its midline, range and amplitude marked.
  1. B=1, so the midline is y=1.The outside addition raises every height by 1.
  2. |A|=|−3|=3.The negative multiplier reflects the wave, but the distance is positive.
  3. Minimum =B−|A|=1−3=−2.Move 3 below the center.
  4. Maximum =B+|A|=1+3=4.Move 3 above the center.
  5. The range is [−2,4], including both endpoints.The sine wave passes continuously through every height between its attained extremes.
Answer
  • Midline: y = 1
  • Range: [−2, 4]
Double-check At x = π2, y = −3(1) + 1 = −2. At x = 3π2, y = −3(−1) + 1 = 4, so both claimed endpoints really occur.

The trap

The Domain is the input set; the Range is the output set. A transformed sine or cosine still accepts every real x, while its output heights are bounded.

7 Read all four features, including unusual signs

about 6 minOpen the full lessonOnly this lesson

The rule

rewrite negative inside speed first: cos(−u)=cosu; sin(−u)=−sinu.

Then amplitude |A|, period 2πω, phase shift φω, and midline y=B.

How

  1. If the x-coefficient inside is negative, factor out −1 from the whole inside.
  2. Use the cosine even rule or sine odd rule.
  3. Match A, ω, φ and B, keeping signed quantities.
  4. Compute each feature on its own line.
  5. Plug the shift into the original and rewritten inside and check the range.

Worked example

Worked example

Two minus signs that cancel: y = −10 sin(−π9x + π3) − 5

Find the amplitude, period, phase shift and midline of y = −10 sin(−π9x + π3) − 5. Say which way the graph is shifted and whether it is reflected. Then check the shift in both the original and the rewritten inside, and check the range. The figure shows the midline y = −5 of the finished graph with the five key points of one cycle: (3, −5), (7.5, 5), (12, −5), (16.5, −15) and (21, −5). Your answers should agree with it.

(3, −5)(7.5, 5)(12, −5)(16.5, −15)(21, −5)391521−18−12−66
The midline y = −5 of the finished graph y = 10 sin(π9x − π3) − 5, with the five key points of one cycle.
Show the steps and the answer
  1. Look inside the sine. The x-coefficient is −π9, which is negative. Factor −1 out of the whole inside: −π9x+π3=−(π9x−π3).The rule removes a negative speed before any feature is read. The −1 must come out of both terms, so +π3 becomes −π3 inside the brackets. Multiplying back out gives −π9x + π3 again, so only the form has changed. Writing −(π9x + π3) instead would wrongly send the shift to the left.
  2. Let u=π9x−π3, so y=−10sin(−u)−5. Sine is odd, so sin(−u)=−sinu and −10sin(−u)=−10(−sinu)=10sinu. The rewritten function is y=10sin(π9x−π3)−5.The odd rule moves the inner minus sign to the front, where it multiplies the −10. Two negatives make a positive, so the coefficient in front becomes +10. The − 5 outside the sine is not affected.
  3. Match y=10sin(π9x−π3)−5 with y=Asin(ωx−φ)+B. This gives A=10,ω=π9,φ=π3 and B=−5.All four features are read from the rewritten form, where the speed is positive. φ is the amount subtracted from ωx, so φ = +π3. The constant outside the sine is − 5, so B = −5 with its sign kept.
  4. Amplitude =|A|=|10|=10. Because A=10 is positive, the graph is not reflected.Amplitude is the height from the midline to a peak, so it is the absolute value of A. The −10 in the original only looked like a reflection, because the minus sign from sin(−u) cancelled it.
  5. Period =2πω=2π÷π9=2π·9π=18.One sine cycle is complete when the inside has grown by 2π. The inside grows by π9 for each unit of x, so a cycle takes 18 units of x.
  6. Phase shift =φω=π3÷π9=π3·9π=3. The shift is positive, so the graph is shifted 3 units to the right.π9x − π3 = π9(x − 3), so the cycle that normally starts at x = 0 now starts at x = 3. A positive phase shift means right and a negative one means left.
  7. Midline: y=B=−5.B lowers the whole graph by 5, so the curve rises and falls by equal amounts about the horizontal line y = −5.
  8. Put x=3 into both insides. Original: −π9(3)+π3=−π3+π3=0. Rewritten: π9(3)−π3=π3−π3=0. Then y=−10sin0−5=−5.The phase shift is where a cycle starts, so the inside must equal 0 there. Getting 0 in the original form as well as the rewritten one confirms both the factoring and the direction of the shift. y = −5 shows that the start point lies on the midline.
  9. Range: B−|A|≤y≤B+|A|, so −5−10≤y≤−5+10, which gives −15≤y≤5. In the original, x=7.5 gives the inside −π9(7.5)+π3=−5π6+2π6=−π2, so y=−10(−1)−5=5. Also x=16.5 gives the inside −11π6+2π6=−3π2, so y=−10(1)−5=−15.The value of sin stays between −1 and 1, so y stays within |A| = 10 of the midline. The maximum 5 comes a quarter period after the start (3 + 4.5 = 7.5), and the minimum −15 comes three quarters of the way through (3 + 13.5 = 16.5). The graph rises first, as an unreflected sine should.
Answer
  • Rewritten, the function is y = 10 sin(π9x − π3) − 5. Amplitude 10
  • period 18
  • phase shift 3, so the graph is shifted 3 units to the right
  • midline y = −5. The graph is not reflected, because the minus in −10 cancels the minus from sin(−u) = −sin u. Its range is −15 ≤ y ≤ 5.
Double-check At the shift x = 3, the original inside −π9(3) + π3 and the rewritten inside π9(3) − π3 are both 0, so y = −5 lies on the midline. At x = 7.5 the original gives y = −10 sin(−π2) − 5 = 5 = B + |A|. At x = 16.5 it gives y = −10 sin(−3π2) − 5 = −15 = B − |A|. So the range is −15 ≤ y ≤ 5. At x = 12 the inside is −12π9 + 3π9 = −π, and at x = 21 it is −21π9 + 3π9 = −2π, so y = −5 at both. The cycle from 3 to 21 therefore has length 18, which matches the period. All five key points agree with the figure.

Work to write

  1. −π9x+π3=−(π9x−π3)
  2. sin(−u) = −sin u, so −10 sin(−u) = 10 sin u
  3. y=10sin(π9x−π3)−5
  4. A=10,ω=π9,φ=π3,B=−5
  5. Amplitude = |10| = 10; not reflected
  6. Period = 2π ÷ π9 = 18
  7. Phase shift = π3 ÷ π9 = 3, so 3 units to the right
  8. Midline: y = −5
  9. x = 3: −π3 + π3 = 0 and π3 − π3 = 0
  10. Range: −15 ≤ y ≤ 5

The trap

The chosen cycle start is an upward crossing for positive-A sine and a peak for positive-A cosine. Negative A reverses those starting features.

Quick check

Try it before you open its steps. It is question 3 of 5 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 5

Cosine with a negative fractional speed: fractions in both inside positions

Find the amplitude, period, phase shift and midline of y = 5 cos(−π8x + 3π4) + 2. Say which way the graph is shifted. Then check the shift in both the original and the rewritten inside, and check the range. The figure is drawn from the answer and shows the midline and the five key points of one cycle.

(6, 7)(10, 2)(14, −3)(18, 2)(22, 7)391521−448
For y = 5 cos(−π8x + 3π4) + 2, the horizontal line is the midline y = 2.
Show the steps and the answer
  1. The x-coefficient −π8 is negative, so factor −1 out of the whole inside: −π8x+3π4=−(π8x−3π4).The period and shift formulas need a positive speed ω. The −1 comes out of both terms, so the constant changes sign too: +3π4 becomes −3π4 inside the bracket. Expanding −(π8x − 3π4) gives back −π8x + 3π4, so the function has not changed.
  2. Use the cosine even rule cos(−u)=cosu with u=π8x−3π4: y=5cos(π8x−3π4)+2.Cosine is even. On the unit circle the angles u and −u are mirror images across the x-axis, so they share the same x-coordinate, and that x-coordinate is the cosine. The minus in front of the bracket drops and the 5 stays 5. Only a sine would change A, because sin(−u) = −sin u.
  3. Match y=5cos(π8x−3π4)+2 with y=Acos(ωx−φ)+B: A=5,ω=π8,φ=3π4,B=2.The pattern has a minus in front of φ, so the −3π4 in the bracket means φ = +3π4. Keeping that sign decides the direction of the shift.
  4. Amplitude: |A|=|5|=5.The amplitude is the vertical distance from the midline to a maximum, and a distance is never negative.
  5. Period: 2πω=2π÷π8=2π×8π=16.Dividing by the fraction π8 means multiplying by its reciprocal 8π. The π cancels, leaving 2 × 8 = 16. One full cycle covers 16 units of x.
  6. Phase shift: φω=3π4÷π8=3π4×8π=244=6. It is positive, so the graph is shifted 6 units to the right.Both positions hold fractions, so again multiply by the reciprocal of ω. The π cancels and 34 × 8 = 6. In y = A cos(ωx − φ) + B a positive φω means a shift to the right. The factored form π8x − 3π4 = π8(x − 6) shows the same thing.
  7. Midline: y=B=2.The + 2 is added outside the cosine, so every point of the graph is lifted by 2 and the graph swings evenly about the line y = 2.
  8. Plug the shift x=6 into both insides. Original: −π8(6)+3π4=−3π4+3π4=0. Rewritten: π8(6)−3π4=3π4−3π4=0. At that point y=5cos0+2=7.A cosine cycle starts where its inside is 0. Both insides are 0 at the same x, which shows the rewrite kept the function the same. The value y = 7 = B + |A| shows the cycle starts at a maximum, as a cosine cycle should.
  9. Check the range: cosine runs from −1 to 1, so y runs from 5(−1)+2=−3 to 5(1)+2=7, giving −3≤y≤7.The graph reaches |A| above and |A| below the midline: 2 + 5 = 7 and 2 − 5 = −3. The top value 7 agrees with the maximum found at x = 6.
Answer
  • Amplitude 5
  • period 16
  • phase shift 6 units to the right
  • midline y = 2. The rewritten form is y = 5 cos(π8x − 3π4) + 2, and the range is −3 ≤ y ≤ 7.
Double-check One period after the start is x = 6 + 16 = 22. There the original inside is −π8(22) + 3π4 = −22π8 + 6π8 = −2π, and cos(−2π) = 1, so y = 7 again: this is the next maximum. From the range, the midline is 7+(−3)2 = 2 and the amplitude is 7−(−3)2 = 5, which match B and |A|. The key points of one cycle are a quarter period (4 units) apart: (6, 7), (10, 2), (14, −3), (18, 2) and (22, 7). Sign trap: dropping the minus from the x-term only gives cos(π8x + 3π4), which suggests a shift of 6 to the left. But at x = −6 the original inside is −π8(−6) + 3π4 = 3π2, not 0, so that rewrite fails the check.

Work to write

  1. −π8x+3π4=−(π8x−3π4)
  2. cos(−u) = cos u, so y = 5 cos(π8x − 3π4) + 2
  3. A=5,ω=π8,φ=3π4,B=2
  4. Amplitude = |5| = 5
  5. Period = 2π ÷ π8 = 2π × 8π = 16
  6. Phase shift = 3π4 ÷ π8 = 3π4 × 8π = 6, so 6 units to the right
  7. Midline: y = 2
  8. x = 6: original inside −π8(6) + 3π4 = 0; rewritten inside π8(6) − 3π4 = 0
  9. Range: 5(−1) + 2 = −3 to 5(1) + 2 = 7, so −3 ≤ y ≤ 7

8 Build an equation from a graph

Open the full lessonOnly this lesson

The rule

A=ymax−ymin2>0,B=ymax+ymin2,ω=2πT,φ=ωh.

Choose h at an upward middle crossing for sine or a peak for cosine.

How

  1. Read the maximum and minimum, then find positive A and B.
  2. Read T between adjacent matching stages.
  3. Compute ω = 2π ÷ T.
  4. Choose sine at an upward middle crossing or cosine at a peak; read h.
  5. Compute φ = ωh and substitute h back into the inside.
  6. Check points one quarter period apart.

Worked example

Worked example

A centered cosine graph

A smooth cosine-shaped graph has maximum 1, minimum −1 and adjacent peaks at x = 0 and x = 2π. Write one equation. You are converting the pictured heights and repeat width into a rule.

amplitude 1one periodπ/23π/25π/2−2−112
y = cos x.
Show the steps and the answer
  1. Amplitude =1−(−1)2=1; B=1+(−1)2=0.Half-difference gives size, and average gives center.
  2. T=2π−0=2π, so ω=2π÷2π=1.Adjacent peaks mark one full cycle.
  3. Choose positive cosine with h=0, the first peak.Positive cosine reaches its maximum when its inside is 0.
  4. φ = ωh = 1 × 0 = 0; plug back: 1×0−0=0.The peak's x-coordinate gives the inside start after converting h to φ.
  5. Write y=cosx.All four parameters are now fixed.
Answer
y = cos x
Double-check At x = π, halfway between the peaks, cos π = −1, the pictured minimum.

The trap

A graph alone does not force a unique phase shift. State which sine or cosine start you chose and check that the equation reproduces the pictured stages.

Quick check

Try it before you open its steps. It is question 2 of 4 in the full lesson, where they run from easy to exam-hard.

Try it · level 2 of 4

Raised cosine graph

A graph has maximum 9, minimum 3, and adjacent peaks at x = 0 and x = 8. Write a positive cosine equation. This asks for the wave's size, center and repeat width, with its peak placed at input 0.

amplitude 3one periodπ2π3π4π5π246810
y = 3 cos (π/4)x + 6.
Show the steps and the answer
  1. A=9−32=3 and B=9+32=6.Choose positive A so a peak is the cosine start.
  2. T=8−0=8, so ω=2π8=π4.The two peaks enclose one full inside turn.
  3. h=0, so φ=ωh=0. At x=0, the inside is 0.The first peak is at the standard cosine start.
  4. Write y=3cos(π4x)+6.Combine size, speed, position and center.
Answer
y=3cos(π4x)+6
Double-check At x = 4 the inside is π, giving 3(−1) + 6 = 3. At x = 8 the inside is 2π, giving 9 again.

9 Build and check a daylight model

Open the full lessonOnly this lesson

The rule

for a fitted positive-A sine wave, A=Dmax−Dmin2,B=Dmax+Dmin2,ω=2πT,φ=ωh.

Choose h near a rising middle crossing and compare predictions with observations.

How

  1. Define the time input and the output units.
  2. Draw the table and plot the observed points.
  3. Read the observed maximum, minimum and repeating interval.
  4. Choose a suitable sine crossing or cosine peak.
  5. Assemble the model and check several months.
  6. Repeat the observation pattern by T for the requested longer plot.

Worked example

Worked example

Model rung 1: one exact repeating table

A synthetic repeating table is shown. The first zero crossing is upward, and the next matching crossing is at t = 4. Write a sine model. This asks for a rule that follows the recorded rise and fall.

input toutput recorded output0011203−140
t: 0, 1, 2, 3, 4; recorded output: 0, 1, 0, −1, 0.
Show the steps and the answer
input toutput recorded output0011203−140
The same picture again: t: 0, 1, 2, 3, 4; recorded output: 0, 1, 0, −1, 0.
starthighmiddlelowrepeatone periodπ/23π/25π/2−11
y = sin (π/2)x.
  1. Read the high output 1 and low output −1. A=1−(−1)2=1; B=1+(−1)2=0.Half the span gives height distance; half the sum gives center.
  2. T=4−0=4, so ω=2π4=π2.Adjacent upward crossings give the full repeat width.
  3. Choose positive sine at h = 0. φ = ωh = 0. Plug back: π2×0−0=0.This puts the inside start at the recorded rising center crossing.
  4. Write y=sin(π2t). Read the columns under 1 and 3: the inside angles are π2 and 3π2, giving 1 and −1.The quarter-turn values reproduce the two recorded extremes.
Answer
  • y=sin(π2t)
  • Amplitude = 1
  • Period = 4
  • Midline: y = 0
Double-check The columns under 0 and 4 both give 0, and the rule rises immediately after both. All five listed outputs match the table.

The trap

Do not confuse an observed height with a model prediction. The instructor's formula approximates the table and does not exactly place every observed extreme in its recorded month.

Quick check

Try it before you open its steps. It is question 2 of 3 in the full lesson, where they run from easy to exam-hard.

Try it · level 2 of 3

Model rung 2: a raised repeating height

The synthetic table shows a peak at t = 0, a low at t = 5, and the next peak at t = 10. Write a positive cosine model. This asks for its center, size and repeating timing.

input toutput recorded height0175/2125715/2121017
t: 0, 52, 5, 152, 10; recorded height: 17, 12, 7, 12, 17.
Show the steps and the answer
input toutput recorded height0175/2125715/2121017
The peak columns at 0 and 10 enclose one whole repeat.
amplitude 5one periodπ3π5π681012141618
A center height 12 and amplitude 5 place the extremes at 7 and 17.
  1. A=17−72=102=5; B=17+72=242=12.The largest and smallest outputs in the picture set the amplitude and center.
  2. T=10−0=10; ω=2π10=π5.Peak to next peak measures a complete repeat.
  3. Choose cosine with h=0; φ=ωh=0. At t=0 the inside is 0.Positive cosine starts at the chosen peak.
  4. Write y=5cos(π5t)+12. At t=5, the inside is π, so y=5(−1)+12=7.The independent half-period check reproduces the recorded minimum.
Answer
  • y=5cos(π5t)+12
  • Amplitude = 5
  • Period = 10
  • Midline: y = 12
Double-check At t = 10 the inside is 2π and the output is 17 again. At t = 52 it is π2 and the output is 12, agreeing with the middle-height column.

10 Quick checks for the whole unit

8 questions

Quick check 1 of 8

For y = 2 sin(3x − π) + 5, find amplitude, period, phase shift and midline.

Show the steps and the answer
Answer
  • Amplitude = 2
  • Period = 2π3
  • Phase shift = π3 right
  • Midline: y = 5
  • Reason: use |A|, 2πω, φω and y = B.

Quick check 2 of 8

For y = 6 cos(2x + π2), find the phase shift.

Show the steps and the answer
Answer
  • π4 left.
  • Reason: φ = −π2, so h = φ ÷ 2 = −π4. Substitution gives inside 0.

Quick check 3 of 8

A wave has maximum 10 and minimum 2. Find its amplitude and midline.

Show the steps and the answer
Answer
  • Amplitude = 4
  • Midline: y = 6
  • Reason: half the difference gives distance; half the sum gives center.

Quick check 4 of 8

Find the range of y = −3 sin x + 1.

Show the steps and the answer
Answer
  • [−2,4].
  • Reason: the center is 1 and the positive amplitude is 3, so the endpoints are 1 − 3 and 1 + 3.

Quick check 5 of 8

The period is 8. What is positive ω?

Show the steps and the answer
Answer
  • ω=π4.
  • Reason: ω = 2π ÷ 8, and 8 × π4 = 2π.

Quick check 6 of 8

Why does sin(x − 1) move right 1?

Show the steps and the answer
Answer
At x = 1 the inside 1 − 1 = 0, the original start input. Every old input u now needs x = u + 1, so every point moves right.

Quick check 7 of 8

Rewrite sin(−2x + π) with a positive coefficient of x inside.

Show the steps and the answer
Answer
  • −sin(2x−π).
  • Reason: −2x + π = −(2x − π), and sine reverses sign when its whole input reverses.

Quick check 8 of 8

Does the instructor's daylight model exactly reproduce April's 13.27 hours?

Show the steps and the answer
Answer
No. At t = 4 its inside is 0, so D(4) = 12.3. The difference 0.97 hour shows it is an approximation.