Period of a Function: Formula 2π/|b| for Sin & Cos Graphs
Period of a Periodic Function
The horizontal distance
required for the graph of
a periodic
function to complete one cycle.
Formally, a functionf is
periodic if there exists a number p such
that f(x + p) = f(x) for
all x. The smallest possible value of p is the period.
The reciprocal of period is frequency.
p = The period — the smallest positive number for which this equation holds
Worked Example
Problem: Find the period of the function f(x) = sin(3x).
Step 1: Recall that the standard sine function sin(x) has a period of 2π.
Period of sin(x)=2π
Step 2: For a function of the form sin(Bx), the period is found by dividing the standard period by the absolute value of B.
Period=∣B∣2π
Step 3: Here B = 3, so substitute into the formula.
Period=∣3∣2π=32π
Step 4: Verify: check that f(x + 2π/3) = f(x). Since sin(3(x + 2π/3)) = sin(3x + 2π) = sin(3x), the result checks out.
sin(3(x+32π))=sin(3x+2π)=sin(3x)✓
Answer: The period of f(x) = sin(3x) is 2π/3.
Another Example
This example uses the tangent function, whose base period is π rather than 2π. It also involves a coefficient B less than 1, which stretches the period rather than compressing it.
Problem: Find the period of the function g(x) = tan(x/2).
Step 1: Recall that the standard tangent function tan(x) has a period of π (not 2π like sine and cosine).
Period of tan(x)=π
Step 2: For a function of the form tan(Bx), the period is π divided by the absolute value of B.
Period=∣B∣π
Step 3: Here B = 1/2, so substitute into the formula.
Period=∣1/2∣π=1/2π=2π
Step 4: Verify: tan((x + 2π)/2) = tan(x/2 + π) = tan(x/2), since tangent repeats every π. The answer is confirmed.
tan(2x+2π)=tan(2x+π)=tan(2x)✓
Answer: The period of g(x) = tan(x/2) is 2π.
Frequently Asked Questions
How do you find the period of a trig function?
For sine and cosine functions of the form sin(Bx) or cos(Bx), divide 2π by the absolute value of B: period = 2π/|B|. For tangent and cotangent functions tan(Bx) or cot(Bx), divide π by |B| instead, since their base period is π. If the function includes vertical shifts or amplitude changes, those do not affect the period.
What is the difference between period and frequency?
Period and frequency are reciprocals of each other. The period tells you how long one complete cycle takes (measured in units along the x-axis), while the frequency tells you how many complete cycles occur per one unit. If the period is p, then the frequency is 1/p, and vice versa.
Can a function have more than one period?
Technically, if p is a period, then 2p, 3p, 4p, and so on also satisfy f(x + np) = f(x). However, when we refer to "the period," we always mean the smallest positive value of p. That unique smallest value is what distinguishes one cycle from repetitions of multiple cycles.
Period vs. Frequency
Period
Frequency
Definition
The horizontal length of one complete cycle
The number of complete cycles per one horizontal unit
Formula
p = 2π / |B| (for sin or cos)
f = 1 / p = |B| / (2π)
Units (typical)
Radians, seconds, or other x-axis units
Cycles per radian, Hertz (cycles per second)
Relationship
p = 1 / frequency
f = 1 / period
When to use
When you need the duration or width of one cycle
When you need how often cycles repeat in a given interval
Why It Matters
You encounter the period of a periodic function throughout trigonometry, precalculus, and physics. Modeling sound waves, tides, seasonal temperatures, and alternating current all depend on correctly identifying the period. On standardized tests and in calculus courses, recognizing how transformations like f(Bx) change the period is a frequently tested skill.
Common Mistakes
Mistake: Using 2π/B for tangent and cotangent functions.
Correction: The base period of tan(x) and cot(x) is π, not 2π. For tan(Bx), the correct period is π/|B|.
Mistake: Forgetting to take the absolute value of B when B is negative.
Correction: Period is always a positive quantity. A negative coefficient like B = −4 in sin(−4x) gives period 2π/|−4| = π/2, not a negative value. The negative sign reflects the graph but does not change the cycle length.