# Difference between Cos and sin

1. Apr 26, 2005

### tiffney

Can anyone tell me the difference btween cos and sin, and tell me when creating waveform why the sin function creates a sawtooth appearance and the cos function does. Any help would be appreiciated. :!!) :!!)

2. Apr 26, 2005

### Data

Cosine is a phase shift of sine (and visa-versa). In other words,

$$\sin \theta = \cos \left(\theta - \frac{\pi}{2}\right)$$

just a translation to the right by $\pi / 2$.

3. Apr 26, 2005

### Icebreaker

Given a right triangle and a non-right angle, the sine of that angle is equal to the length of the side facing the angle over the length of the hypotenuse. The cosine of the said angle is equal to the length of the side adjacent to the angle over the length of the hypotenuse.

A cosine wave is simply a sine wave that is shifted to the right by pi/2.

It would be much easier to explain if I can draw pictures. Your best chance is to google it or to check out MathWorld (http://mathworld.wolfram.com).

4. Apr 26, 2005

### mathwonk

for a point on the unit circle, cos is the x coordinate and sin is the y coordinate. I.e. one is the shadow of the radius on the x axis and the other the shadow of the radius on the y axis. Due to the symmetry of the circle as you go around the length of the shadow of the radius on the x axis or on the y axis look essentially the same, just out of phase.

5. Apr 26, 2005

### BobG

And the y-axis is perpendicular (90 degrees; pi/2 radians) to the x-axis. Which is why:

6. Apr 29, 2005

### An Average Joe

The "difference" between cos(x) and sin(x) is |cos(x) - sin(x)|.

That was a joke.

Really.

7. Apr 30, 2005

### Staff: Mentor

Eh, what?

8. Apr 30, 2005

### JamesU

I suggest google, it's not the easiest thing to explain

9. Apr 30, 2005

### Data

several people have explained it here already :tongue:

10. Apr 30, 2005

### whozum

Not his sawtooth conjecture, which beats me.

11. Apr 30, 2005

### dextercioby

The only thing that connects sawteeth & sin/cos is Fourier series/transform...

Daniel.

12. Apr 30, 2005

### robphy

An important property of sin(x) and cos(x) is that
cos(x) is an "even function of x" [that is, cos(-x)=cos(x)] and
sin(x) is an "odd function of x" [that is, sin(-x)=-sin(x)].

13. Apr 30, 2005

### The Reverend BigBoa

I'm thinkin' something's missing here.

No cos or sin function, at least involving perhaps your basic constant coefficients, generates a sawtooth wave, does it? It should generate a sine wave and another wave 90 degrees out of phase. Perhaps his problem involves some Fourier or other transfoms as Dexter already suggested?