Skip to main content

Math Trailhead

Section What A, w, T, and C do

In \(f(x)=A\cos(wx+T)+C\text{,}\) call the angle inside cosine \(\theta=wx+T\text{.}\) Starting with an input \(x\text{,}\) first compute this angle, then read its horizontal coordinate on the unit circle, then multiply that coordinate by \(A\text{,}\) and finally add \(C\) to the result. The parameter \(w\) is often written as the Greek letter \(\omega\text{.}\) We use \(P\) for the period: \(T\) here is an angle, not the period.

A controls vertical size and reflection.

Multiplying cosine by \(A\) multiplies its output by \(A\text{.}\) First take \(C=0\text{.}\) Then \(3\cos x\) ranges from \(-3\) to \(3\text{,}\) and \(\tfrac12\cos x\) ranges from \(-1/2\) to \(1/2\text{.}\) A negative \(A\) also reflects the graph across the horizontal axis: \(-3\cos x\) begins at \(-3\) rather than \(3\text{.}\) Amplitude is a distance, so it is \(|A|\text{,}\) never negative. With any \(C\text{,}\) the displacement from the midline is \(f(x)-C=A\cos(wx+T)\text{.}\) Changing the sign of \(A\) reflects the wave across its midline \(y=C\text{.}\)

Checkpoint 78. Read amplitude from a graph.

Does this graph have the shape of \(\sin(x)\) or \(\cos(x)\text{?}\)
What is the amplitude of the graphed function?
State the formula for the function that is graphed above. \(y =\)
Hint.
Do you recall the difference between the graphs of sine and cosine?\(\sin(x)\) passes through the origin, and \(\cos(x)\) does not.
Amplitude is used to describe the height of the wave.How high does this wave get?
Remember that the formula for a sine or cosine wave looks like:\(y = A \sin(x)\) or \(y = A \cos(x)\)
where \(A\) represents the amplitude.
Answer 1.
\(\sin\mathopen{}\left(x\right)\)
Answer 2.
Answer 3.
\(5\sin\mathopen{}\left(x\right)\)
Solution.
We can tell that this is a graph of \(\sin(x)\) because we pass through the origin.
Our amplitude must be \(5\) because our graph extends up to \(5\) and down to \(-5\) on the \(y\)-axis.
Therefore, our formula for this graph is \(y={5\sin\mathopen{}\left(x\right)}\text{.}\)

Checkpoint 79. Match amplitudes and reflections.

Practice
Match the equations given below with their corresponding graphs:
Answer 1.
\(\text{E}\)
Answer 2.
\(\text{A}\)
Answer 3.
\(\text{C}\)
Answer 4.
\(\text{D}\)
Solution.
  1. \(y = {2\cos\mathopen{}\left(x\right)}\) is the graph of cosine with positive coefficient and amplitude 2; this corresponds to graph E.
  2. \(y = {5\sin\mathopen{}\left(x\right)}\) is the graph of sine with positive coefficient and amplitude 5; this corresponds to graph A.
  3. \(y = {-2\sin\mathopen{}\left(x\right)}\) is the graph of sine with negative coefficient (so it is the vertically-reflected, or ’upside-down’, version of sine) and amplitude 2; this corresponds to graph C.
  4. \(y = {2\sin\mathopen{}\left(x\right)}\) is the graph of sine with positive coefficient and amplitude 2; this corresponds to graph D.

w controls how quickly the angle changes.

Increasing \(x\) by \(\Delta x\) changes the angle by \(w\Delta x\text{.}\) A complete turn requires an angular change of size \(2\pi\text{.}\) For \(A\ne0\) and \(w\ne0\text{,}\)
\begin{equation*} |w|P=2\pi,\qquad \boxed{P=\frac{2\pi}{|w|}.} \end{equation*}
For example, \(\cos(2x)\) makes a full turn while \(x\) increases by only \(\pi\text{;}\) its graph is horizontally compressed. The graph of \(\cos(x/2)\) needs \(4\pi\) units for a turn and is horizontally stretched. Larger \(|w|\) means a shorter period.
If \(w<0\text{,}\) the angle decreases as \(x\) increases, so the point travels clockwise. The period still uses \(|w|\text{.}\) Reflecting the circle across the horizontal axis shows \(\cos(-\theta)=\cos\theta\text{,}\) so \(\cos(-2x)=\cos(2x)\text{.}\) With a nonzero phase angle, keep track of that sign too: \(\cos(-2x+T)=\cos(2x-T)\text{.}\)

Checkpoint 80. Match graphs by their periods.

Practice
Match the equations given below with their corresponding graphs:
Answer 1.
\(\text{A}\)
Answer 2.
\(\text{F}\)
Answer 3.
\(\text{C}\)
Answer 4.
\(\text{D}\)
Solution.
  1. \(y = {\sin\mathopen{}\left(3x\right)}\) is the graph of \(\sin(\theta)\) with \(\theta = {3x}\text{;}\)
    A complete oscillation (period) for sine happens at \(\theta = 2\pi\text{,}\) which corresponds to \({3x} = 2\pi\) (or \(x = {\frac{2\pi }{3}}\));
    With a period of \({\frac{2\pi }{3}}\text{,}\) we get \({3}\) oscillations between \(0\) and \(2\pi\text{;}\) this corresponds to graph A.
  2. \(y = {\cos\mathopen{}\left(\frac{x}{2}\right)}\) is the graph of \(\cos(\theta)\) with \(\theta = {\frac{x}{2}}\text{;}\)
    A complete oscillation (period) for cosine happens at \(\theta = 2\pi\text{,}\) which corresponds to \({\frac{x}{2}} = 2\pi\) (or \(x = {4\pi }\));
    With a period of \({4\pi }\text{,}\) we get \({\frac{1}{2}}\) an oscillation between \(0\) and \(2\pi\text{;}\) this corresponds to graph F.
  3. \(y = {\sin\mathopen{}\left(4x\right)}\) is the graph of \(\sin(\theta)\) with \(\theta = {4x}\text{;}\)
    A complete oscillation (period) for sine happens at \(\theta = 2\pi\text{,}\) which corresponds to \({4x} = 2\pi\) (or \(x = {\frac{\pi }{2}}\));
    With a period of \({\frac{\pi }{2}}\text{,}\) we get \({4}\) oscillations between \(0\) and \(2\pi\text{;}\) this corresponds to graph C.
  4. \(y = {\cos\mathopen{}\left(3x\right)}\) is the graph of \(\cos(\theta)\) with \(\theta = {3x}\text{;}\)
    A complete oscillation (period) for cosine happens at \(\theta = 2\pi\text{,}\) which corresponds to \({3x} = 2\pi\) (or \(x = {\frac{2\pi }{3}}\));
    With a period of \({\frac{2\pi }{3}}\text{,}\) we get \({3}\) oscillations between \(0\) and \(2\pi\text{;}\) this corresponds to graph D.

T controls the starting angle.

At \(x=0\text{,}\) the angle is \(T\text{,}\) so \(f(0)=A\cos T+C\text{.}\) To locate the horizontal shift, factor out \(w\text{:}\)
\begin{equation*} w x+T=w\left(x+\frac{T}{w}\right)=w(x-h), \qquad \boxed{h=-\frac{T}{w}.} \end{equation*}
The graph of \(A\cos(w(x-h))+C\) is the graph of \(A\cos(wx)+C\) shifted right by \(h\) if \(h>0\text{,}\) or left by \(|h|\) if \(h<0\text{.}\) Equivalently, solve \(w x+T=0\) to find where the original angle-zero point has moved.
For example, \(\cos(2x+\pi/2)=\cos(2(x+\pi/4))\) shifts \(\cos(2x)\) left by \(\pi/4\text{,}\) not \(\pi/2\text{.}\) The plus sign describes a head start around the circle. The graph reaches a given angle earlier, which explains the shift to the left when \(w>0\text{.}\)
Changing \(T\) does not change amplitude or period. Adding \(2\pi k\) to \(T\text{,}\) for any integer \(k\text{,}\) gives the same function; horizontal shifts that differ by whole periods are equivalent. If you change \(w\) while keeping \(T\) fixed, both the period and the shift \(-T/w\) generally change.

C controls vertical displacement.

The \(+C\) sits outside cosine, so it adds the same amount to every output. If \(C>0\text{,}\) the graph moves up by \(C\text{;}\) if \(C<0\text{,}\) it moves down by \(|C|\text{.}\) The midline becomes \(y=C\text{.}\) Taking \(C=0\) gives a wave centered on the horizontal axis.
For a nonconstant wave,
\begin{equation*} \boxed{\text{maximum}=C+|A|,\qquad \text{minimum}=C-|A|.} \end{equation*}
For example, \(2\cos(3x)+4\) has midline \(y=4\) and range \([2,6]\text{.}\) Its amplitude is still \(2\text{,}\) and its period is still \(2\pi/3\text{.}\) The graph of \(\cos x-4\) has midline \(y=-4\) and range \([-5,-3]\text{.}\)
Changing \(C\) leaves amplitude, period, and horizontal shift unchanged. Keep the two additions separate: \(T\) is added to the angle inside cosine and changes the horizontal shift; \(C\) is added to the output outside cosine and changes the vertical position. In particular, the maximum height is not necessarily the amplitude.
Table 81. The nonconstant family at a glance
Feature \(A\cos(wx+T)+C\text{,}\) with \(A,w\ne0\)
Amplitude \(|A|\)
Midline and range \(y=C\text{;}\) \([C-|A|,C+|A|]\)
Period \(P=2\pi/|w|\)
Horizontal shift \(h=-T/w\)
Value at zero \(A\cos T+C\)
Two exceptions deserve their own check: if \(A=0\text{,}\) then \(f(x)=C\text{;}\) if \(w=0\text{,}\) then \(f(x)=A\cos T+C\) is constant. Constant functions have no smallest positive period. In particular, do not divide by \(w\) when \(w=0\text{.}\)

Checkpoint 82. Read the inside and outside carefully.

For \(g(x)=-2\cos(3x-\pi)+5\text{,}\) find the amplitude, period, horizontal shift, midline, range, and \(g(0)\text{.}\) Explain why its amplitude is not negative, its horizontal shift is not \(\pi\text{,}\) and the \(+5\) does not change the period.
Solution.
The amplitude is \(2\text{,}\) the period is \(2\pi/3\text{,}\) and \(3x-\pi=3(x-\pi/3)\) gives a shift right by \(\pi/3\text{.}\) The midline is \(y=5\text{,}\) the range is \([3,7]\text{,}\) and \(g(0)=-2\cos(-\pi)+5=7\text{.}\) The minus sign reflects the graph across its midline; amplitude is a positive distance. The phase angle must be divided by the coefficient of \(x\) to find the horizontal shift. Adding \(5\) changes heights, not the rate at which the angle changes.

Checkpoint 83. Write equations for shifted cosine graphs.

Practice
Enter an equation for each graph:
Graph A: \(y =\)
Graph B: \(y =\)
Graph C: \(y =\)
Graph D: \(y =\)
Graph E: \(y =\)
Graph F: \(y =\)
Answer 1.
\(\cos\mathopen{}\left(x+\frac{\pi }{3}\right)\)
Answer 2.
\(\cos\mathopen{}\left(x-\frac{\pi }{4}\right)\)
Answer 3.
\(\cos\mathopen{}\left(x-\frac{\pi }{6}\right)\)
Answer 4.
\(\cos\mathopen{}\left(x+\frac{\pi }{2}\right)\)
Answer 5.
\(\cos\mathopen{}\left(x-\frac{\pi }{3}\right)\)
Answer 6.
\(\cos\mathopen{}\left(x+\frac{5\pi }{6}\right)\)
Solution.
  1. Graph A is a cosine wave that has been shifted to the left;
    Looking at the grid lines, we see that the interval between 0 and \(\pi\) has been split into thirds, and our graph has been shifted left by one of those thirds.
    If we want an equation for the cosine wave that has been shifted left by one-thirds of \(\pi\text{,}\) we need to take \(y = \cos(x)\) and replace \(x\) by \(\left( {x+\frac{\pi }{3}} \right)\text{.}\)
    Therefore, our equation for Graph A is \(y = {\cos\mathopen{}\left(x+\frac{\pi }{3}\right)}\text{.}\)
  2. Graph B is a cosine wave that has been shifted to the right;
    Looking at the grid lines, we see that the interval between 0 and \(\pi\) has been split into quarters, and our graph has been shifted right by one of those quarters.
    If we want an equation for the cosine wave that has been shifted right by one-quarters of \(\pi\text{,}\) we need to take \(y = \cos(x)\) and replace \(x\) by \(\left( {x-\frac{\pi }{4}} \right)\text{.}\)
    Therefore, our equation for Graph B is \(y = {\cos\mathopen{}\left(x-\frac{\pi }{4}\right)}\text{.}\)
  3. Graph C is a cosine wave that has been shifted to the right;
    Looking at the grid lines, we see that the interval between 0 and \(\pi\) has been split into sixths, and our graph has been shifted right by one of those sixths.
    If we want an equation for the cosine wave that has been shifted right by one-sixths of \(\pi\text{,}\) we need to take \(y = \cos(x)\) and replace \(x\) by \(\left( {x-\frac{\pi }{6}} \right)\text{.}\)
    Therefore, our equation for Graph C is \(y = {\cos\mathopen{}\left(x-\frac{\pi }{6}\right)}\text{.}\)
  4. Graph D is a cosine wave that has been shifted to the left;
    Looking at the grid lines, we see that the interval between 0 and \(\pi\) has been split into halves, and our graph has been shifted left by one of those halves.
    If we want an equation for the cosine wave that has been shifted left by one-halves of \(\pi\text{,}\) we need to take \(y = \cos(x)\) and replace \(x\) by \(\left( {x+\frac{\pi }{2}} \right)\text{.}\)
    Therefore, our equation for Graph D is \(y = {\cos\mathopen{}\left(x+\frac{\pi }{2}\right)}\text{.}\)
  5. Graph E is a cosine wave that has been shifted to the right;
    Looking at the grid lines, we see that the interval between 0 and \(\pi\) has been split into thirds, and our graph has been shifted right by one of those thirds.
    If we want an equation for the cosine wave that has been shifted right by one-thirds of \(\pi\text{,}\) we need to take \(y = \cos(x)\) and replace \(x\) by \(\left( {x-\frac{\pi }{3}} \right)\text{.}\)
    Therefore, our equation for Graph E is \(y = {\cos\mathopen{}\left(x-\frac{\pi }{3}\right)}\text{.}\)
  6. Graph F is a cosine wave that has been shifted to the left;
    Looking at the grid lines, we see that the interval between 0 and \(\pi\) has been split into sixths, and our graph has been shifted left by five of those sixths.
    If we want an equation for the cosine wave that has been shifted left by five-sixths of \(\pi\text{,}\) we need to take \(y = \cos(x)\) and replace \(x\) by \(\left( {x+\frac{5\pi }{6}} \right)\text{.}\)
    Therefore, our equation for Graph F is \(y = {\cos\mathopen{}\left(x+\frac{5\pi }{6}\right)}\text{.}\)