Periodic Function: Definition, Formula, Graph & Examples

#Algebra
TL;DR
A periodic function is a function whose values repeat at fixed, regular intervals. The length of one full repeat is the period, written $P$, and it satisfies $f(x + P) = f(x)$ for every $x$. Key terms: period (the length of one full cycle), amplitude (the height from the midline to the peak, a separate measurement), cycle (one complete repeat), midline (the horizontal line halfway between peak and trough).
BT
Bhanzu TeamLast updated on June 29, 20268 min read

What Is A Periodic Function?

A periodic function is a function that repeats its output values after a fixed horizontal distance called the period. If you slide the graph sideways by that distance, it lands exactly on top of itself.

The defining condition is short:

$$f(x + P) = f(x) \quad \text{for all } x$$

The smallest positive value of $P$ that makes this true is the fundamental period (usually just called the period). The sine function repeats every $2\pi$, so $\sin(x + 2\pi) = \sin(x)$, and its period is $2\pi$.

A function that never settles into a repeat, like $f(x) = x$ or $f(x) = x^2$, is non-periodic.

The Period Formula For A Transformed Function

When a function is stretched or squeezed horizontally, its period changes by a predictable factor.

If $f(x)$ has period $P$, then $f(ax + b)$ has period:

$$\frac{P}{|a|}$$

Table 1: Variable key for the transformed-period formula.

Symbol

Meaning

$f(x)$

The original periodic function

$P$

The period of the original function

$a$

The horizontal stretch or squeeze factor inside the function

$b$

The horizontal shift (does not change the period)

$\frac{P}{\lvert a\rvert}$

The period of the transformed function

The shift $b$ slides the graph left or right but never changes how often it repeats. Only the coefficient $a$ on the variable matters for the period, and it always enters as $|a|$.

Table 2: Periods of common functions.

Function

Period

$\sin x$

$2\pi$

$\cos x$

$2\pi$

$\tan x$

$\pi$

$\sin(2x)$

$\pi$

$\cos\left(\tfrac{x}{2}\right)$

$4\pi$

Properties of Periodic Functions

A few properties hold for every periodic function and are worth keeping in view before working examples.

  • Repetition by the period. If $P$ is a period, so is every integer multiple: $f(x + nP) = f(x)$ for any whole number $n$. The smallest positive $P$ is the fundamental period.

  • Sum and difference. If $f$ and $g$ share the period $P$, then $f + g$ and $f - g$ are also periodic with period $P$ (or a divisor of it).

  • Horizontal scaling changes the period. Replacing $x$ by $ax$ scales the period by $\frac{1}{|a|}$, as the transformed-period formula shows.

  • Domain and range. A periodic function is defined for all real inputs, and its range is fixed by one cycle — the outputs over a single period are the only outputs it ever takes.

  • Shifting does not change the period. Adding a constant inside, $f(x + b)$, slides the graph sideways but leaves the period untouched.

Examples of Periodic Functions

Example 1: Verify that cosine is periodic

Show that $f(x) = \cos x$ satisfies the periodic condition with $P = 2\pi$.

Test the condition $f(x + P) = f(x)$:

$f(x + 2\pi) = \cos(x + 2\pi)$

$\cos(x + 2\pi) = \cos x$ (cosine repeats every full turn)

So $f(x + 2\pi) = f(x)$.

Final answer: cosine is periodic with period $2\pi$.

Example 2: Find the period of sin(3x)

Find the period of $f(x) = \sin(3x)$.

Start from $\sin x$, which has period $2\pi$.

Here $a = 3$, so apply $\dfrac{P}{|a|}$:

$\dfrac{2\pi}{|3|} = \dfrac{2\pi}{3}$

Final answer: the period is $\dfrac{2\pi}{3}$.

Example 3: A wrong path first, then the fix

Find the period of $f(x) = \cos(4x + 5)$.

The intuitive-but-wrong move is to let the $+5$ matter. A student looks at $4x + 5$ and tries $\dfrac{2\pi}{4 + 5} = \dfrac{2\pi}{9}$.

Check it against the graph: a $+5$ inside the cosine only shifts the wave sideways. Shifting a wave cannot change how often it repeats, so $\dfrac{2\pi}{9}$ cannot be right.

The correct move uses only $a = 4$:

$\dfrac{2\pi}{|4|} = \dfrac{\pi}{2}$

Final answer: the period is $\dfrac{\pi}{2}$. The $+5$ shifts the graph but leaves the period unchanged.

Example 4: Find the period of tan(2x)

Find the period of $f(x) = \tan(2x)$.

Tangent has period $\pi$, not $2\pi$.

Here $a = 2$:

$\dfrac{\pi}{|2|} = \dfrac{\pi}{2}$

Final answer: the period is $\dfrac{\pi}{2}$.

Example 5: A negative coefficient

Find the period of $f(x) = \sin(-3x)$.

The coefficient is $a = -3$. The formula uses $|a|$, so the sign drops out:

$\dfrac{2\pi}{|-3|} = \dfrac{2\pi}{3}$

Final answer: the period is $\dfrac{2\pi}{3}$.

Example 6: A function that is not periodic

Decide whether $f(x) = x + \sin x$ is periodic.

Test the condition: $f(x + P) = (x + P) + \sin(x + P)$. For this to equal $f(x) = x + \sin x$, the $x + P$ part would have to equal $x$, which forces $P = 0$.

A period must be positive, so no positive $P$ works.

Final answer: $x + \sin x$ is not periodic. The rising $x$ term breaks the repeat.

Why Periodic Functions Exist

Periodic functions exist because the world is full of motion that comes back to where it started. The Earth turns, the Moon cycles through its phases, and a heartbeat, a sound wave, a pendulum, and the tide all return to the same state after a fixed interval. Mathematics needed a single tool to describe "repeats on a steady beat," and the periodic function is that tool.

Where the idea earns its keep:

  • Sound and music. A pure musical note is a sine wave; its period sets the pitch. Doubling the frequency raises the note by an octave.

  • Tides. Coastal tide tables are built from periodic functions that sum the pull of the Moon and Sun.

  • Electricity. The current from a wall socket is alternating current, a sine wave that flips direction 50 or 60 times a second.

  • Climate and biology. Daylight hours, body temperature, and migration cycles all follow periodic patterns over a day or a year.

One tool. Many fields. The same equation that describes a swing also describes the voltage in a power line and the signal in a radio, which is why this idea travels so far beyond a trigonometry chapter.

The Mathematicians Behind Periodic Functions

  • Joseph Fourier (1768–1830, France) showed around 1807 that almost any periodic signal can be written as a sum of simple sine and cosine waves. That idea, harmonic analysis, now sits inside every digital photo, streamed song, and MRI scan.

  • Leonhard Euler (1707–1783, Switzerland) tied the sine and cosine waves to circular motion through his formula linking them to the exponential function.

  • Brook Taylor (1685–1731, England) studied the vibrating string, an early periodic-motion problem that pointed toward Fourier's later work.

Common Mistakes With Periodic Functions

Mistake 1: Confusing period with amplitude

Where it slips in:

A student reads a wave graph and reports the height of the peak when asked for the period, or vice versa. The two get swapped because both come from the same graph.

Don't do this:

Do not call the vertical height the period.

The correct way:

The period is horizontal, how wide one full cycle is. The amplitude is vertical, how far the peak rises above the midline. A wave can have a long period and a tiny amplitude at the same time.

Mistake 2: Measuring only half a cycle

Where it slips in:

Reading the period off a graph by measuring from a peak down to the next trough.

Don't do this:

Do not measure peak-to-trough and call it the period.

The correct way:

Measure peak-to-peak, a full cycle. Peak-to-trough is only half the period, so the true period is twice that distance.

Mistake 3: Reporting a negative amplitude

Where it slips in:

For $y = -4\cos x$, a student writes amplitude $= -4$ because the coefficient is negative.

Don't do this:

Do not let the sign of the coefficient become the amplitude.

The correct way:

Amplitude is a distance, so it is never negative. Take the absolute value: $|-4| = 4$. The minus sign flips the wave upside down but does not change its height.

Mistake 4: Adding the shift into the period formula

Where it slips in:

Computing the period of $f(ax + b)$ as $\dfrac{P}{|a + b|}$ instead of $\dfrac{P}{|a|}$.

Don't do this:

Do not divide by anything other than $|a|$.

The correct way:

Only the coefficient on the variable changes the period. The shift $b$ slides the graph sideways and leaves the period alone, exactly as in Example 3.

Practice Questions on Periodic Functions

Work through these, then check your answers below.

  1. Find the period of $f(x) = \sin(5x)$.

  2. Find the period of $f(x) = \cos\left(\dfrac{x}{3}\right)$.

  3. Find the period of $f(x) = \tan(3x)$.

  4. Find the period of $f(x) = \sin(\pi x)$.

  5. Is $f(x) = x^2 + \cos x$ periodic? Explain in one line.

Answers

  1. $\dfrac{2\pi}{|5|} = \dfrac{2\pi}{5}$.

  2. $\dfrac{2\pi}{|1/3|} = 6\pi$.

  3. Tangent has period $\pi$, so $\dfrac{\pi}{|3|} = \dfrac{\pi}{3}$.

  4. $\dfrac{2\pi}{|\pi|} = 2$.

  5. No. The rising $x^2$ term never repeats, so no positive period can make $f(x + P) = f(x)$.

What To Explore Next

Periodic functions open onto three connected ideas:

  1. Amplitude, period, and phase shift together. Once the period is clear, the next step is reading all three transformations off a single graph.

  2. The graphs of sine and cosine. The two parent waves behind almost every periodic model worth knowing.

  3. Fourier series. The higher-grade idea that any periodic signal is a sum of simple sine waves, the path Fourier opened.

Want your child to graph these waves live and watch the period change as they drag a slider? A Bhanzu trainer builds that intuition before the formula, using a Desmos graph the student controls.

Read More:

Was this article helpful?

Your feedback helps us write better content

✍️ Written By
BT
Bhanzu Team
Content Creator and Editor
Bhanzu’s editorial team, known as Team Bhanzu, is made up of experienced educators, curriculum experts, content strategists, and fact-checkers dedicated to making math simple and engaging for learners worldwide. Every article and resource is carefully researched, thoughtfully structured, and rigorously reviewed to ensure accuracy, clarity, and real-world relevance. We understand that building strong math foundations can raise questions for students and parents alike. That’s why Team Bhanzu focuses on delivering practical insights, concept-driven explanations, and trustworthy guidance-empowering learners to develop confidence, speed, and a lifelong love for mathematics.
Related Articles
Book a FREE Demo ClassBook Now →