How to Graph Cosine Functions
Learn how to graph cosine functions step by step. Covers amplitude, period, phase shift, vertical shift, and the relationship between sine and cosine curves.
The Parent Cosine Function
The cosine function y = cos(x) is one of the two primary trigonometric functions. Its graph is a smooth, periodic wave that starts at its maximum value of 1 when x = 0, decreases to 0 at x = π/2, reaches its minimum of -1 at x = π, returns to 0 at x = 3π/2, and completes the cycle back at 1 when x = 2π. This shape is identical to the sine wave but shifted π/2 units to the left: cos(x) = sin(x + π/2). The cosine function is even, meaning cos(-x) = cos(x), so it is symmetric about the y-axis. This symmetry distinguishes it from the odd sine function, which has rotational symmetry about the origin.
General Form: y = A cos(Bx - C) + D
Like the sine function, the cosine function is fully described by four parameters. A is the amplitude, controlling the height of the peaks and depth of the troughs. B controls the period, given by P = 2π/|B|. C introduces a phase shift of C/B units to the right. D is the vertical shift that moves the center line of the wave from y = 0 to y = D. The maximum value of the function is D + |A| and the minimum is D - |A|. All four parameters can be read off from the equation in general form, making it straightforward to graph any cosine function by transforming the parent curve.
Amplitude and Reflection
The amplitude |A| is the distance from the center line to a peak or trough. For y = A cos(x), the function oscillates between -|A| and +|A|. When A is positive, the graph starts at a maximum at x = 0 (after any phase shift). When A is negative, the graph is reflected across the center line, starting at a minimum at x = 0. For example, y = -3 cos(x) has amplitude 3 and starts at -3 when x = 0, rising to 0 at x = π/2 and reaching a maximum of +3 at x = π. This reflection is equivalent to a phase shift of π.
Period and the Effect of B
The period P = 2π/|B| tells you how long it takes the cosine function to complete one full cycle. When B = 1, P = 2π. When B = 2, the period halves to π, meaning the wave oscillates twice as fast. When B = 1/2, the period doubles to 4π, a slower oscillation. The key points of one cosine cycle (maximum, zero crossing, minimum, zero crossing, maximum) are evenly spaced at intervals of P/4. For y = cos(2x), those five key x-values in one cycle starting at x = 0 are 0, π/4, π/2, 3π/4, π. Recognizing that each quarter-period corresponds to a specific landmark of the cosine curve makes plotting accurate graphs straightforward.
Phase Shift and Vertical Shift
In y = A cos(Bx - C) + D, the phase shift is C/B to the right. A positive phase shift moves the curve to the right (so the maximum occurs later), while a negative phase shift moves it to the left. For example, y = cos(x - π/4) has a phase shift of π/4 to the right: the maximum now occurs at x = π/4 instead of x = 0. The vertical shift D raises or lowers the entire wave without changing its shape. The center line moves from y = 0 to y = D, and the graph oscillates around that new center. Both shifts should be applied after determining the period and amplitude.
Plotting the Five Key Points
Every cosine cycle can be accurately sketched using five key points corresponding to the maximum, first zero, minimum, second zero, and the repeat of the maximum. For the general function y = A cos(Bx - C) + D, find the phase shift S = C/B and the period P = 2π/|B|. The five key x-values are S, S + P/4, S + P/2, S + 3P/4, S + P. The corresponding y-values are D+A, D, D-A, D, D+A (assuming A > 0). For example, y = 2 cos(πx) + 1 has A = 2, B = π, C = 0, D = 1, period P = 2, S = 0. Key points: (0, 3), (0.5, 1), (1, -1), (1.5, 1), (2, 3).
Cosine vs. Sine: Key Differences
Cosine and sine graphs are identical in shape but differ in their starting behavior. The sine function starts at 0 and rises; the cosine starts at its maximum. This means cos(x) = sin(x + π/2). When solving problems, it is sometimes useful to convert between the two using this identity. Both have the same period, amplitude characteristics, and general transform rules. The cosine is even while sine is odd, which affects how they handle negative inputs. In applications, cosine is often used when a phenomenon starts at its peak value (like a spring compressed to maximum displacement and released), while sine is used when it starts at equilibrium.
Try These Calculators
Put what you learned into practice with these free calculators.
Try It Yourself
Put what you learned into practice with our free graphing calculator.
Related Graphs
Related Guides
How to Graph Sine Functions
Learn how to graph sine functions step by step. Understand amplitude, period, phase shift, vertical shift, and how to plot key points of the sine wave.
How to Graph Tangent Functions
Learn how to graph tangent functions step by step. Covers the period π, vertical asymptotes, undefined points, transformations, and the shape of y = tan(x).
Graphing Calculator Tutorial - Complete Guide
Learn how to use the free online graphing calculator at ThePrimeCalculator. Enter equations, pan, zoom, add multiple graphs, pin points, and use 3D mode.