Archive

Graphing sine and cosine functions like a pro

No Comments

 

When graphing a sine or cosine curve, the first thing you must do is determine the amplitude, period, phase shift and vertical shift. See my previous post (Graphing Sine and Cosine Functions – Intro) if you need help with this analysis. In this post, we will graph the function

\displaystyle f(x) = -3 \sin (2x + \frac{\pi}{2}) -1

We quickly determine the four values we need:

Amplitude = |-3| = 3

Period = 2 \pi /2 = \pi

Phase shift = -(\pi /2)/2 = - \pi/4  (that is, \pi /4 units to the left)

Vertical shift = -1

 

This is all the information we need in order to complete the graph. Just follow this procedure step-by-step.

 1. Put values on the coordinate axes. On the y-axis, you typically make each square equal to one unit, but you can change this if you want. To determine the scale on the x-axis, take the period and divide by 4. This will be the scale on the x-axis. In our example, the period is \pi , so each square will be \pi /4 . The vertical axis will be one unit per square. What do you do if your teacher gives you a grid with the numbers already in place? You should get a blank piece of graph paper and do your own grid!
 2. Use the vertical shift to draw a dashed line across the figure. This is the location of the midline of your graph. In our example, the vertical shift is -1, so we draw a dashed line at y= -1.
 3. Use the amplitude to draw two more dashed lines—one above the midline and one below. These represent the maximum and minimum values of your function. In our example, the amplitude is 3. Three units above -1 is 2—that’s our maximum dashed line. Three units below -1 is -4—that’s where our minimum is located.
 4. Plot the starting point of your graph, using the vertical shift and phase shift as a guide. Our function is a sine curve, which starts at the midline. The phase shift is \pi /4  to the left, so our initial point is \pi /4  units left of the y-axis. If our function had been a cosine curve, our initial point would be plotted on the maximum line instead of the midline (or on the minimum line if A is negative). It’s hard to see, but note that I’ve placed a green dot at the “start” point; the coordinates are ( - \pi /4, -1).
 5. Moving one square to the right at a time (because each square is one quarter of a period), plot points at the maximum, midline, minimum and midline. This is one period of your function. If you want to graph more than one period, continue the process. In our example, we’ve plotted points for two complete periods. Note that because A is a negative number (-3), our first point after the starting point is at the minimum instead of the maximum. Look closely, and you will see that I’ve placed a green dot every square to the right of our first point.

 6. Connect the dots with a nice smooth curve. You’ve graphed the sine curve like a pro!

Graphing sine and cosine functions– an Intro

No Comments

 

One of the most complicated skills you need to learn in your trig class is how to graph sine and cosine functions. This scares a lot of students, but you can tame this process if you make one simple observation: Every sine and cosine curve has exactly the same shape! No matter the amplitude or period or phase shift, the curve looks just like this:

 

 

 

 

 

You only need to place the graph in its proper position on the coordinate axes. This is (mostly) easy to accomplish if you can remember only two things about the sine and cosine parent curves:

1)     The sine curve y = sin x “starts” at the origin and goes up to its maximum, while the cosine curve y = cos x “starts” at its maximum.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2)     For either curve, you can break one period into four equal intervals. At each interval, the curve moves from its midline to the maximum to the midline to the minimum to the midline to the maximum to… over and over again. So all you need to do is find the starting point, and plot the points on the curve at each ¼-period interval.

We will always write our functions in standard form:

f(x) = A \; sin(Bx+C) + D \; or \; f(x)= A \; cos(Bx+C) + D

(Note that some textbooks prefer to write the formula in a slightly different form:

f(x) = A \; sin(B(x+C)) + D \; or \; f(x)= A \; cos(B(x+C)) + D

We will discuss how that affects your work below.)

Each of the constants A, B, C & D affects the position of the curve and you need to analyze this before you graph the curve. Let’s look at each of them in turn:

A: The absolute value of this number tells you the amplitude of your curve.

B: The period of your curve is determined by dividing 2\pi by B.

C: The phase shift is found by dividing -C by B. A positive value means the phase shift is to the right. A negative value means the phase shift is to the left. (If your class uses the version of the equation above with the B factored out, then the phase shift is equal to C.)

D: The vertical shift is equal to D.

Here’s an example to show how you would calculate all these values.

\displaystyle f(x) = -3 \sin (2x + \frac{\pi}{2}) -1

Here, A = -3; B = 2; C = \pi/2 ; and D = -1. Therefore,

Amplitude = |-3| = 3

Period = 2 \pi /2 = \pi

Phase shift = - (\pi /2)/2 = - \pi /4  (that is, \pi /4 units to the left)

Vertical shift = -1

When you need to graph a sine or cosine curve, always determine these four values first. Then you are ready to graph the function. We’ll do that in our next post.

Blue Taste Theme created by Jabox