AP Precalculus • Trigonometric and Polar Functions

Sinusoidal Function Transformations

Master amplitude, period, phase shift, and vertical shift to model any periodic phenomenon with sine and cosine.

A function curve with a triangle and circular angle measure.
Inside this lesson 10 sections 5 questions 9 figures

SECTION 1

Historical Context & Motivation

The study of sinusoidal functions is rooted in humanity's oldest scientific pursuit: understanding the heavens. Ancient astronomers in Babylon and Greece recognized that celestial phenomena — the length of daylight across the year, the altitude of the sun at noon, the apparent motion of planets — repeated in predictable cycles. The challenge was never merely identifying periodicity; it was developing a mathematical language flexible enough to describe waves of different heights, speeds, and offsets. The transformation of a basic sine or cosine curve into a function that accurately models a specific real-world oscillation represents one of the most powerful ideas in applied mathematics, and that idea matured over several centuries of mathematical innovation.

~150 CE • Ptolemy's Chord Tables

Claudius Ptolemy compiled extensive tables of chords (precursors to sine values) in the Almagest, enabling astronomers to model circular motion with numerical precision for the first time.

~500 CE • Indian Sine Function (Jyā)

Aryabhata and subsequent Indian mathematicians formalized the half-chord as the sine function, establishing the modern trigonometric ratio and tabulating its values at regular intervals.

1748 • Euler's Analytic Framework

Leonhard Euler introduced the function concept and expressed sine and cosine as functions of a real variable, writing y = A sin(Bx + C) and thus embedding the idea of transformations directly into notation.

1822 • Fourier's Theorem

Joseph Fourier demonstrated that any periodic function can be decomposed into a sum of transformed sinusoids, making mastery of amplitude, frequency, and phase shifts essential to physics and engineering.

The central question these developments address is deceptively simple: given the parent functions y = sin x and y = cos x, how do we systematically stretch, compress, shift, and reflect these curves to match any periodic pattern we observe in nature? The answer lies in understanding four key parameters — amplitude, period, phase shift, and vertical displacement — and how each one maps to a specific algebraic transformation of the parent function.

SECTION 2

Core Principles & Definitions

Every sinusoidal transformation can be understood through the lens of a general model that modifies the parent function y = sin x (or y = cos x). Four independent parameters control the shape and position of the graph, and each corresponds to a distinct geometric operation. Recognizing these parameters in any given equation — and conversely, writing an equation from a graph — constitutes the core skill tested on the AP Precalculus exam.

1

Amplitude (|a|)

The amplitude is the distance from the midline to a maximum or minimum. It is always positive and equals |a| in the general form. A vertical stretch (|a| > 1) or compression (0 < |a| < 1) scales the output range, while a < 0 reflects the curve across the midline.
2

Period (2π / |b|)

The period is the horizontal length of one complete cycle. Increasing |b| compresses the graph horizontally (more cycles in the same interval), while decreasing |b| stretches it. The frequency, f = |b| / (2π), counts cycles per unit.
3

Phase Shift (−c / b)

The phase shift translates the entire curve left or right. It equals −c / b when the argument is written as b(x − h), where h is the phase shift. Positive h shifts right; negative h shifts left.
4

Vertical Shift (d)

The vertical shift (or midline) moves the entire curve up (d > 0) or down (d < 0). The midline equation becomes y = d, and the maximum and minimum values are d + |a| and d − |a|, respectively.
✦

KEY TAKEAWAY

Think of the general sinusoidal equation as a set of four independent "dials" on a sound mixing board. The amplitude dial controls volume (height), the period dial controls pitch (horizontal compression), the phase shift dial slides the wave left or right in time, and the vertical shift dial raises or lowers the baseline. Each dial is independent — turning one does not affect the others — and together they can shape any sinusoidal wave you encounter.

SECTION 3

Visual Explanation

The following diagram compares the parent function y = sin x with a fully transformed sinusoidal function y = 2 sin(2(x − π/4)) + 1. Each transformation — the doubled amplitude, halved period, rightward phase shift, and upward vertical shift — is annotated directly on the graph so that you can visually identify how each parameter reshapes the curve.

02−21−13π/2π3π/22π5π/23πy = 1amp = 2period = ππ/4 →y = sin xy = 2sin(2(x−π/4))+1Parent vs. Transformed Sinusoid
The dashed violet curve is the parent function y = sin x. The solid cyan curve is y = 2 sin(2(x − π/4)) + 1, showing an amplitude of 2, a period of π, a phase shift of π/4 right, and a vertical shift of 1 up (dashed amber midline at y = 1).

Notice how the transformed curve oscillates between y = 3 (the midline plus amplitude, 1 + 2) and y = −1 (the midline minus amplitude, 1 − 2). The horizontal compression by a factor of 2 means the cycle completes in π units instead of 2π, and the rightward phase shift of π/4 is visible in the displaced starting point of the wave. These four parameters work independently: changing the amplitude, for instance, does not alter the period or the location of the midline.

SECTION 4

Mathematical Framework

The general sinusoidal function is expressed in two equivalent standard forms. Understanding both is essential, because AP Precalculus questions may present either form and expect you to extract all four parameters quickly.

GENERAL FORM (FACTORED)

y=a⋅sin(b(x−h))+dy = a · sin(b(x − h)) + d

Where a = vertical stretch/reflection factor (amplitude = |a|); b = horizontal stretch factor; h = phase shift (positive → right); d = vertical shift (midline y = d). Same form applies with cos replacing sin.

GENERAL FORM (EXPANDED)

y=a⋅sin(bx+c)+dy = a · sin(bx + c) + d

Here c = −bh, so the phase shift is h = −c/b. Always factor out b from the argument before identifying the phase shift.

PERIOD FORMULA

Period=2π/∣b∣Period = 2π / |b|

The parent sine and cosine functions have b = 1 and a period of 2π. Multiplying the input by b compresses the period by a factor of |b|. Equivalently, frequency = |b| / (2π) cycles per unit.

RANGE

[d−∣a∣,d+∣a∣][d − |a|, d + |a|]

The minimum value of the function is d − |a| and the maximum is d + |a|. This follows directly from the fact that sin and cos oscillate between −1 and 1, and the output is scaled by a then shifted by d.

💡

AP Exam Tip

When a problem gives the equation in expanded form (e.g., y = 3 sin(2x − π) + 4), always factor b out of the argument first: y = 3 sin(2(x − π/2)) + 4. Only after factoring can you correctly read the phase shift as π/2 to the right. A common error is to report the phase shift as π instead of π/2.

SECTION 5

Parameter-by-Parameter Breakdown

To internalize how each parameter independently modifies the parent sinusoidal curve, consider the following side-by-side comparison. The diagram below isolates each transformation one at a time, starting from the parent function y = sin x, so the effect of each parameter is unambiguous.

Isolating Each TransformationAmplitude: y = a·sin(x)0a=2a=1a=½Period: y = sin(bx)0b=1b=2b=½Phase Shift: y = sin(x − h)0h=0h=π/4π/4 →Vertical Shift: y = sin(x) + d0d=0d=+2midline
Four panels isolating each transformation parameter. In every panel the dashed violet curve is the parent y = sin x. Top-left: varying amplitude (a = ½, 1, 2). Top-right: varying b (period changes). Bottom-left: phase shift h = π/4 to the right. Bottom-right: vertical shift d = 2 with dashed midline.
ParameterEffect on GraphHow to Read from Equation
aVertical stretch/compression; if a < 0, reflection over midlineCoefficient in front of sin/cos; amplitude = |a|
bHorizontal compression (|b| > 1) or stretch (0 < |b| < 1)Coefficient of x inside the argument; period = 2π / |b|
hHorizontal translation: right if h > 0, left if h < 0Factor b out: b(x − h); h = −c/b in expanded form
dVertical translation: up if d > 0, down if d < 0; midline at y = dConstant added/subtracted at the end of the function

Summary of transformation parameters and their graphical effects

SECTION 6

Worked Example

The following example walks through writing a sinusoidal equation from a set of graph characteristics — a common AP Precalculus free-response task.

Writing a Sinusoidal Model from Graph Features

  1. 1

    Step 1 — Identify Given Information

    A sinusoidal function has a maximum value of 7, a minimum value of 1, a period of 4π, and a maximum occurs at x = π. We need to write the function in the form y = a sin(b(x − h)) + d.
  2. 2

    Step 2 — Find the Midline (d) and Amplitude (a)

    The midline is the average of the maximum and minimum: d = (7 + 1) / 2 = 4. The amplitude is half the difference between the maximum and minimum: a = (7 − 1) / 2 = 3.
    d = 4, a = 3
  3. 3

    Step 3 — Determine b from the Period

    Using the period formula: Period = 2π / |b|. We have 4π = 2π / |b|, so |b| = 2π / 4π = 1/2. Therefore b = 1/2.
    b = 1/2
  4. 4

    Step 4 — Find the Phase Shift (h)

    The standard sine function reaches its maximum one-quarter of a period after the starting point. Since we are using sine and the maximum occurs at x = π, we need sin(b(x − h)) = 1 when x = π. The sine function equals 1 when its argument is π/2. So b(π − h) = π/2, which gives (1/2)(π − h) = π/2. Solving: π − h = π, therefore h = 0.
    h = 0
  5. 5

    Step 5 — Assemble the Equation and Verify

    Substituting all parameters: y = 3 sin((1/2)x) + 4. Verification: at x = π, y = 3 sin(π/2) + 4 = 3(1) + 4 = 7 ✓ (maximum). At x = 3π, y = 3 sin(3π/2) + 4 = 3(−1) + 4 = 1 ✓ (minimum). The period is 2π / (1/2) = 4π ✓.
    y = 3 sin(x/2) + 4

SECTION 7

Sine vs. Cosine: Choosing Your Parent Function

Since cos x = sin(x + π/2), any sinusoidal function can be written using either sine or cosine as the parent; the choice affects only the phase shift. In practice, students should select the parent function that makes the phase shift simplest — or zero — based on the graph's starting behavior. The table below compares the two approaches.

CharacteristicUse Sine When…Use Cosine When…
Starting point (x = 0)Graph crosses the midline going up at x = 0Graph starts at a maximum or minimum at x = 0
Phase shift simplicityA midline crossing is easier to identify and creates h = 0An extremum is easier to identify and creates h = 0
Negative aGraph crosses midline going down → use a < 0Graph starts at a minimum → use a < 0 (reflected cosine)
Identity conversionsin x = cos(x − π/2)cos x = sin(x + π/2)

Decision guide for choosing between sine and cosine parent functions

✦

KEY TAKEAWAY

Think of sine and cosine as two cameras filming the same Ferris wheel from different angles — one starts recording as the rider passes through the midpoint, the other starts when the rider is at the top. The footage is identical except for the starting frame. In the same way, choosing sine versus cosine only changes the phase shift; the underlying periodic behavior is the same. On the AP exam, pick whichever parent function yields the cleanest equation.

SECTION 8

Connections to Advanced Topics

Mastering sinusoidal transformations is not an endpoint — it is the foundation for a wide range of advanced mathematical and scientific concepts. In AP Calculus, you will differentiate and integrate these transformed sinusoidal functions, and the chain rule will directly involve the parameters b and h. In physics, the equation y = A sin(ωt + φ) describes simple harmonic motion, where ω (angular frequency) corresponds to b and φ (initial phase) corresponds to c in the expanded form. Understanding Fourier analysis, signal processing, and even quantum mechanics all builds upon the ability to manipulate sinusoidal parameters fluently.

AP Precalculus ConceptAdvanced ExtensionConnection
Amplitude |a|Damped oscillation: a(t) = A₀e−γte^{−γt}Amplitude becomes a decaying function of time in real-world oscillations with friction
Period = 2π / |b|Angular frequency ω = 2πfIn physics, b is rewritten as ω, and frequency f = 1/T connects to wave speed v = fλ
Phase shift hFourier coefficientsDecomposing a complex wave into sinusoidal components requires determining each component's phase
Vertical shift dDC offset in signal processingThe constant term a₀/2 in a Fourier series is precisely the vertical shift (average value) of the signal

How AP Precalculus transformation parameters connect to advanced topics

Looking ahead, the derivative of y = a sin(b(x − h)) + d is y′ = ab cos(b(x − h)), which shows that every transformation parameter reappears in the derivative. The rate of change inherits the same period and phase shift, and its amplitude is scaled by b. This underscores why building strong fluency with sinusoidal transformations now pays dividends throughout subsequent coursework.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

The function g(x) = −3 cos(2x) + 5 is a transformation of the parent function f(x) = cos x. Which of the following correctly describes all of the transformations applied to f to obtain g?
  • A. Vertical stretch by a factor of 3, horizontal compression by a factor of 1/2, reflection over the x-axis, and a vertical shift up 5 units
  • B. Vertical stretch by a factor of 3, horizontal compression by a factor of 1/2, reflection over the midline y = 5, and a vertical shift up 5 units
  • C. Vertical stretch by a factor of 3, horizontal stretch by a factor of 2, reflection over the x-axis, and a vertical shift up 5 units
  • D. Amplitude of 3, period of π, phase shift of 5 to the right, and no vertical shift
  • E. Vertical stretch by a factor of 3, horizontal stretch by a factor of 1/2, reflection over the x-axis, and a vertical shift up 5 units
Show answer (A)
Correct answer: A. Starting from f(x) = cos x, we apply transformations in standard order. The coefficient a = −3 produces a vertical stretch by a factor of 3 and a reflection over the x-axis (due to the negative sign). The coefficient b = 2 compresses the graph horizontally by a factor of 1/2, meaning the period becomes 2π/2 = π, which is half the original period. Finally, d = 5 shifts the graph up 5 units, establishing the midline at y = 5. In standard mathematical convention, when b = 2, every x-coordinate is multiplied by 1/|b| = 1/2, so the graph is horizontally compressed by a factor of 1/2. Choice B incorrectly says the reflection is over the midline y = 5; while the visual effect after all transformations is that maxima and minima are swapped about the midline, the standard description of the transformation itself is a reflection over the x-axis. Choice C says horizontal stretch by a factor of 2, but b = 2 compresses the graph horizontally — the period is halved, not doubled. Choice D misidentifies 5 as a phase shift rather than a vertical shift. Choice E says horizontal stretch by a factor of 1/2, but b = 2 produces a horizontal compression, not a stretch.

Question 2: BASIC CALCULATION

What are the amplitude, period, and midline of the function f(x) = 4 sin(πx/3) − 2?
  • A. Amplitude = 4, Period = 6, Midline: y = −2
  • B. Amplitude = 4, Period = 3/π, Midline: y = −2
  • C. Amplitude = 4, Period = 6π, Midline: y = −2
  • D. Amplitude = −4, Period = 6, Midline: y = 2
  • E. Amplitude = 4, Period = 2π/3, Midline: y = −2
Show answer (A)
Correct answer: A. Here a = 4 so amplitude = |4| = 4, b = π/3 so period = 2π / (π/3) = 2π × 3/π = 6, and d = −2 so the midline is y = −2. Choice B computes the period as b/(2π) = (π/3)/(2π) which is the frequency, not the period, and then inverts incorrectly. Choice C multiplies 2π by 3 without canceling the π, yielding 6π. Choice D claims amplitude is negative, but amplitude is always |a| ≥ 0, and misreads the vertical shift sign. Choice E uses 2π/3 as the period, which would be correct only if b = 1 and the original expression were sin(x) with period 2π scaled differently.

Question 3: INTERMEDIATE

The function h(x) = −2 sin(3x − π) + 1 can be rewritten in the form h(x) = a sin(b(x − h₀)) + d. What is the phase shift h₀?
  • A. π to the left
  • B. π to the right
  • C. π/3 to the right
  • D. π/3 to the left
  • E. 3π to the right
Show answer (C)
Correct answer: C. Factor b = 3 out of the argument: 3x − π = 3(x − π/3). So the factored form is h(x) = −2 sin(3(x − π/3)) + 1, giving a phase shift of h₀ = π/3 to the right. Choice A and B incorrectly use c = −π directly without dividing by b. Choice D has the correct magnitude but wrong direction — the subtraction inside the parenthesis (x − π/3) indicates a rightward shift, not leftward. Choice E incorrectly multiplies instead of dividing: 3 × π rather than π/3.

Question 4: APPLIED

4 pts
The depth of water in a tidal harbor varies sinusoidally over time. At low tide (t = 2 hours after midnight), the water depth is 3 meters. At high tide (t = 8 hours after midnight), the water depth is 11 meters. The tidal cycle repeats every 12 hours. (a) Write a sinusoidal function D(t) = a cos(b(t − h)) + d that models the depth D (in meters) as a function of time t (in hours after midnight). (b) Determine the depth of water at t = 5 hours. (c) At what times during the first 12 hours is the water depth exactly 7 meters? Explain your reasoning.
Show answer
Rubric (4 points): Point 1 — Correct parameters (a, b, d): Midline d = (11 + 3)/2 = 7 m. Amplitude |a| = (11 − 3)/2 = 4 m. Period = 12 h, so b = 2π/12 = π/6. Since low tide occurs at t = 2 (a minimum) and we use cosine, we set a = −4 (cosine starts at a max, so negative cosine starts at a min). Point 2 — Correct phase shift and assembled equation: With a = −4, the minimum of −4 cos(b(t − h)) + 7 occurs when cos = 1, i.e., when b(t − h) = 0, i.e., at t = h. Since the minimum is at t = 2, h = 2. So D(t) = −4 cos(π/6 · (t − 2)) + 7. (Equivalent valid forms using sin or positive cosine with adjusted phase shift receive full credit.) Point 3 — Depth at t = 5: D(5) = −4 cos(π/6 · 3) + 7 = −4 cos(π/2) + 7 = −4(0) + 7 = 7 meters. At t = 5 the water depth is exactly at the midline. Point 4 — Times when depth = 7 m with explanation: Set D(t) = 7: −4 cos(π/6 · (t − 2)) + 7 = 7, so cos(π/6 · (t − 2)) = 0. Cosine equals zero when its argument is π/2 + nπ. So π/6 · (t − 2) = π/2 gives t − 2 = 3, t = 5; and π/6 · (t − 2) = 3π/2 gives t − 2 = 9, t = 11. During the first 12 hours, the depth is 7 m at t = 5 hours and t = 11 hours. These are the midline crossings — one while the tide is rising and one while it is falling.

Question 5: CRITICAL THINKING

3 pts
A student claims that the functions f(x) = 2 sin(x) and g(x) = 2 cos(x − π/2) are identical. Another student claims that f(x) = 2 sin(x) and p(x) = −2 sin(x − π) are also identical. (a) Determine whether the first student's claim is correct. Justify your answer using a trigonometric identity. (b) Determine whether the second student's claim is correct. Justify your answer analytically, and explain the geometric interpretation of why the two expressions produce the same graph.
Show answer
Rubric (3 points): Point 1 — First claim verified with identity: The first student is correct. By the co-function identity, cos(x − π/2) = cos x cos(π/2) + sin x sin(π/2) = cos x · 0 + sin x · 1 = sin x. Therefore g(x) = 2 cos(x − π/2) = 2 sin(x) = f(x). The functions are identical for all real x. Point 2 — Second claim verified analytically: The second student is also correct. Using the identity sin(x − π) = sin x cos π − cos x sin π = sin x(−1) − cos x(0) = −sin x. Therefore p(x) = −2 sin(x − π) = −2(−sin x) = 2 sin x = f(x). Point 3 — Geometric interpretation: Geometrically, p(x) = −2 sin(x − π) applies two transformations to 2 sin x: a horizontal shift of π to the right and a reflection over the midline. A rightward shift of half the period moves every maximum to where a minimum was, and the reflection then flips it back. These two transformations are inverses of each other in terms of the vertical effect, so they compose to produce the original function. This illustrates a general property: reflecting a sinusoid over its midline and shifting by half a period always returns the original curve.

SUMMARY

Lesson Summary

Summary

The general sinusoidal function y = a sin(b(x − h)) + d is governed by four independent parameters. The amplitude |a| controls the vertical extent from the midline to a peak. The period 2π / |b| determines the horizontal length of one complete cycle. The phase shift h translates the curve horizontally, and the vertical shift d raises or lowers the midline. When the equation appears in expanded form y = a sin(bx + c) + d, always factor b out of the argument before extracting the phase shift: h = −c / b.

Sine and cosine are interchangeable parent functions differing only by a phase shift of π/2, so choose whichever yields the simplest equation for a given graph. The range of any sinusoidal function is [d − |a|, d + |a|], and a negative value of a reflects the curve over its midline, swapping maxima and minima. These transformation skills directly support modeling periodic phenomena — tides, temperatures, sound waves, electrical signals — and form the foundation for Fourier analysis and calculus-based wave mechanics in later courses.

Varsity Tutors • AP Precalculus • Sinusoidal Function Transformations