Trigonometry

Graphs of Sine and Cosine

Last updated: March 2026 · Intermediate
Before you start

You should be comfortable with:

Real-world applications
📐
Carpentry

Measurements, material estimation, cutting calculations

Electrical

Voltage drop, wire sizing, load balancing

The graphs of sine and cosine are wave patterns that repeat forever. Understanding these waves is essential for AC circuit analysis in electrical work, sound and vibration in physics, and any application involving periodic (repeating) behavior.

The Basic Sine Graph

The function y=sin(x)y = \sin(x) produces a smooth wave that oscillates between 1-1 and 11. One complete cycle takes 2π2\pi radians (360°).

Graph of y = sin(x)

0π/2π3π/210-1(0, 0)(π/2, 1)(π, 0)(3π/2, -1)

Key features of y=sin(x)y = \sin(x):

  • Starts at 0 when x=0x = 0
  • Reaches maximum of 1 at x=π2x = \frac{\pi}{2}
  • Returns to 0 at x=πx = \pi
  • Reaches minimum of −1 at x=3π2x = \frac{3\pi}{2}
  • Completes the cycle at x=2πx = 2\pi

The Basic Cosine Graph

The function y=cos(x)y = \cos(x) produces the same wave shape, but shifted to the left by π2\frac{\pi}{2} — it starts at its maximum value.

Graph of y = cos(x)

0π/2π3π/210-1(0, 1)(π/2, 0)(π, -1)(3π/2, 0)

Key features of y=cos(x)y = \cos(x):

  • Starts at 1 when x=0x = 0
  • Crosses zero at x=π2x = \frac{\pi}{2}
  • Reaches minimum of −1 at x=πx = \pi
  • Crosses zero at x=3π2x = \frac{3\pi}{2}
  • Returns to 1 at x=2πx = 2\pi

The sine and cosine graphs are identical in shape — cosine is just sine shifted left by π2\frac{\pi}{2}:

cos(x)=sin ⁣(x+π2)\cos(x) = \sin\!\left(x + \frac{\pi}{2}\right)

The General Form: Transformations

The general form for both sine and cosine functions is:

y=Asin(B(xC))+Dory=Acos(B(xC))+Dy = A \sin(B(x - C)) + D \qquad \text{or} \qquad y = A \cos(B(x - C)) + D

Each parameter controls a specific transformation:

ParameterNameEffectDefault
AAAmplitudeVertical stretch — height from center to peak1
BBFrequencyHorizontal compression — affects period1
CCPhase shiftHorizontal shift (left/right)0
DDVertical shiftMoves the center line up or down0

Amplitude (AA)

The amplitude is A|A| — the distance from the center line to the peak (or trough). It determines how “tall” the wave is.

  • y=3sin(x)y = 3\sin(x) has amplitude 3 — the wave goes from 3-3 to 33
  • y=0.5sin(x)y = 0.5\sin(x) has amplitude 0.5 — the wave goes from 0.5-0.5 to 0.50.5
  • If AA is negative, the wave is flipped upside down

Period (BB)

The period is the horizontal distance for one complete cycle:

Period=2πB\text{Period} = \frac{2\pi}{|B|}

  • y=sin(2x)y = \sin(2x) has period 2π2=π\frac{2\pi}{2} = \pi — the wave completes twice as fast
  • y=sin ⁣(x2)y = \sin\!\left(\frac{x}{2}\right) has period 2π1/2=4π\frac{2\pi}{1/2} = 4\pi — the wave stretches out

Phase Shift (CC)

The phase shift moves the graph left or right. Positive CC shifts right; negative CC shifts left.

  • y=sin(xπ4)y = \sin(x - \frac{\pi}{4}) shifts the sine wave π4\frac{\pi}{4} units to the right

Vertical Shift (DD)

The vertical shift moves the entire wave up or down. The center line becomes y=Dy = D instead of y=0y = 0.

  • y=sin(x)+2y = \sin(x) + 2 shifts the wave up 2 units — it oscillates between 1 and 3

Worked Examples

Example 1: Identify the Properties

For y=4sin(3x)y = 4\sin(3x), find the amplitude and period.

  • Amplitude: A=4=4|A| = |4| = 4
  • Period: 2πB=2π32.094\frac{2\pi}{|B|} = \frac{2\pi}{3} \approx 2.094

Answer: Amplitude is 4, period is 2π3\frac{2\pi}{3}.

Example 2: Write the Equation from a Description

An AC voltage signal oscillates between 170-170 and 170170 volts and completes 60 cycles per second. Write the equation.

  • Amplitude: A=170A = 170 (half the peak-to-peak distance)
  • Frequency: 60 Hz means the period is 160\frac{1}{60} second, so B=2π×60=120πB = 2\pi \times 60 = 120\pi

V(t)=170sin(120πt)V(t) = 170\sin(120\pi t)

Answer: V(t)=170sin(120πt)V(t) = 170\sin(120\pi t). This is the standard equation for 120V AC power (170V peak).

Example 3: Phase-Shifted Cosine

Describe the graph of y=2cos ⁣(xπ3)+1y = 2\cos\!\left(x - \frac{\pi}{3}\right) + 1.

  • Amplitude: 2
  • Period: 2π1=2π\frac{2\pi}{1} = 2\pi
  • Phase shift: π3\frac{\pi}{3} to the right
  • Vertical shift: up 1

The wave oscillates between 12=11 - 2 = -1 and 1+2=31 + 2 = 3, centered on y=1y = 1.

Answer: A cosine wave with amplitude 2, period 2π2\pi, shifted right by π3\frac{\pi}{3} and up by 1.

Practice Problems

Test your understanding with these problems. Click to reveal each answer.

Problem 1: Find the amplitude and period of y=5sin(2x)y = 5\sin(2x).
  • Amplitude: 5=5|5| = 5
  • Period: 2π2=π\frac{2\pi}{2} = \pi

Answer: Amplitude is 5, period is π3.14\pi \approx 3.14.

Problem 2: What is the range (minimum and maximum y-values) of y=3cos(x)2y = 3\cos(x) - 2?

The amplitude is 3 and the vertical shift is 2-2. The center line is y=2y = -2.

  • Maximum: 2+3=1-2 + 3 = 1
  • Minimum: 23=5-2 - 3 = -5

Answer: The range is [5,1][-5, 1].

Problem 3: An electrical signal is described by y=12sin(100πt)y = 12\sin(100\pi t). What is the peak voltage and the frequency in Hz?
  • Peak voltage (amplitude): 12 volts
  • B=100πB = 100\pi, so period =2π100π=150= \frac{2\pi}{100\pi} = \frac{1}{50} second
  • Frequency =1period=50= \frac{1}{\text{period}} = 50 Hz

Answer: Peak voltage is 12 V, frequency is 50 Hz.

Problem 4: Write the equation for a sine wave with amplitude 6, period 4π4\pi, and no shifts.

Period =2πB=4π= \frac{2\pi}{B} = 4\pi, so B=2π4π=12B = \frac{2\pi}{4\pi} = \frac{1}{2}.

y=6sin ⁣(x2)y = 6\sin\!\left(\frac{x}{2}\right)

Answer: y=6sin ⁣(x2)y = 6\sin\!\left(\frac{x}{2}\right)

Key Takeaways

  • The sine graph starts at 0 and the cosine graph starts at 1 — otherwise they have the same shape
  • Amplitude (A|A|) controls the wave height; period (2πB\frac{2\pi}{|B|}) controls how wide one cycle is
  • Phase shift (CC) moves the wave left or right; vertical shift (DD) moves it up or down
  • The general form is y=Asin(B(xC))+Dy = A\sin(B(x - C)) + D or y=Acos(B(xC))+Dy = A\cos(B(x - C)) + D
  • AC electrical signals are modeled as sine waves — understanding amplitude and frequency is essential for electricians

To learn how to fit sine and cosine functions to real-world data like tides, temperature cycles, and daylight hours, see Sinusoidal Modeling.

Return to Trigonometry for more topics in this section.

Last updated: March 28, 2026