Graph of cosine: y = cos x
The cosine graph is the sine wave shifted a quarter period to the left. It starts at its highest point, (0, 1), falls to −1 at x = π and is back at 1 by x = 2π, repeating forever in both directions.
Key features
- Domain
- All real numbers
- Range
- −1 ≤ y ≤ 1
- Period
- 2π ≈ 6.2832
- Amplitude
- 1
- Zeros
- x = π/2 + nπ
- Maximum
- y = 1 at x = 2nπ
- Minimum
- y = −1 at x = π + 2nπ
- Symmetry
- Even: cos(−x) = cos x, so the graph is symmetric about the y-axis
- y-intercept
- None
- Derivative
- −sin(x)
- Antiderivative
- sin(x)+C
Derivative and antiderivative from the calculator’s algebra system. Domain, range and asymptotes are stated for real x.
What the graph of cos x looks like
From its peak at (0, 1), the graph falls through zero at x = π/2, bottoms out at (π, −1), climbs back through zero at x = 3π/2 and returns to the peak at (2π, 1). That is one period.
Cosine is an even function, so the left half of the graph is a mirror image of the right half across the y-axis. Its slope is −sin x: zero at the peaks and troughs, and steepest, at ±1, where the curve crosses the axis.
Each value of cos x is the horizontal coordinate of a point moving round the unit circle through an angle x, and sin x is its vertical coordinate. That is why cos²x + sin²x = 1 for every x, and why the two graphs are copies of each other shifted by π/2.
Points of interest
Found numerically to about twelve digits in the window −7 ≤ x ≤ 7, then shown in exact form where one exists.
- x-intercepts (roots)
- x = −4.7124, x = −1.5708, x = 1.5708, x = 4.7124
- Local maxima
- (−6.2832, 1), (0, 1), (6.2832, 1)
- Local minima
- (−3.1416, −1), (3.1416, −1)
- Inflection points
- (−3π/2, 0), (−π/2, 0), (π/2, 0), (3π/2, 0)
Table of values
A few points to plot, with exact values where they are simple.
| x | y = cos x |
|---|---|
| 0 | 1 |
| π/6 | √3/2 |
| π/4 | √2/2 |
| π/3 | 1/2 |
| π/2 | 0 |
| 2π/3 | −1/2 |
| π | −1 |
| 3π/2 | 0 |
| 2π | 1 |
How to graph cos x by hand
- 1Mark the x-axis in steps of π/2.
- 2Plot (0, 1), (π/2, 0), (π, −1), (3π/2, 0) and (2π, 1).
- 3Join them with a smooth wave, flat at the top and bottom and slanted where it crosses the axis.
- 4Mirror the shape to the left of the y-axis, since cos(−x) = cos x, and repeat it every 2π.
Transformations
How the graph moves when you change the formula. The original is cos x in blue.
y = 3cos(x)Amplitude 3: the range becomes −3 ≤ y ≤ 3.y = cos(x/2)Period 4π: the wave is stretched horizontally to twice its width.y = -cos(x) + 1Reflected in the x-axis, then shifted up by 1, so it runs between 0 and 2.
Common mistakes
- Starting the cosine graph at the origin. cos 0 = 1, so the graph crosses the y-axis at (0, 1).
- Forgetting that cos(bx) has period 2π/b: cos 2x repeats every π.
Where it shows up
- The horizontal position of a point on a rotating wheel, crank or Ferris wheel.
- Projections: the component of a vector v along a direction at angle θ is |v| cos θ, the basis of the dot product.
- Damped oscillations such as a car suspension settling, modelled by e^(−kt) cos(ωt).
Frequently asked questions
What is the period of cos x?
What is the range of the cosine function?
Where is cos x equal to zero?
Is cosine an even function?
How is the cosine graph related to the sine graph?
Related graphs
Period 2π, amplitude 1, zeros at every multiple of π.
1/cos x: U-shaped branches, never between −1 and 1.
Domain [−1, 1], range [0, π], always decreasing.
An odd, growing oscillation between y = ±x.
Period π, asymptotes at π/2 + nπ, always increasing.
The catenary: the shape of a hanging chain.
Change the window, add sliders for a, b, h and k, trace the curve with your keyboard, or overlay its derivative.