# 6.1 Graphs of the sine and cosine functions  (Page 5/13)

 Page 5 / 13

Write a formula for the function graphed in [link] .

two possibilities: $\text{\hspace{0.17em}}y=4\mathrm{sin}\left(\frac{\pi }{5}x-\frac{\pi }{5}\right)+4\text{\hspace{0.17em}}$ or $\text{\hspace{0.17em}}y=-4\mathrm{sin}\left(\frac{\pi }{5}x+\frac{4\pi }{5}\right)+4$

## Graphing variations of y = sin x And y = cos x

Throughout this section, we have learned about types of variations of sine and cosine functions and used that information to write equations from graphs. Now we can use the same information to create graphs from equations.

Instead of focusing on the general form equations

we will let $\text{\hspace{0.17em}}C=0\text{\hspace{0.17em}}$ and $\text{\hspace{0.17em}}D=0\text{\hspace{0.17em}}$ and work with a simplified form of the equations in the following examples.

Given the function $\text{\hspace{0.17em}}y=A\mathrm{sin}\left(Bx\right),\text{\hspace{0.17em}}$ sketch its graph.

1. Identify the amplitude, $\text{\hspace{0.17em}}|A|.$
2. Identify the period, $\text{\hspace{0.17em}}P=\frac{2\pi }{|B|}.$
3. Start at the origin, with the function increasing to the right if $\text{\hspace{0.17em}}A\text{\hspace{0.17em}}$ is positive or decreasing if $\text{\hspace{0.17em}}A\text{\hspace{0.17em}}$ is negative.
4. At $\text{\hspace{0.17em}}x=\frac{\pi }{2|B|}\text{\hspace{0.17em}}$ there is a local maximum for $\text{\hspace{0.17em}}A>0\text{\hspace{0.17em}}$ or a minimum for $\text{\hspace{0.17em}}A<0,\text{\hspace{0.17em}}$ with $\text{\hspace{0.17em}}y=A.$
5. The curve returns to the x -axis at $\text{\hspace{0.17em}}x=\frac{\pi }{|B|}.$
6. There is a local minimum for $\text{\hspace{0.17em}}A>0\text{\hspace{0.17em}}$ (maximum for $\text{\hspace{0.17em}}A<0$ ) at $\text{\hspace{0.17em}}x=\frac{3\pi }{2|B|}\text{\hspace{0.17em}}$ with $\text{\hspace{0.17em}}y=–A.$
7. The curve returns again to the x -axis at $\text{\hspace{0.17em}}x=\frac{\pi }{2|B|}.$

## Graphing a function and identifying the amplitude and period

Sketch a graph of $\text{\hspace{0.17em}}f\left(x\right)=-2\mathrm{sin}\left(\frac{\pi x}{2}\right).$

Let’s begin by comparing the equation to the form $\text{\hspace{0.17em}}y=A\mathrm{sin}\left(Bx\right).$

• Step 1. We can see from the equation that $\text{\hspace{0.17em}}A=-2,$ so the amplitude is 2.
$|A|=2$
• Step 2. The equation shows that $\text{\hspace{0.17em}}B=\frac{\pi }{2},\text{\hspace{0.17em}}$ so the period is
• Step 3. Because $\text{\hspace{0.17em}}A\text{\hspace{0.17em}}$ is negative, the graph descends as we move to the right of the origin.
• Step 4–7. The x -intercepts are at the beginning of one period, $\text{\hspace{0.17em}}x=0,\text{\hspace{0.17em}}$ the horizontal midpoints are at $\text{\hspace{0.17em}}x=2\text{\hspace{0.17em}}$ and at the end of one period at $\text{\hspace{0.17em}}x=4.$

The quarter points include the minimum at $\text{\hspace{0.17em}}x=1\text{\hspace{0.17em}}$ and the maximum at $\text{\hspace{0.17em}}x=3.\text{\hspace{0.17em}}$ A local minimum will occur 2 units below the midline, at $\text{\hspace{0.17em}}x=1,\text{\hspace{0.17em}}$ and a local maximum will occur at 2 units above the midline, at $\text{\hspace{0.17em}}x=3.\text{\hspace{0.17em}}$ [link] shows the graph of the function.

Sketch a graph of $\text{\hspace{0.17em}}g\left(x\right)=-0.8\mathrm{cos}\left(2x\right).\text{\hspace{0.17em}}$ Determine the midline, amplitude, period, and phase shift. midline: $\text{\hspace{0.17em}}y=0;\text{\hspace{0.17em}}$ amplitude: $\text{\hspace{0.17em}}|A|=0.8;\text{\hspace{0.17em}}$ period: $\text{\hspace{0.17em}}P=\frac{2\pi }{|B|}=\pi ;\text{\hspace{0.17em}}$ phase shift: $\text{\hspace{0.17em}}\frac{C}{B}=0\text{\hspace{0.17em}}$ or none

Given a sinusoidal function with a phase shift and a vertical shift, sketch its graph.

1. Express the function in the general form
2. Identify the amplitude, $\text{\hspace{0.17em}}|A|.$
3. Identify the period, $\text{\hspace{0.17em}}P=\frac{2\pi }{|B|}.$
4. Identify the phase shift, $\text{\hspace{0.17em}}\frac{C}{B}.$
5. Draw the graph of $\text{\hspace{0.17em}}f\left(x\right)=A\mathrm{sin}\left(Bx\right)\text{\hspace{0.17em}}$ shifted to the right or left by $\text{\hspace{0.17em}}\frac{C}{B}\text{\hspace{0.17em}}$ and up or down by $\text{\hspace{0.17em}}D.$

## Graphing a transformed sinusoid

Sketch a graph of $\text{\hspace{0.17em}}f\left(x\right)=3\mathrm{sin}\left(\frac{\pi }{4}x-\frac{\pi }{4}\right).$

• Step 1. The function is already written in general form: $\text{\hspace{0.17em}}f\left(x\right)=3\mathrm{sin}\left(\frac{\pi }{4}x-\frac{\pi }{4}\right).$ This graph will have the shape of a sine function    , starting at the midline and increasing to the right.
• Step 2. $\text{\hspace{0.17em}}|A|=|3|=3.\text{\hspace{0.17em}}$ The amplitude is 3.
• Step 3. Since $\text{\hspace{0.17em}}|B|=|\frac{\pi }{4}|=\frac{\pi }{4},\text{\hspace{0.17em}}$ we determine the period as follows.
$P=\frac{2\pi }{|B|}=\frac{2\pi }{\frac{\pi }{4}}=2\pi \cdot \frac{4}{\pi }=8$

The period is 8.

• Step 4. Since $\text{\hspace{0.17em}}C=\frac{\pi }{4},\text{\hspace{0.17em}}$ the phase shift is
$\frac{C}{B}=\frac{\frac{\pi }{4}}{\frac{\pi }{4}}=1.$

The phase shift is 1 unit.

• Step 5. [link] shows the graph of the function. A horizontally compressed, vertically stretched, and horizontally shifted sinusoid

Draw a graph of $\text{\hspace{0.17em}}g\left(x\right)=-2\mathrm{cos}\left(\frac{\pi }{3}x+\frac{\pi }{6}\right).\text{\hspace{0.17em}}$ Determine the midline, amplitude, period, and phase shift. midline: $\text{\hspace{0.17em}}y=0;\text{\hspace{0.17em}}$ amplitude: $\text{\hspace{0.17em}}|A|=2;\text{\hspace{0.17em}}$ period: $\text{\hspace{0.17em}}P=\frac{2\pi }{|B|}=6;\text{\hspace{0.17em}}$ phase shift: $\text{\hspace{0.17em}}\frac{C}{B}=-\frac{1}{2}$

#### Questions & Answers

I've run into this: x = r*cos(angle1 + angle2) Which expands to: x = r(cos(angle1)*cos(angle2) - sin(angle1)*sin(angle2)) The r value confuses me here, because distributing it makes: (r*cos(angle2))(cos(angle1) - (r*sin(angle2))(sin(angle1)) How does this make sense? Why does the r distribute once
Carlos Reply
How can you tell what type of parent function a graph is ?
Mary Reply
generally by how the graph looks and understanding what the base parent functions look like and perform on a graph
William
if you have a graphed line, you can have an idea by how the directions of the line turns, i.e. negative, positive, zero
William
y=x will obviously be a straight line with a zero slope
William
y=x^2 will have a parabolic line opening to positive infinity on both sides of the y axis vice versa with y=-x^2 you'll have both ends of the parabolic line pointing downward heading to negative infinity on both sides of the y axis
William
y=x will be a straight line, but it will have a slope of one. Remember, if y=1 then x=1, so for every unit you rise you move over positively one unit. To get a straight line with a slope of 0, set y=1 or any integer.
Aaron
yes, correction on my end, I meant slope of 1 instead of slope of 0
William
what is f(x)=
Karim Reply
I don't understand
Joe
Typically a function 'f' will take 'x' as input, and produce 'y' as output. As 'f(x)=y'. According to Google, "The range of a function is the complete set of all possible resulting values of the dependent variable (y, usually), after we have substituted the domain."
Thomas
Sorry, I don't know where the "Â"s came from. They shouldn't be there. Just ignore them. :-)
Thomas
GREAT ANSWER THOUGH!!!
Darius
Thanks.
Thomas
Â
Thomas
It is the Â that should not be there. It doesn't seem to show if encloses in quotation marks. "Â" or 'Â' ... Â
Thomas
Now it shows, go figure?
Thomas
what is this?
unknown Reply
i do not understand anything
unknown
lol...it gets better
Darius
I've been struggling so much through all of this. my final is in four weeks 😭
Tiffany
this book is an excellent resource! have you guys ever looked at the online tutoring? there's one that is called "That Tutor Guy" and he goes over a lot of the concepts
Darius
thank you I have heard of him. I should check him out.
Tiffany
is there any question in particular?
Joe
I have always struggled with math. I get lost really easy, if you have any advice for that, it would help tremendously.
Tiffany
Sure, are you in high school or college?
Darius
Hi, apologies for the delayed response. I'm in college.
Tiffany
how to solve polynomial using a calculator
Ef Reply
So a horizontal compression by factor of 1/2 is the same as a horizontal stretch by a factor of 2, right?
KARMEL Reply
The center is at (3,4) a focus is at (3,-1), and the lenght of the major axis is 26
Rima Reply
The center is at (3,4) a focus is at (3,-1) and the lenght of the major axis is 26 what will be the answer?
Rima
I done know
Joe
What kind of answer is that😑?
Rima
I had just woken up when i got this message
Joe
Can you please help me. Tomorrow is the deadline of my assignment then I don't know how to solve that
Rima
i have a question.
Abdul
how do you find the real and complex roots of a polynomial?
Abdul
@abdul with delta maybe which is b(square)-4ac=result then the 1st root -b-radical delta over 2a and the 2nd root -b+radical delta over 2a. I am not sure if this was your question but check it up
Nare
This is the actual question: Find all roots(real and complex) of the polynomial f(x)=6x^3 + x^2 - 4x + 1
Abdul
@Nare please let me know if you can solve it.
Abdul
I have a question
juweeriya
hello guys I'm new here? will you happy with me
mustapha
The average annual population increase of a pack of wolves is 25.
Brittany Reply
how do you find the period of a sine graph
Imani Reply
Period =2π if there is a coefficient (b), just divide the coefficient by 2π to get the new period
Am
if not then how would I find it from a graph
Imani
by looking at the graph, find the distance between two consecutive maximum points (the highest points of the wave). so if the top of one wave is at point A (1,2) and the next top of the wave is at point B (6,2), then the period is 5, the difference of the x-coordinates.
Am
you could also do it with two consecutive minimum points or x-intercepts
Am
I will try that thank u
Imani
Case of Equilateral Hyperbola
Jhon Reply
ok
Zander
ok
Shella
f(x)=4x+2, find f(3)
Benetta
f(3)=4(3)+2 f(3)=14
lamoussa
14
Vedant
pre calc teacher: "Plug in Plug in...smell's good" f(x)=14
Devante
8x=40
Chris
Explain why log a x is not defined for a < 0
Baptiste Reply
the sum of any two linear polynomial is what
Esther Reply
divide simplify each answer 3/2÷5/4
Momo Reply
divide simplify each answer 25/3÷5/12
Momo
how can are find the domain and range of a relations
austin Reply
the range is twice of the natural number which is the domain
Morolake
A cell phone company offers two plans for minutes. Plan A: $15 per month and$2 for every 300 texts. Plan B: $25 per month and$0.50 for every 100 texts. How many texts would you need to send per month for plan B to save you money?
Diddy Reply
6000
Robert
more than 6000
Robert
For Plan A to reach $27/month to surpass Plan B's$26.50 monthly payment, you'll need 3,000 texts which will cost an additional \$10.00. So, for the amount of texts you need to send would need to range between 1-100 texts for the 100th increment, times that by 3 for the additional amount of texts...
Gilbert
...for one text payment for 300 for Plan A. So, that means Plan A; in my opinion is for people with text messaging abilities that their fingers burn the monitor for the cell phone. While Plan B would be for loners that doesn't need their fingers to due the talking; but those texts mean more then...
Gilbert

### Read also:

#### Get the best Precalculus course in your pocket!

Source:  OpenStax, Precalculus. OpenStax CNX. Jan 19, 2016 Download for free at https://legacy.cnx.org/content/col11667/1.6
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Precalculus' conversation and receive update notifications? By By By By  By By By By By Mariah Hauptman By By