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.
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{.}\)
\(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.
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{,}\)
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{.}\)
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.
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 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.
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{.}\)
Checkpoint82.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.
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.
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{.}\)
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{.}\)
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{.}\)
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{.}\)
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{.}\)
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{.}\)