Math 3 • Algebra & Functions

Graphing Sine & Cosine — I can interpret and graph basic sine and cosine functions, identifying amplitude, period, and midline.

Learn to read and sketch the wave-shaped graphs that model everything from sound to seasons.

Math 3 emblem with sigma notation, a function, and a line graph.
Inside this lesson 10 sections 5 questions 10 figures

SECTION 1

Historical Context & Motivation

Long before anyone drew a sine curve on graph paper, ancient civilizations were fascinated by repeating patterns in nature — the rising and setting of the sun, the phases of the moon, and the changing tides. The mathematical functions we call sine and cosine were originally developed to solve problems in astronomy and navigation, but they turned out to describe wave-like behavior everywhere in the physical world.

~150 CE • Ptolemy's Chord Tables

Greek astronomer Claudius Ptolemy compiled detailed tables of chord lengths in circles, which are closely related to sine values. These tables helped astronomers predict the positions of stars and planets.

~500 CE • Indian 'Jyā' (Sine) Function

Indian mathematician Aryabhata defined the half-chord of a circle, calling it jyā. Through Arabic translation, this word eventually became our modern term "sine."

1635 • Graphs of Trigonometric Functions

Gilles de Roberval became one of the first mathematicians to sketch a sine curve on a coordinate plane, revealing its characteristic smooth wave shape.

1822 • Fourier's Breakthrough

Joseph Fourier showed that virtually any periodic wave — sound, heat, or light — can be built from combinations of sine and cosine functions, making these graphs indispensable across science and engineering.

Today, sine and cosine curves appear whenever something repeats in a predictable cycle. Understanding how to read and graph these functions gives you a powerful tool: the ability to model phenomena like the swing of a pendulum, the voltage in an electrical outlet, or the average daily temperature over a year. The central question for this lesson is: How do we translate the numbers produced by sine and cosine into visual, wave-shaped graphs, and what do the key features of those graphs tell us?

SECTION 2

Core Principles & Definitions

Before sketching any graphs, you need to understand three features that describe every sine or cosine wave. These features — amplitude, period, and midline — act like a set of instructions for building the wave. If you know all three, you can sketch the graph without plotting dozens of individual points.

1

Amplitude

The amplitude is the distance from the midline to the highest (or lowest) point of the wave. It tells you how tall the wave is. A larger amplitude means a taller, more dramatic wave.
2

Period

The period is the horizontal length of one complete cycle of the wave. It answers the question: how far along the x-axis do you travel before the pattern starts repeating?
3

Midline

The midline is the horizontal line that runs through the middle of the wave, halfway between the maximum and minimum values. For the basic functions y = sin(x) and y = cos(x), the midline is y = 0.
4

Maximum & Minimum

The maximum value equals the midline plus the amplitude; the minimum value equals the midline minus the amplitude. These are the peaks and valleys of the wave.
✦

KEY TAKEAWAY

Think of a sine or cosine wave like someone bouncing on a trampoline. The midline is the resting height of the trampoline surface. The amplitude is how high above (or below) the surface the person bounces. The period is how long it takes for one full bounce cycle — up, down, and back to the surface.

SECTION 3

The Shapes of Sine & Cosine

The diagram below shows one complete cycle each of the parent functions y = sin(x) and y = cos(x) plotted on the same coordinate plane. Notice that both curves have the same wave shape — the cosine graph is simply the sine graph shifted to the left by π/2 units. Both oscillate between −1 and 1, giving them an amplitude of 1, a period of 2π, and a midline of y = 0.

y = sin(x) and y = cos(x)01−10π/2π3π/22πxyAmp = 1Midline y = 0y = sin(x)y = cos(x)
Both y = sin(x) (cyan) and y = cos(x) (violet) share the same amplitude of 1, period of 2π, and midline y = 0. Key points are marked with dots: the sine curve starts at the origin while the cosine curve starts at its maximum.

There are several important observations to make from this graph. The sine curve starts at the origin (0, 0), rises to its peak at x = π/2, returns to 0 at x = π, drops to its lowest point at x = 3π/2, and completes the cycle back at 0 when x = 2π. The cosine curve follows the exact same wave pattern but starts at its maximum value of 1 when x = 0. These five key x-values — 0, π/2, π, 3π/2, and 2π — divide one period into four equal quarter-cycles. Memorizing the behavior at these quarter-points is the fastest way to sketch either function by hand.

SECTION 4

Mathematical Framework

The general forms of sine and cosine functions introduce parameters that control the shape and position of the wave. For this lesson, we focus on the simplified version (without horizontal shifts) so that you can clearly see how each parameter maps to a graph feature.

GENERAL SINE FUNCTION

y=A⋅sin(Bx)+Dy = A · sin(Bx) + D

A = amplitude (vertical stretch), B = frequency factor (horizontal compression), D = vertical shift (sets the midline at y = D).

GENERAL COSINE FUNCTION

y=A⋅cos(Bx)+Dy = A · cos(Bx) + D

Same parameters apply. The only difference from the sine version is the starting point of the wave.

AMPLITUDE

Amplitude=∣A∣Amplitude = |A|

The amplitude is always positive. If A is negative, the graph flips upside down (a reflection over the midline), but the amplitude is still |A|.

PERIOD

Period=2π/∣B∣Period = 2π / |B|

A larger value of |B| compresses the wave horizontally, producing a shorter period. A smaller value stretches it out, producing a longer period.

MIDLINE

Midline:y=DMidline: y = D

When D = 0, the midline sits on the x-axis. Positive D shifts the entire wave up; negative D shifts it down.

💡

Quick Connections

Maximum value = D + |A| and Minimum value = D − |A|. You can also work backward: if you're given a graph, the amplitude equals (max − min) / 2 and the midline equals (max + min) / 2.

SECTION 5

Quarter-Point Table & Detailed Breakdown

The most efficient way to sketch a sine or cosine graph is to plot five quarter-points — the values at the start, each quarter of the period, and the end. These five points capture the maximum, minimum, and midline crossings, which together define the entire shape of one cycle.

Fraction of Periodx-value (basic)sin(x)cos(x)
0 (start)001 (max)
¼π/21 (max)0
½π0−1 (min)
¾3π/2−1 (min)0
1 (end)2π01 (max)

Quarter-point values for y = sin(x) and y = cos(x) over one full period (0 to 2π).

y = 3 sin(2x) + 1 — Transformed SineMidline y = 114−220−130π/4π/23π/4π(0, 1)(π/4, 4)(π/2, 1)(3π/4, −2)(π, 1)Amp = 3Period = π
A transformed sine function y = 3 sin(2x) + 1 with amplitude 3, period π, and midline y = 1. The five quarter-points are labeled, showing how the wave reaches its maximum of 4 and minimum of −2.

In the transformed function y = 3 sin(2x) + 1 shown above, you can verify each parameter. The coefficient A = 3 stretches the wave vertically, so the amplitude is 3. The coefficient B = 2 compresses the wave horizontally, producing a period of 2π / 2 = π instead of the usual 2π. Finally, D = 1 shifts the entire wave up by one unit, setting the midline at y = 1. The maximum value is 1 + 3 = 4, and the minimum is 1 − 3 = −2.

SECTION 6

Worked Example

Let's walk through a complete example: identify the key features and sketch y = 2 cos(x) − 3.

Graphing y = 2 cos(x) − 3

  1. 1

    Step 1 — Identify A, B, and D

    Compare y = 2 cos(x) − 3 to the general form y = A · cos(Bx) + D. Here, A = 2, B = 1, and D = −3.
    A = 2, B = 1, D = −3
  2. 2

    Step 2 — Find the Amplitude

    Amplitude = |A| = |2| = 2. The wave rises 2 units above the midline and drops 2 units below it.
    Amplitude = 2
  3. 3

    Step 3 — Find the Period

    Period = 2π / |B| = 2π / 1 = 2π. Since B = 1 (unchanged from the parent function), one full cycle still takes 2π units along the x-axis.
    Period = 2π
  4. 4

    Step 4 — Find the Midline

    Midline: y = D = −3. The wave is centered on the horizontal line y = −3 instead of the x-axis.
    Midline: y = −3
  5. 5

    Step 5 — Calculate Max and Min

    Maximum = D + |A| = −3 + 2 = −1. Minimum = D − |A| = −3 − 2 = −5. So the graph oscillates between y = −1 and y = −5.
    Max = −1, Min = −5
  6. 6

    Step 6 — Plot the Quarter-Points

    Since this is a cosine function, it starts at the maximum. The five quarter-points over one period are: (0, −1), (π/2, −3), (π, −5), (3π/2, −3), and (2π, −1). Plot these points, draw a smooth wave through them, and you've graphed the function.
    Points: (0, −1), (π/2, −3), (π, −5), (3π/2, −3), (2π, −1)
📝

Cosine vs. Sine Starting Points

Remember: a cosine function always begins at a maximum (or minimum if A is negative), while a sine function always begins on the midline. This difference is the main distinction when plotting quarter-points.

SECTION 7

Comparing Sine & Cosine

Sine and cosine are very closely related — they share the same shape, amplitude, and period. The only difference is where they start. This comparison table highlights their similarities and differences so you can quickly decide which function matches a given graph or real-world scenario.

Featurey = sin(x)y = cos(x)
Value at x = 00 (midline)1 (maximum)
First reaches maximum atx = π/2x = 0
First reaches minimum atx = 3π/2x = π
SymmetryOdd function: sin(−x) = −sin(x)Even function: cos(−x) = cos(x)
Relationshipsin(x) = cos(x − π/2)cos(x) = sin(x + π/2)
Starting directionRises from midlineFalls from maximum

Side-by-side comparison of y = sin(x) and y = cos(x).

✦

KEY TAKEAWAY

Sine and cosine are like two runners on the same circular track who started at different points. They follow the exact same path at the exact same speed, but one is always a quarter-lap ahead of the other. That quarter-lap offset is the π/2 phase shift that separates them.

SECTION 8

Connection to Advanced Topics

The amplitude-period-midline framework you've learned in this lesson is the foundation for more advanced transformations. As you progress, you will encounter additional parameters that let you shift the wave left or right (a phase shift) and even combine multiple waves together.

What You Know NowWhat Comes Next
y = A sin(Bx) + Dy = A sin(B(x − C)) + D where C is the phase (horizontal) shift
Graphing one cycleGraphing multiple cycles and combining sine/cosine (Fourier analysis)
Identifying features from equationsWriting equations from real-world data (curve fitting, sinusoidal regression)
Sine and cosine onlyTangent, secant, cosecant, and cotangent graphs
Amplitude, period, midlineFrequency (cycles per unit), angular velocity, and radian measure in physics

How this lesson's concepts expand into future coursework.

Being comfortable with the concepts in this lesson will make those future topics much more manageable. Every advanced transformation is just one more layer on top of the amplitude, period, and midline framework you've already mastered.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

A student claims that the graphs of y = sin(x) and y = cos(x) are completely different functions because they don't start at the same point. Explain whether this claim is fully correct, partially correct, or incorrect, and justify your reasoning.
Show answer
The claim is partially correct but mostly misleading. While the two graphs do start at different y-values (sine starts at 0 and cosine starts at 1), they have the identical wave shape, the same amplitude of 1, the same period of 2π, and the same midline y = 0. In fact, cos(x) = sin(x + π/2), which means the cosine curve is just the sine curve shifted π/2 units to the left. They are the same shape — the difference is only in where the cycle begins, not in the nature of the function.

Question 2: BASIC CALCULATION

Find the amplitude, period, and midline of y = 4 sin(3x) + 2.
Show answer
Compare y = 4 sin(3x) + 2 to the general form y = A sin(Bx) + D. Here A = 4, B = 3, and D = 2. The amplitude is |A| = 4. The period is 2π / |B| = 2π / 3. The midline is y = D = 2. Therefore the wave oscillates between a maximum of 2 + 4 = 6 and a minimum of 2 − 4 = −2, completing one full cycle every 2π/3 units along the x-axis.

Question 3: INTERMEDIATE

A cosine function has a maximum value of 7 and a minimum value of −1. Its graph completes one full cycle from x = 0 to x = 4π. Determine the amplitude, midline, and write the equation of the function.
Show answer
First, find the amplitude: (max − min) / 2 = (7 − (−1)) / 2 = 8 / 2 = 4. Next, find the midline: (max + min) / 2 = (7 + (−1)) / 2 = 6 / 2 = 3, so the midline is y = 3. The period is 4π (one full cycle from 0 to 4π), so 2π / |B| = 4π, giving |B| = 2π / 4π = 1/2. Since it is a cosine function, the equation is y = 4 cos((1/2)x) + 3. You can verify: at x = 0, y = 4 cos(0) + 3 = 4(1) + 3 = 7, which matches the maximum.

Question 4: APPLIED

The average monthly temperature in a city can be modeled by T(m) = 20 sin((π/6)m) + 55, where m is the month number (m = 1 for January). What is the highest average temperature, the lowest average temperature, and how many months does it take for the temperature pattern to repeat?
Show answer
From the equation T(m) = 20 sin((π/6)m) + 55, we identify A = 20, B = π/6, and D = 55. The amplitude is 20, so the temperature swings 20°F above and below the midline. The midline (average temperature) is 55°F. The maximum temperature is 55 + 20 = 75°F, and the minimum temperature is 55 − 20 = 35°F. The period is 2π / (π/6) = 2π × (6/π) = 12 months, which makes sense — the temperature pattern repeats every 12 months (one year).

Question 5: CRITICAL THINKING

Consider the function y = −5 cos(4x) + 2. Identify the amplitude, period, and midline. Then explain how the negative sign in front of the 5 affects the graph compared to y = 5 cos(4x) + 2. Sketch or describe the quarter-points for one complete cycle starting at x = 0.
Show answer
From y = −5 cos(4x) + 2, we have A = −5, B = 4, and D = 2. The amplitude is |A| = |−5| = 5. The period is 2π / 4 = π/2. The midline is y = 2. The negative A causes a reflection over the midline: instead of starting at the maximum (as a normal cosine would), the graph starts at the minimum. For y = 5 cos(4x) + 2, the cosine starts at (0, 7) — the maximum. For y = −5 cos(4x) + 2, the cosine starts at (0, −3) — the minimum. The quarter-points for one cycle of y = −5 cos(4x) + 2 are: (0, −3), (π/8, 2), (π/4, 7), (3π/8, 2), and (π/2, −3). Notice the pattern is min → midline → max → midline → min, which is the opposite of the standard cosine pattern.

SUMMARY

Lesson Summary

Summary

Sine and cosine functions produce smooth, wave-shaped graphs that repeat indefinitely. Every such graph can be described by three key features: the amplitude (the height from midline to peak, equal to |A|), the period (the horizontal length of one complete cycle, equal to 2π / |B|), and the midline (the horizontal line y = D around which the wave oscillates). The maximum value is D + |A| and the minimum value is D − |A|.

To graph a sine or cosine function, use the quarter-point method: divide one period into four equal intervals and plot the key values (maximum, midline, and minimum) at each boundary. Remember that sine starts on the midline while cosine starts at its maximum (or minimum if A is negative). These two functions share the same shape — they differ only by a horizontal shift of π/2. Mastering these fundamentals prepares you for phase shifts, sinusoidal modeling, and more complex trigonometric analysis.

Varsity Tutors • Math 3 • Graphing Sine & Cosine