PrepGo

Sine and Cosine Function Graphs - AP PreCalculus Study Guide

Written by AP Content Team, Verified for 2026 AP Exams, Last updated: May 2026

Learn with study guides reviewed by top AP teachers. This guide takes about 14 minutes to read.

The Core Idea: Sine and Cosine Function Graphs

The graphs of sine and cosine functions, known as sinusoids or sinusoidal waves, are fundamental in modeling periodic phenomena that exhibit a smooth, repetitive oscillation. These functions are characterized by their wavelike shape that repeats at regular intervals. The core idea of this topic is to understand how the parameters in the general sinusoidal equations, and , transform the basic graphs of and .

By analyzing these parameters, we can precisely describe any sinusoidal wave's key features: its height (amplitude), its vertical center (midline), the length of one full cycle (period), and its horizontal starting position (phase shift). This framework allows us to both sketch an accurate graph from a given equation and, conversely, to derive a specific equation that models a given sinusoidal graph. The relationship between sine and cosine is simply a horizontal shift, meaning any sinusoidal graph can be described by either function with the appropriate transformation.

Key Formulas & Parameters

The general form for a sinusoidal function is given by or . Each parameter—, , , and —controls a specific graphical transformation.

1. Midline:

  • The midline is the horizontal line that passes exactly halfway between the function's maximum and minimum values.

  • The parameter represents a vertical shift. It moves the entire graph up (if ) or down (if ) from its default midline of .

  • Formula:

2. Amplitude:

  • The amplitude is the distance from the midline to either the maximum or minimum value of the function. It represents the "height" of the waves.

  • The parameter controls the vertical stretch or compression. The absolute value, , is the amplitude.

  • If , the function is reflected across its midline. For example, while starts at a maximum, starts at a minimum.

  • Formula:

3. Period:

  • The period is the length of the smallest horizontal interval over which the function completes one full cycle. The parent functions and have a period of .

  • The parameter controls the horizontal stretch or compression. It is related to the period by the formula below. A larger value results in a shorter period (more cycles in a given interval).

  • Formula:

  • Conversely, to find from a given period:

4. Frequency:

  • Frequency is the reciprocal of the period. It represents the number of cycles the function completes over a horizontal interval of length .

  • Formula:

5. Phase Shift:

  • The phase shift is the horizontal translation of the sinusoidal function from its parent function's standard starting position.

  • The parameter in the form represents the horizontal shift.

  • If , the graph shifts to the right by units.

  • If , the graph shifts to the left by units. This is often seen as .

  • Crucial Note: To identify the phase shift correctly, the function must be in the factored form . If given , you must first factor out to get , making the phase shift .

Understanding The Sine vs. Cosine Relationship

A critical concept is that the sine and cosine functions are fundamentally the same wave, just shifted horizontally relative to each other. The graph of is identical to the graph of shifted to the right by units.

This relationship is captured by the identity:

Implications for Modeling:

  • Flexibility: Any sinusoidal graph can be modeled using either a sine function or a cosine function. The choice of function will simply change the required phase shift ().

  • Identifying the Function: The primary difference in their "starting" behavior at (or at the beginning of a phase-shifted cycle) helps determine which function to use for a simpler equation.

    • Cosine: The basic cosine function, , starts a cycle at a maximum value on the y-axis. Therefore, if a sinusoidal graph begins its cycle (after its phase shift) at a maximum or minimum, a cosine function often provides the most straightforward model.

    • Sine: The basic sine function, , starts a cycle at its midline value and then increases. If a sinusoidal graph begins its cycle (after its phase shift) at the midline, a sine function is typically the easier choice.

For example, a graph that has a maximum at could be modeled as a cosine function with a phase shift of . Alternatively, it could be modeled as a sine function, but its phase shift would correspond to the x-value where the graph crosses the midline while increasing.

Core Concepts & Rules

  • Periodicity: The graphs of and are periodic, repeating every radians. All transformations of these functions remain periodic.

  • Amplitude (): This parameter determines the vertical distance from the midline to the maximum or minimum value. It is always a non-negative value. A negative value reflects the graph over the midline.

  • Period (): This is the horizontal length of one complete cycle. It is inversely related to the parameter .

  • Frequency (): This is the number of cycles per unit interval, and it is the reciprocal of the period.

  • Midline (): This is the horizontal line that serves as the vertical center of the graph. The parameter shifts the graph vertically.

  • Phase Shift (): This is the horizontal shift of the graph. It is determined by the value of in the factored form .

  • Sine vs. Cosine Starting Points: The parent sine function starts at (midline) and increases. The parent cosine function starts at (maximum). This difference is key to choosing a model and determining the phase shift.

  • Equivalence: Any sinusoid can be expressed as either a sine or a cosine function with an appropriate phase shift, because .

Step-by-Step Example 1: Graphing from an Equation

Problem: Identify the amplitude, period, midline, and phase shift of the function . Then, sketch one full cycle of the graph.

Step 1: Factor the argument to identify the parameters.

The function is given as . To correctly identify the phase shift, we must factor out the value, which is , from the argument.

So, the function in standard form is .

Step 2: Identify the parameters .

From the standard form, we can identify:

Step 3: Determine the key characteristics.

  • Midline:

  • Amplitude:. The negative sign on indicates a reflection over the midline.

  • Period:. One full cycle has a length of 4 units.

  • Phase Shift:. The graph is shifted 2 units to the right.

Step 4: Sketch one cycle of the graph.

  1. Draw the frame: Draw the midline at . Since the amplitude is 2, the maximum value will be and the minimum value will be . Draw horizontal lines at and to bound the graph.

  2. Determine the start and end of the cycle: The phase shift is 2, so our cycle starts at . The period is 4, so the cycle ends at .

  3. Plot the key points: A cosine cycle has five key points: start, quarter-point, mid-point, three-quarter-point, and end.

    • Start (): This is a reflected cosine function (), so it starts at its minimum on the midline. The point is .

    • Quarter-point (): The graph will cross the midline. The point is .

    • Mid-point (): The graph will reach its maximum. The point is .

    • Three-quarter-point (): The graph will cross the midline again. The point is .

    • End (): The graph will return to its minimum. The point is .

  4. Draw the curve: Connect the five points with a smooth, sinusoidal curve.

Step-by-Step Example 2: Finding an Equation from a Graph

Problem: A sinusoidal function is graphed below. It has a maximum at and a subsequent minimum at . Determine a possible equation for using both a cosine and a sine function.

Step 1: Find the midline ().

The midline is halfway between the maximum and minimum values.

The midline is .

Step 2: Find the amplitude ().

The amplitude is the distance from the midline to the maximum (or minimum).

The amplitude is 3.

Step 3: Find the period and the parameter .

The graph goes from a maximum to a minimum between and . This represents half of a full period.

  • Half Period =

  • Full Period =

Now, use the period to find .

We will use .

Step 4: Determine a cosine equation.

A cosine function is often easiest when a maximum or minimum point is clearly identifiable. The graph has a maximum at .

  • A standard (non-reflected) cosine function starts at a maximum.

  • Since our graph has a maximum at , we can model this with a non-reflected cosine function () shifted 1 unit to the right.

  • This means our phase shift is .

  • Putting it all together: .

Step 5: Determine a sine equation.

A sine function starts at its midline and increases. We need to find a point on the graph where it crosses the midline with a positive slope.

  • The maximum is at and the minimum is at . The midline crossing between them occurs at . At this point, the graph is decreasing.

  • The cycle starts before . The point where the graph crosses the midline while increasing would be one-quarter period before the maximum at .

  • Quarter Period = .

  • The starting point for a sine model is at .

  • So, we can use a non-reflected sine function () with a phase shift of .

  • Putting it all together: .

Both equations are valid representations of the given graph.

Using Your Calculator

A graphing calculator is an excellent tool for verifying the equation you have derived from a graph or for visualizing a given function. It is not used for analytical derivation but for confirmation.

Task: Verify that the equation from Example 2 correctly models a function with a maximum at and a minimum at .

Steps (TI-84 Style):

  1. Enter the Equation:

    • Press the [Y=]` button. * In `Y1`, type `3*cos((π/2)(X-1))+2`. Ensure your calculator is in **Radian mode** by pressing `[MODE]` and checking the setting. 2. **Set the Viewing Window:** * Press the `[WINDOW]` button. * Set the window to match the key features of the problem. * $Xmin: (to see left of the maximum)

    • : (to see the full cycle from to )

    • Xscl`: $1 (sets the tick mark spacing on the x-axis)

    • -2$ (to see below the minimum of -1)

    • Ymax`: $6 (to see above the maximum of 5)

    • Yscl`: $1

  2. Graph and Verify:

    • Press [GRAPH]. The displayed curve should match the expected shape.

    • Use the calculation tools to find the maximum and minimum.

    • Press [2ND][TRACE]to open the CALC menu. * Select `4:maximum`. The calculator will ask for a "Left Bound?", "Right Bound?", and "Guess?". Move the cursor to the left of the peak at $x=1, press [ENTER], move to the right, press [ENTER], and press [ENTER]again for the guess. The calculator should display a maximum at or very nearX=1, Y=5`.

    • Repeat the process by selecting 3:minimum to verify the minimum at .

AP Exam Quick Hit

Common Question Types

  • Given an equation, find a characteristic: "What is the period of the function ?"

    • Solution approach: First, factor the argument: . Identify . Then calculate the period: \frac{2\pi}{|b|} = \frac{2\pi}{4} = \frac{\pi}{2}`. - **Given a graph, identify a correct equation:** A graph of a sinusoid is shown. "Which of the following equations could represent the function shown in the graph?" * *Solution approach:* Systematically determine the midline, amplitude, and period from the graph. Use these to eliminate incorrect choices. Then, check the phase shift and any reflection for the remaining options to find the correct match. - **Given characteristics, construct an equation:** "A sinusoidal function has a midline of $y=-3, an amplitude of 7, and a period of . Write a possible equation for this function."

    • Solution approach: Use the characteristics to find the parameters. , . Find from the period: . A possible equation (with and no phase shift) is .

Common Mistakes

  • Confusing Period and : A very common error is to set equal to the period found from a graph. Remember the relationship is inverse: \frac{2\pi}{|b|}$. If the period is $4\pi, then , not .

  • Incorrect Phase Shift from Unfactored Form: When given an equation like , many students incorrectly state the phase shift is . You must factor out first: . The correct phase shift is to the right.

  • Amplitude is Always Positive: The amplitude is , a distance, which cannot be negative. If , the amplitude is 5. The negative sign indicates a reflection over the midline, meaning a cosine model would start at a minimum and a sine model would decrease from the midline initially.

  • Sign of Phase Shift: In the form , the shift is units to the right. In the form , which is equivalent to , the shift is units to the left. Students often reverse this.

  • Mixing Up Sine and Cosine Starting Points: Forgetting that a basic cosine function starts at a maximum and a basic sine function starts at the midline (and increases). This mistake leads to choosing the wrong function or an incorrect phase shift when writing an equation from a graph.