Graphs Of Trigonometric Functions

Download as PDF

Graphs of trigonometric functions transform abstract concepts like sine and cosine into visual, wave-like patterns. Understanding these graphs is key to modeling cyclical phenomena in the real world, from sound waves and ocean tides to alternating electrical currents and planetary orbits.

Graphs Of Trigonometric Functions — an original Algebra911 reference diagram defining graphs of trigonometric functions with its key formula and a worked example.
Graphs of Trigonometric Functions

What Are Trigonometric Graphs?

A trigonometric graph is a visual representation of a trigonometric function, such as sine, cosine, or tangent, plotted on the Cartesian coordinate plane. These graphs show the relationship between an angle (plotted on the x-axis, typically in radians) and the value of the trigonometric function at that angle (plotted on the y-axis). The fundamental idea is to plot points of the form (x,f(x)), where f(x) is a function like sin(x) or cos(x).

Unlike linear or quadratic graphs, trigonometric graphs are periodic, meaning their shape repeats at regular intervals. This cyclical nature comes directly from the unit circle. As we travel around the unit circle, the values for sine (the y-coordinate) and cosine (the x-coordinate) repeat every 2π radians, or 360. This repetition creates the characteristic wave-like patterns, known as sinusoidal waves for sine and cosine, that are central to their study.

Exploring the Parent Sine and Cosine Functions

The two most fundamental trigonometric graphs are y=sin(x) and y=cos(x). These are often called the 'parent functions' because all other transformations—stretching, shifting, and compressing—start from these basic shapes.

The Sine Function: y=sin(x)

The sine graph is a smooth, continuous wave that passes through the origin (0,0). We can plot it by using key points from one full rotation of the unit circle, from x=0 to x=2π.

  • At x=0, sin(0)=0.
  • At x=π/2, sin(π/2)=1 (the maximum value).
  • At x=π, sin(π)=0.
  • At x=3π/2, sin(3π/2)=1 (the minimum value).
  • At x=2π, sin(2π)=0 (the cycle completes).

Key Properties of y=sin(x):

  • Domain: All real numbers, (,).
  • Range: [1,1]. The graph never goes above 1 or below 1.
  • Period: 2π. The graph completes one full cycle every 2π radians.
  • Amplitude: 1. The amplitude is half the distance between the maximum and minimum values, which is (1(1))/2=1.

The Cosine Function: y=cos(x)

The cosine graph looks very similar to the sine graph. In fact, it's the same wave, just shifted horizontally. The cosine graph starts at its maximum value at x=0 because cos(0)=1.

  • At x=0, cos(0)=1 (the maximum value).
  • At x=π/2, cos(π/2)=0.
  • At x=π, cos(π)=1 (the minimum value).
  • At x=3π/2, cos(3π/2)=0.
  • At x=2π, cos(2π)=1 (the cycle completes).

Key Properties of y=cos(x):

  • Domain: All real numbers, (,).
  • Range: [1,1].
  • Period: 2π.
  • Amplitude: 1.

An important observation is that the graph of y=cos(x) is identical to the graph of y=sin(x+π/2). This means the cosine function is simply the sine function shifted π/2 units to the left.

How Do Amplitude and Period Transform the Graphs?

Once we understand the parent functions, we can start transforming them. The general form we'll explore is y=Asin(Bx) and y=Acos(Bx). The coefficients A and B control the vertical and horizontal stretching of the graph, respectively.

Amplitude: The A Value

The amplitude measures the height of the wave from its central axis. It is determined by the coefficient A in front of the function.

Amplitude = |A|

The amplitude is the absolute value of A. It tells you the maximum distance the graph reaches from its horizontal midline. If A is negative, the graph is also reflected across the x-axis, but the amplitude itself remains positive. For example, both y=3cos(x) and y=3cos(x) have an amplitude of 3.

Period: The B Value

The period is the length of one complete cycle of the graph. It is determined by the coefficient B of the variable x.

Period = 2π|B|

The value of B controls the horizontal compression or stretching of the wave. A value of |B|>1 compresses the graph, making the period shorter (more cycles fit into a given interval). A value of |B|<1 stretches the graph, making the period longer.

Example 1

Graph one cycle of the function y=3sin(2x).

Step 1: Identify Amplitude and Period.
Comparing to y=Asin(Bx), we have A=3 and B=2.
The amplitude is |A|=|3|=3. This means the graph will reach a maximum of 3 and a minimum of 3.
The period is 2π|B|=2π2=π. The graph will complete one full cycle in π radians.

Step 2: Find the five key points for one cycle.
A standard sine cycle starts at x=0. This cycle will start at x=0 and end at x=π (the period). To find the key points, we divide the period into four equal parts: π/4.
The x-values are: 0, 0+π/4=π/4, π/4+π/4=π/2, π/2+π/4=3π/4, and 3π/4+π/4=π.

Step 3: Calculate the y-values for these points.

  • x=0: y=3sin(20)=3sin(0)=0
  • x=π/4: y=3sin(2π/4)=3sin(π/2)=3(1)=3 (Max)
  • x=π/2: y=3sin(2π/2)=3sin(π)=3(0)=0
  • x=3π/4: y=3sin(23π/4)=3sin(3π/2)=3(1)=3 (Min)
  • x=π: y=3sin(2π)=3sin(2π)=3(0)=0

Step 4: Plot the points and draw the curve.
Plot (0,0), (π/4,3), (π/2,0), (3π/4,3), and (π,0). Connect them with a smooth sine wave. The graph is vertically stretched by a factor of 3 and horizontally compressed by a factor of 2 compared to the parent function.

What Are Phase Shift and Vertical Shift?

Now we introduce horizontal and vertical translations to our functions. The complete form for a sinusoidal function is y=Asin(B(xC))+D or y=Acos(B(xC))+D.

Vertical Shift: The D Value

The vertical shift moves the entire graph up or down. The value of D determines the new horizontal midline of the graph.

Vertical Shift = D

If D is positive, the graph shifts up by D units. If D is negative, it shifts down. The new midline of the graph is the line y=D. The range of the function becomes [D|A|,D+|A|].

Phase Shift: The C Value

The phase shift is the horizontal translation of the graph. It tells you where the starting point of the cycle moves to.

Phase Shift = C

Important: To correctly identify C, the function must be in the form B(xC). If you have an expression like sin(2xπ), you must first factor out the B value: sin(2(xπ/2)). Here, the phase shift C is π/2, not π. A positive C value shifts the graph to the right, and a negative C value (e.g., in x+C=x(C)) shifts it to the left.

Example 2

Graph one cycle of the function y=2cos(xπ2)+1.

Step 1: Identify the parameters.
Comparing to y=Acos(B(xC))+D, we have:
A=2, B=1, C=π/2, D=1.

Step 2: Determine the key properties.

  • Amplitude: |A|=2.
  • Period: 2π|B|=2π1=2π.
  • Phase Shift: C=π/2. The cycle starts π/2 units to the right.
  • Vertical Shift: D=1. The graph shifts up 1 unit.

Step 3: Find the new midline and range.
The midline is y=D=1.
The maximum value is D+|A|=1+2=3.
The minimum value is D|A|=12=1.
The range is [1,3].

Step 4: Determine the start and end of one cycle.
A standard cosine cycle starts at x=0. Due to the phase shift, this cycle will start at x=C=π/2.
The cycle ends after one period: Start+Period=π/2+2π=5π/2.
The key x-values are π/2 (start), 5π/2 (end), and the quarter points in between: π, 3π/2, and 2π.

Step 5: Plot the points and draw the curve.
A cosine curve starts at its maximum. So at the starting x-value x=π/2, the y-value is 3.

  • At x=π/2, y=3 (Max)
  • At x=π, y=1 (Midline)
  • At x=3π/2, y=1 (Min)
  • At x=2π, y=1 (Midline)
  • At x=5π/2, y=3 (Max)
Plot these points and connect them with a smooth cosine wave.

How Can We Graph Any Sine or Cosine Function?

Graphing a complex trigonometric function can be broken down into a reliable, step-by-step process. Let's use the general form y=Asin(B(xC))+D.

  1. Rewrite and Identify: Ensure the function is in the standard form by factoring out B if necessary. Then, identify the values of A,B,C, and D.
  2. Determine Key Properties: Calculate the amplitude (|A|), period (2π/|B|), phase shift (C), and vertical shift (D). Note if there is a reflection (if A<0).
  3. Establish the Frame: Draw the midline, y=D. Then, draw the upper and lower boundaries at y=D+|A| and y=D|A|. This creates a vertical 'frame' for your graph.
  4. Find the Cycle Interval: The cycle starts at x=C and ends at x=C+Period. Mark these on the x-axis. This is the horizontal 'frame'.
  5. Mark Quarter Points: Divide the cycle interval into four equal subintervals. These five x-values (start, quarter, half, three-quarter, end) are where the maximums, minimums, and midline points will occur.
  6. Plot and Sketch: Plot the five key points for one cycle, remembering the basic shape of sine (mid-max-mid-min-mid) or cosine (max-mid-min-mid-max). If A is negative, reflect the pattern across the midline (e.g., sine becomes mid-min-mid-max-mid). Connect the points with a smooth curve.
Example 3

Graph one cycle of y=4sin(πx+π)2.

Step 1: Rewrite and Identify.
We must factor out B=π from the argument: πx+π=π(x+1).
The function is y=4sin(π(x(1)))2.
So, A=4, B=π, C=1, and D=2.

Step 2: Determine Key Properties.

  • Amplitude: |A|=|4|=4.
  • Period: 2π|B|=2ππ=2.
  • Phase Shift: C=1 (shift 1 unit to the left).
  • Vertical Shift: D=2 (shift 2 units down).
  • Reflection: Yes, since A is negative, the graph is reflected over the midline.

Step 3: Establish the Frame.
The midline is y=2.
The upper boundary is y=2+4=2.
The lower boundary is y=24=6.
The range is [6,2].

Step 4: Find the Cycle Interval.
The cycle starts at x=C=1.
The cycle ends at x=C+Period=1+2=1.

Step 5: Mark Quarter Points.
The interval is [1,1], with length 2. The quarter points are every 2/4=0.5 units.
The x-values are: 1, 0.5, 0, 0.5, and 1.

Step 6: Plot and Sketch.
A normal sine wave goes mid-max-mid-min-mid. Because of the reflection (negative A), our pattern will be mid-min-mid-max-mid.

  • At x=1, y=2 (Midline)
  • At x=0.5, y=6 (Minimum)
  • At x=0, y=2 (Midline)
  • At x=0.5, y=2 (Maximum)
  • At x=1, y=2 (Midline)
Plot these five points and connect them with a smooth, reflected sine wave.

Key formulas for graphs of trigonometric functions by Algebra911.
Key formulas for graphs of trigonometric functions by Algebra911.

What Does the Tangent Graph Look Like?

The graph of the tangent function, y=tan(x), is very different from sine and cosine. Since tan(x)=sin(x)cos(x), its behavior is dictated by both functions.

Key features arise from the denominator, cos(x). Whenever cos(x)=0, the tangent function is undefined, resulting in a vertical asymptote. This occurs at x=,3π2,π2,π2,3π2, or more generally at x=π2+nπ for any integer n.

Between these asymptotes, the graph is a rising curve that passes through the origin. Unlike sine and cosine, the tangent function's range is all real numbers.

Key Properties of y=tan(x):

  • Domain: All real numbers except x=π2+nπ.
  • Range: All real numbers, (,).
  • Period: π. The repeating pattern is shorter than for sine and cosine.
  • Asymptotes: Vertical lines at each value where the function is undefined.
  • Zeros: The graph crosses the x-axis whenever sin(x)=0, which is at x=nπ.

To graph one cycle of y=tan(x), we typically plot the section between the asymptotes at x=π2 and x=π2. Key points in this cycle include:

  • x=π/4,y=1
  • x=0,y=0
  • x=π/4,y=1

The transformed tangent function y=Atan(B(xC))+D follows similar rules. The value A causes a vertical stretch, and D and C cause vertical and phase shifts. The period of the transformed tangent function is given by π|B|.

What Are Common Mistakes When Graphing Trig Functions?

Graphing trigonometric functions involves many steps, and it's easy to make small errors. Here are some of the most common mistakes to watch out for:

  • Incorrect Phase Shift: For a function like y=sin(2xπ), many students mistakenly identify the phase shift as π. You MUST factor out the B value first to get y=sin(2(xπ/2)). The correct phase shift is π/2 to the right.
  • Confusing Period Formulas: Remember that the period for sine and cosine is 2π/|B|, but the period for tangent is π/|B|. Using the wrong formula will lead to an incorrect horizontal stretch or compression.
  • Mixing Radians and Degrees: The x-axis on these graphs is almost always scaled in radians. Ensure your calculations for key points are also in radians. Trying to plot a point at x=90 instead of x=π/2 will produce a very wrong graph.
  • Forgetting Reflections: A negative value for A (e.g., y=2cos(x)) reflects the entire graph across its midline. A common mistake is to calculate the amplitude correctly as 2 but forget to flip the graph's pattern (e.g., plotting a cosine wave that starts at its maximum instead of its minimum).
  • Misplacing the Starting Point: Remember that a basic sine curve starts at its midline, while a basic cosine curve starts at its maximum. Applying a phase shift moves this starting point, but the initial shape relative to that starting point remains the same (unless reflected).

Quick Summary of Graph Properties

This table provides a quick reference for the properties of the sinusoidal function y=Af(B(xC))+D, where f is either sin or cos.

PropertyFormula / ValueDescription
Amplitude|A|Half the distance between the maximum and minimum values; the wave's height from the midline.
Period2π|B|The length of one complete horizontal cycle.
Phase ShiftCThe horizontal shift of the graph. Positive is right, negative is left.
Vertical ShiftDThe vertical shift of the graph. This value determines the midline.
Midliney=DThe horizontal center line of the graph.
Maximum ValueD+|A|The highest y-value the graph reaches.
Minimum ValueD|A|The lowest y-value the graph reaches.
Range[D|A|,D+|A|]The set of all possible y-values.
ReflectionIf A<0The graph is reflected across the midline y=D.

Frequently Asked Questions

What is the main difference between a sine and a cosine graph?

The sine and cosine graphs have the exact same wave shape, amplitude, and period. The only difference is a horizontal shift, or phase shift. The cosine graph is identical to the sine graph shifted π/2 units to the left.

How does the unit circle relate to these graphs?

The graphs are essentially an 'unrolling' of the unit circle. As an angle x increases and you move counter-clockwise around the unit circle, the y-coordinate of your position traces the sine wave, and the x-coordinate traces the cosine wave.

Can the amplitude be negative?

By definition, amplitude is a distance, so it is always a non-negative value. The amplitude is |A|. The negative sign in front of A, if present, indicates a vertical reflection of the graph across its midline, but the amplitude itself is positive.

Why does the tangent graph have vertical asymptotes?

The tangent function is defined as tan(x)=sin(x)/cos(x). Vertical asymptotes occur at x-values where the denominator, cos(x), is equal to zero, as division by zero is undefined. This happens at x=π/2, 3π/2, and so on.

What are some real-world examples of trigonometric graphs?

Sinusoidal waves model many natural and man-made phenomena. Examples include sound waves, light waves, alternating current (AC) electricity, the rise and fall of ocean tides, the motion of a pendulum or a spring, and the modeling of average daily temperatures.

How do I find the equation of a function from its graph?

First, identify the shape (sine or cosine). Find the midline y=D and the amplitude |A|. Determine the period from the graph to calculate B. Finally, find the phase shift C by identifying the horizontal position of the starting point of a cycle.

Does it matter if I use degrees or radians?

While you can technically use either, radians are the standard unit for angles in pre-calculus and calculus because they simplify many formulas. It is crucial to be consistent; if the graph's x-axis is in radians (e.g., shows π), all your calculations must be in radians.

What is frequency and how does it relate to the period?

Frequency is the reciprocal of the period. It represents the number of cycles that occur in one unit of time (or distance). The formula is f=1/Period, which for sine/cosine is f=|B|/2π. A high frequency means a short period and a compressed graph.