y=cosx is the x-coordinate of the point at angle x, measured in radians, on the unit circle1. Where the sine gives the height of that point, the cosine gives its horizontal position. The graph is the same wave as the sine, only shifted.
Domain and range
The domain is all real numbers and the range is the interval [−1,1].
The domain is all real numbers
The range is −1≤y≤1
The amplitude is 1 and the period is 2π
The maximum 1 falls at x=2nπ and the minimum −1 at x=(2n+1)π
Periodicity
Since cos(x+2π)=cosx, the period is 2π.
Symmetry
Since cos(−x)=cosx, it is an even function, symmetric about the y-axis. This is the sharpest difference from the sine, which is odd.
Monotonicity and extrema
The derivative is y′=−sinx. The function attains its maximum 1 at x=2nπ and its minimum −1 at x=(2n+1)π. In particular it starts at a crest, since cos0=1.
The second derivative y′′=−cosx changes sign at each zero, so the inflection points sit at x=2π+nπ and coincide with the zeros.
Notable values
x
cosx
0
1
6π
23
4π
22
3π
21
2π
0
π
−1
The zeros are the solutions of cosx=0, namely x=2π+nπ.
Approximation near the origin
The tangent at (0,1) is horizontal, and near that crest a downward parabola approximates the curve closely.
cosx≈1−2x2
The Taylor series has only even powers and converges for every real number.
cosx=1−2!x2+4!x4−⋯
Comparison with the sine
Item
y=sinx
y=cosx
Value at x=0
0
1
Symmetry
odd
even
Where the maximum falls
2π+2nπ
2nπ
Zeros
nπ
2π+nπ
Derivative
cosx
−sinx
Since cosx=sin(x+2π), the cosine is the sine wave shifted left by 2π. The points where cosx=0 fix the positions of the vertical asymptotes of tanx and secx. In Euler's formula eix=cosx+isinx, the cosine supplies the real part.
Tying angles to lengths
The cosine links angles with lengths, as in the dot product and the law of cosines2.
a⋅bc2=∣a∣∣b∣cosθ=a2+b2−2abcosC
Applications
Computing the angle between two vectors
The law of cosines in solving triangles
The power factor of alternating current
The cosine components of a Fourier expansion
As a wave it is identical to the sine, but because it peaks at x=0 it is the natural reference for phase.