PDA

View Full Version : How to sketch a function?


bubokribuck
Dec6-11, 09:44 AM
The function f(x) is periodic with period 2\pi and is defined by
f(x) = -cos(x) when -\pi<x<0
= cos(x) when 0<x<\pi

Sketch f from x=-3\pi to 3\pi.


My question is, when -\pi<x<0 and 0<x<\pi, how am I supposed to graph the function from -3\pi to 3\pi?
1. The problem statement, all variables and given/known data



2. Relevant equations



3. The attempt at a solution

eumyang
Dec6-11, 10:22 AM
Remember what was said in the beginning:
"The function f(x) is periodic with period 2π..." (emphasis mine)
You are shown how to graph f(x) from -π to π. Since f(x) is periodic, how would the graph of f(x) from π to 3π would look?

bubokribuck
Dec6-11, 11:07 AM
I have managed to come up with something (very roughly) like this:

http://i40.tinypic.com/k0h5op.jpg

Is this how it should be done?

ehild
Dec6-11, 11:12 AM
I have managed to come up with something (very roughly) like this:

http://i40.tinypic.com/k0h5op.jpg

Is this how it should be done?

Yes, it is correct.

ehild

bubokribuck
Dec6-11, 11:54 AM
Not sure if I've done something wrong. The question states that "The function f(x) is periodic with period 2π", but at the moment my graph looks like it's only with period 1π.

ehild
Dec6-11, 12:22 PM
If something is periodic with pi, it is also periodic with 2pi.:smile:

Check. Choose an x and see if you get the same f(x) as in the graph.

x=-pi/3 for example. f(-pi/3)=-cos(pi/3)=-1/2. If x=-2pi/3, cos(2pi/3)=-0.5, f(-2pi/3)=-cos(2pi/3)=0.5.



ehild