Students

Teachers & SchoolsStudents

Teachers & SchoolsStudy Guide

When a function has values that repeat and repeat over and over (like Macbeth and his obsession with tomorrow and tomorrow and . . .), it's a **periodic function**.

Newsflash: all the trig functions are periodic. Let's see what sine and cosine look like when we slap 'em onto a graph.

### Graphing Sine

First off, we're gonna throw some new terms at you. Hope you brought your catcher's mitt.Your basic sine function has a shape like this:

The

**period**of a trig function is the horizontal length of one complete cycle. For example, the graph above starts repeating its shape after 2π units on the*x*-axis, so it's got a period of 2π.In general, for

*y*=*a*sin(*bx*)*,*the period isA function's

**midline**is pretty much exactly what it sounds like: a horizontal line running through the "middle" of our trig function. It'll be smack in-between the graph's maximum and minimum values. Since it's a horizontal line, it'll always look like*y*= (something).For functions of the form

*y*=*a*sin(*bx*) like the graph above, the midline is always just the*x*-axis, a.k.a. the line*y*= 0. We'll see what happens when that line slides around a bit later on.The

**amplitude**of a trig function is its "height," or the vertical distance between the midline and the maximum or minimum value. It's basically how tall the "waves" of the function get. The graph above has its peaks at*y*= 1 and*y*= -1, so its amplitude is just 1.In general, for

*y*=*a*sin(*bx*), the amplitude is |*a*|. It's also important to note that if*a*< 0, the graph is flipped (inverted).Talk is cheap, so now let's see these in action.

### Sample Problem

What does the graph of

*y*= sin*x*look like?The

**amplitude**(maximum value) of*y*= sin*x*is |1| = 1. The**period**(the time it takes for one full cycle) of*y*= sin*x*is^{2π}⁄_{1}= 2π. The**midline**of*y*= sin*x*is the*x*-axis. Let's graph*y*= sin*x.*Just like with any graph, it helps to make a chart of

*x*- and*y*-values. Include five key angles using the period 2π, and five key points obtained from those angles.Plotting

*x*versus*y*gives us:### Sample Problem

Graph

*y*= 3 sin*x.*This time, our amplitude is |3| = 3. Our period is still

^{2π}⁄_{1}= 2π, and our midline is still*y*= 0.Let's make our table.

We apply the period 2π to the five key angles, and the amplitude 3 to the five key points.

Plot your points.

### Sample Problem

State the amplitude and period of

*y*= 4 sin*x.*Then graph the function.From

*y*=*a*sin(*bx*), we get an amplitude of |4| = 4, and a period of^{2π}⁄_{1}= 2π.Now graph it.

Start with the table.

When we graph this, we'll just follow the same pattern to extend the graph to 2π.

So far, all the graphs we've looked at have had the

*x*-axis as their midline. We've been tossing softballs at ya. Sometimes, in the big leagues, graphs are**translated**, or moved up or down from the*x*-axis.In general, for

*y*=*k*+ sin*x*, the graph shifts up by*k*units when*k*> 0 and shifts down by*k*units when*k*< 0.### Sample Problem

Graph

*y*= 3 + sin*x.*The period is 2π, and the amplitude is 1.

We apply the shift (vertical translation) of 3 to our key points.

Now, graph the function from 0 to 2π.

This time, our midline is at

*y*= 3. It shifted upward 3 units because we added*k*= 3 to the regular old sine function.### Graphing Cosine

The cosine function looks and acts a lot like its buddy, the sine function.For the cosine function

*y*=*a*cos(*bx*), the**period**(time it takes for one full cycle) is Same as the sine.The

**midline**of*y*=*a*cos(*bx*) is always*y*= 0, just like the sine. It can shift up or down when we add a constant, but we'll save that for later on this page.The

**amplitude**(vertical distance between the midline and the "peaks") of*y*=*a*cos(*bx*) is |*a*|. If*a*< 0, the graph is flipped (inverted). Again, same deal as the sine.Sheesh, what a copycat.

### Sample Problem

Graph

*y*= cos*x.*The amplitude of

*y*= cos*x*is 1, the period is 2π, and the midline is just the*x*-axis.Let's make our chart for

*y*= cos*x.*Plotting

*x*versus*y*gives us this beauty:### Sample Problem

State the amplitude and period of

*y*= 3cos(2*x*). Then graph the function.Just compare it to

*y*=*a*cos(*bx*) and start pluggin' stuff in.amplitude = |

*a*| = 3This time, our graph is gonna complete one full cycle in π units instead of 2π units. In other words, it'll be more smooshed together.

Now graph it. Start with the table.

This time, we'll find our five key angles using the period π and our five key points using the amplitude 3.

When we graph this, we'll just follow the same pattern to extend the graph to 2π.

So far, all the cosine graphs we've looked at had the

*x*-axis as their midline. (This gives us another axis to grind.)Like sine graphs, cosine graphs can be shifted up or down from the

*x*-axis.In general, for

*y*=*k*+ cos*x*, the graph shifts up by*k*units when*k*> 0 and shifts down by*k*units when*k*< 0.### Sample Problem

Graph

*y*= 3 + cos*x.*The period is 2π and the amplitude is 1.

We apply the shift (vertical translation) of 3 to our key points.

Now, graph the function from 0 to 2π.

The midline for this guy is at

*y*= 3.