Trigonometry

Graphing Sine and Cosine Functions: Amplitude, Period and Shifts

Every sine or cosine graph comes from four numbers: amplitude, period, phase shift and midline. Learn to read them from y = A sin(B(x − C)) + D, plot five key points per cycle, factor out B before reading the shift, write an equation from a graph and model a Ferris wheel.

Frequently asked questions

How do you find the period of a sine or cosine function?

Divide 2π by the absolute value of the number multiplying x. For y = 2 cos(3x) the period is 2π / 3, and for y = sin(x/2) it is 2π / (1/2) = 4π. On a graph, measure the horizontal distance from one peak to the next. In degrees, divide 360° by the same number instead.

What is the difference between the sine and cosine graphs?

They are the same wave shape with the same amplitude, period and range. Only the starting point differs: sine starts on the midline and rises, while cosine starts at its maximum. Sliding the sine graph π/2 to the left gives the cosine graph exactly, because cos x = sin(x + π/2).

How do you find the phase shift of a sine function?

Factor the number in front of x out of the bracket first. In y = 4 sin(2x − π/3) − 1, write 2x − π/3 as 2(x − π/6), so the phase shift is π/6 to the right, not π/3. A bracket of the form x − C shifts right by C; x + C shifts left by C.

What does a negative amplitude do to a sine graph?

The amplitude itself is |A|, so it is never negative. A negative A reflects the wave across its midline: every maximum becomes a minimum. So y = −3 sin(x/2) + 1 starts on the midline at y = 1 and dips to −2 first, instead of rising to 4 first as y = 3 sin(x/2) + 1 does.

How do you write a sine or cosine equation from a graph?

Take a maximum and the next minimum. The midline D is their average, the amplitude is half their difference, and the horizontal gap between them is half a period, which gives B = 2π / P. Use cosine with C at the x-value of any maximum. A max at (1, 5) and a min at (4, −1) gives y = 3 cos((π/3)(x − 1)) + 2.

Try these solvers

Trigonometry10 min read

How to Use the Unit Circle — Complete Guide with Examples

The unit circle is the key to unlocking trigonometry. Learn how to find exact values of sin, cos, and tan for any standard angle with clear explanations and examples.

Algebra12 min read

Function Transformations — Shifts, Reflections, Stretches & Compressions

Master function transformations with this complete guide. Learn how shifts, reflections, stretches, and compressions change the graph of any function, and how to combine multiple transformations.

Trigonometry11 min read

Trigonometric Identities Cheat Sheet — All Formulas You Need

Every trigonometric identity you need in one place. Learn the Pythagorean, reciprocal, double angle, half angle, and sum/difference identities with examples showing how to verify and apply them.

Need help solving a problem?

Snap a photo and get instant step-by-step solutions with Solver AI.