Graph of y = cos x (Cosine wave)

· How we calculate · Free, no sign-up

Quick answer

The graph of y = cos x is a smooth wave between −1 and 1 that repeats every 2π and starts at its maximum (0, 1). Domain: All real numbers (−∞, ∞); range: −1 ≤ y ≤ 1, i.e. [−1, 1]. x-intercept: x = π/2 + kπ (…, −π/2, π/2, 3π/2, …); y-intercept: y = 1.

Functiony = cos x
DomainAll real numbers (−∞, ∞)
Range−1 ≤ y ≤ 1, i.e. [−1, 1]
x-intercept(s)x = π/2 + kπ (…, −π/2, π/2, 3π/2, …)
y-intercepty = 1
Derivative−sin x
Graph of y = cos x for −2π ≤ x ≤ 2π−2π−3π/2−π−π/20π/2π3π/22π−1.5−1−0.500.511.5
Graph of y = cos x for −2π ≤ x ≤ 2π, −1.6 ≤ y ≤ 1.6. Dots mark intercepts.
Zoom, pan and trace y = cos x in the interactive grapher.Open the Graphing Calculator →

What the graph of y = cos x looks like

The cosine graph is the sine wave shifted π/2 to the left: cos x = sin(x + π/2). It starts at its peak (0, 1), crosses zero at π/2, reaches −1 at π and returns to 1 at 2π. It traces the horizontal coordinate of a point moving round the unit circle.

Cosine is even — cos(−x) = cos x — so the graph is a mirror image across the y-axis. Its derivative is −sin x, and together sine and cosine describe every simple oscillation, from pendulums to alternating current.

Key features of y = cos x

Key features of y = cos x
PropertyValue
Functiony = cos x (Cosine wave)
FamilyTrigonometric
DomainAll real numbers (−∞, ∞)
Range−1 ≤ y ≤ 1, i.e. [−1, 1]
x-intercept(s)x = π/2 + kπ (…, −π/2, π/2, 3π/2, …)
y-intercepty = 1
SymmetryEven — symmetric about the y-axis
AsymptotesNone
Period2π ≈ 6.2832
Increasing on[π + 2kπ, 2π + 2kπ]
Decreasing on[2kπ, π + 2kπ]
Key pointsMaximum 1 at x = 2kπ; minimum −1 at x = π + 2kπ
Derivative f′(x)−sin x
Antiderivative ∫ f(x) dxsin x + C

Symmetry: Even — symmetric about the y-axis. For example f(2) = −0.4161 and f(−2) = −0.4161 are equal, so the left half mirrors the right half. Intercepts: the graph meets the x-axis at x = π/2 + kπ (…, −π/2, π/2, 3π/2, …) and the y-axis at y = 1.

Table of values for y = cos x

Values of y = cos x
xy = cos xSlope f′(x)
−π−10
−π/201
−π/40.70710.7071
010
π/60.866−0.5
π/40.7071−0.7071
π/30.5−0.866
π/20−1
2π/3−0.5−0.866
3π/4−0.7071−0.7071
π−10
3π/201
2π10

How to sketch y = cos x by hand

Plot the points from the table — (−π, −1), (−π/2, 0), (−π/4, 0.7071), (0, 1), (π/6, 0.866), (π/4, 0.7071) — on axes running from about −2π to 2π horizontally. There are no asymptotes to draw. Then join the points with a smooth curve. As a check on the shape — increasing: [π + 2kπ, 2π + 2kπ]; decreasing: [2kπ, π + 2kπ].

Derivative, tangent line and area

The derivative of y = cos x is −sin x, which gives the slope of the curve at each point (the third column of the table). At x = 1 the curve is at height 0.5403 and its slope is f′(1) = −0.8415, so the tangent line there is y = −0.8415x + 1.3818.

The signed area under the curve from x = 0 to x = π/2 is 1, found using the antiderivative sin x + C.

Related graphs and transformations

Browse all graphs of common functions by family, or open the graphing calculator.

Frequently asked questions

What is the domain and range of y = cos x?

Domain: All real numbers (−∞, ∞). Range: −1 ≤ y ≤ 1, i.e. [−1, 1].

What are the intercepts of y = cos x?

x-intercept(s): x = π/2 + kπ (…, −π/2, π/2, 3π/2, …). y-intercept: y = 1.

What is the derivative of y = cos x?

f′(x) = −sin x. At x = 1 the curve is at height 0.5403 and its slope is f′(1) = −0.8415, so the tangent line there is y = −0.8415x + 1.3818.

Is y = cos x even, odd or neither?

Even — symmetric about the y-axis. For example f(2) = −0.4161 and f(−2) = −0.4161 are equal, so the left half mirrors the right half.

Does y = cos x have asymptotes?

None. The function is periodic with period 2π ≈ 6.2832.