VR79RWFruBs

Graphs of Sine, Cosine and Tangent

A sine wave made by a circle:

images/circle-sine.js

A sine wave produced naturally by a bouncing spring:

../physics/images/spring.js

Graph of Sine

Sine wave graph from 0 to 2π showing a full cycle starting at the origin

The sine function has this beautiful up-down curve (which repeats every 2π radians, or 360°).

It starts at 0, heads up to 1 by π/2 radians (90°) and then heads down to −1.

Graph of Cosine

Cosine wave graph from 0 to 2π starting at peak value 1

Cosine is just like sine, but it starts at 1 and heads down until π radians (180°) and then heads up again.

Graph of Sine and Cosine

Sine and cosine waves plotted together showing the 90 degree horizontal shift

In fact sine and cosine are like good friends: they follow each other, exactly π/2 radians (90°) apart.

Graph of the Tangent Function

Tangent function graph showing repeating curves and vertical asymptotes

The tangent function has a completely different shape:

Halfway between those zero points (such as at π/2 radians (90°) the function is officially undefined.

Why undefined? because it could be positive infinity or negative infinity!

Inverse Sine, Cosine and Tangent

The Inverse Sine, Cosine and Tangent graphs are:

Inverse sine graph restricted to the range -π/2 to π/2
Inverse Sine
Inverse cosine graph restricted to the range 0 to π
Inverse Cosine
Inverse tangent graph with horizontal asymptotes at -π/2 and π/2
Inverse Tangent

Mirror Images

Here's cosine and inverse cosine plotted on the same graph:

Cosine and inverse cosine graphs reflected across the diagonal line y=x
Cosine and Inverse Cosine

They are mirror images (about the diagonal)!

The same is true for sine and inverse sine and for tangent and inverse tangent.