Facebook Pixel
Mathos AI logo

Graphs of Trigonometric Functions

Graphs of Trigonometric Functions

Trigonometric functions are periodic, meaning their graphs repeat in regular intervals or cycles. Understanding the basic shapes of sine, cosine, and tangent graphs, as well as how to transform them, is an essential skill in trigonometry.

The Basic Trigonometric Graphs

Before applying transformations, you must know the "parent" graphs of the three primary trigonometric functions:

  • Sine (y=sin⁡xy = \sin x): Starts at the origin (0,0)(0,0), rises to a maximum of 11 at π2\frac{\pi}{2}, crosses the x-axis at π\pi, falls to a minimum of −1-1 at 3π2\frac{3\pi}{2}, and completes its cycle at 2π2\pi. Its period is 2π2\pi.
  • Cosine (y=cos⁡xy = \cos x): Starts at a maximum of (0,1)(0,1), crosses the x-axis at π2\frac{\pi}{2}, falls to a minimum of −1-1 at π\pi, crosses the x-axis again at 3π2\frac{3\pi}{2}, and completes its cycle at 2π2\pi. Its period is 2π2\pi.
  • Tangent (y=tan⁡xy = \tan x): Passes through the origin but has vertical asymptotes at x=π2+nπx = \frac{\pi}{2} + n\pi (where nn is an integer) because tangent is undefined at these points. Its period is π\pi.

Transformations: The General Form

We can transform these basic graphs using the general equation:

y=Asin⁡(Bx−C)+Dy = A\sin(Bx - C) + D

(This same format applies to cosine and tangent functions).

Each constant alters the graph in a specific way:

  • Amplitude (∣A∣|A|): The height from the center line to the peak (or trough). If AA is negative, the graph reflects across the midline. (Note: Tangent functions do not have an amplitude since they extend infinitely up and down).
  • Period: The length of one complete cycle.
    • For sine and cosine: Period=2π∣B∣\text{Period} = \frac{2\pi}{|B|}
    • For tangent: Period=π∣B∣\text{Period} = \frac{\pi}{|B|}
  • Phase Shift (CB\frac{C}{B}): The horizontal shift of the graph. If CB\frac{C}{B} is positive, the graph shifts to the right. If negative, it shifts to the left.
  • Midline (y=Dy = D): The vertical shift. This is the new horizontal center line of the graph.

Example Problems

Example 1: Graphing a Transformed Sine Function

Problem: Graph y=3sin⁡(2x−π3)+1y = 3\sin(2x - \frac{\pi}{3}) + 1 over two periods.

Solution: Let's identify the transformation variables from the equation A=3A=3, B=2B=2, C=π3C=\frac{\pi}{3}, and D=1D=1.

  1. Amplitude: ∣A∣=3|A| = 3. The graph will reach 33 units above and below the midline.
  2. Midline: y=1y = 1. The maximum value is 1+3=41 + 3 = 4, and the minimum is 1−3=−21 - 3 = -2.
  3. Period: 2πB=2π2=π\frac{2\pi}{B} = \frac{2\pi}{2} = \pi. One full cycle takes π\pi units.
  4. Phase Shift: CB=π/32=π6\frac{C}{B} = \frac{\pi/3}{2} = \frac{\pi}{6}. The graph starts its standard sine cycle at x=π6x = \frac{\pi}{6} instead of x=0x = 0.

To graph, start at the phase shift x=π6x = \frac{\pi}{6} on the midline y=1y = 1. Follow the sine pattern (midline, max, midline, min, midline) ending the first cycle at x=π6+π=7π6x = \frac{\pi}{6} + \pi = \frac{7\pi}{6}. Repeat this pattern for a second period.

Example 2: Finding the Equation from Properties

Problem: Find the equation of a cosine function with amplitude 44, period π\pi, and shifted right π4\frac{\pi}{4} with no vertical shift.

Solution: We use the general form y=Acos⁡(Bx−C)+Dy = A\cos(Bx - C) + D.

  1. Amplitude is 4: A=4A = 4 (we will assume a positive leading coefficient).
  2. No vertical shift: D=0D = 0.
  3. Period is π\pi: We know 2πB=Period\frac{2\pi}{B} = \text{Period}. 2πB=π  ⟹  B=2\frac{2\pi}{B} = \pi \implies B = 2
  4. Phase shift is π4\frac{\pi}{4} right: We know CB=Phase Shift\frac{C}{B} = \text{Phase Shift}. C2=π4  ⟹  C=2π4=π2\frac{C}{2} = \frac{\pi}{4} \implies C = \frac{2\pi}{4} = \frac{\pi}{2}

Substitute these values back into the general form: y=4cos⁡(2x−π2)y = 4\cos(2x - \frac{\pi}{2})