Skip to content
LoveToCalc

Definition — what does that mean?

Sinusoidal function

Four constants that stretch and move a sine curve — and what each of them means on the graph.

In Swedish: Sinusfunktionen

y=A sin(B(x−C))+D

y
Function value
A
Amplitude
B
Number of periods per 2π
x
Variable
C
Horizontal shift
D
Midline
The curve y = 2 sin(2(x − 0.5)) + 1. A dashed horizontal line marks the midline y = D = 1, and a dashed vertical line rises A = 2 from it to the top of a wave. The marked point (C, D) is where a period starts: on the midline, on the way up. Any amplitude, period and shift give the same shape, stretched and moved.Open in the graphing calculator

The formula

Every sine curve can be written this way, with A > 0 and B > 0. The four constants each do one thing:

Constant What it does How to read it
A amplitude: how far the curve reaches above the midline (max − min) / 2
B how tightly the waves are packed; the period is 2π/B B = 2π / period
C horizontal shift where a period starts on the way up
D the midline, halfway between peak and trough (max + min) / 2

The curve y = 3 sin(2(x − π/4)) + 1 has amplitude 3, period 2π/2 = π, is shifted π/4 to the right and oscillates about y = 1. Its maximum is 1 + 3 = 4 and its minimum 1 − 3 = −2.

The bracket decides the shift

The curve is sometimes written y = A sin(Bx − c) + D instead. It looks like the same thing with c in place of C, but it is not: Bx − c = B(x − c/B), so the shift is c/B, not c.

Written as Shift
y = 3 sin(2(x − π/4)) + 1 π/4
y = 3 sin(2x − π/2) + 1, the same curve π/2 / 2 = π/4, not π/2

Read π/2 off the second form and the curve is out by a factor of B, and it still looks like a sine curve. Factor B out first.

Degrees or radians

With x in radians the period is 2π/B. Working in degrees, the period is 360°/B. The curve y = sin 2x has period π, or 180°. The formula above assumes radians, as in degrees to radians.

Reading a graph

A curve has a maximum of 5, a minimum of 1, and one full period is 4 long. Then

The shift C is read where the curve crosses the midline y = 3 on its way up.

Common mistakes

Common questions

How do I write a cosine curve this way? cos x = sin(x + π/2), so a cosine curve is a sine curve shifted π/2 to the left.

How do I solve an equation with a sinusoid in it? Get the sine on its own first, then use the general solution — and remember to divide the period by B as well.

Last reviewed October 6, 2026 ·How pages are reviewed

TrigonometryAll formulas