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 PP, and it satisfies f(x+P)=f(x)f(x + P) = f(x) for every xx. 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).
MV
Madhukar VLast updated on August 20, 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)forΒ allΒ xf(x + P) = f(x) \quad \text{for all } x

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

A function that never settles into a repeat, like f(x)=xf(x) = x or f(x)=x2f(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)f(x) has period PP, then f(ax+b)f(ax + b) has period:

P∣a∣\frac{P}{|a|}

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

Symbol

Meaning

f(x)f(x)

The original periodic function

PP

The period of the original function

aa

The horizontal stretch or squeeze factor inside the function

bb

The horizontal shift (does not change the period)

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

The period of the transformed function

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

Table 2: Periods of common functions.

Function

Period

sin⁑x\sin x

2Ο€2\pi

cos⁑x\cos x

2Ο€2\pi

tan⁑x\tan x

Ο€\pi

sin⁑(2x)\sin(2x)

Ο€\pi

cos⁑(x2)\cos\left(\tfrac{x}{2}\right)

4Ο€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 PP is a period, so is every integer multiple: f(x+nP)=f(x)f(x + nP) = f(x) for any whole number nn. The smallest positive PP is the fundamental period.

  • Sum and difference. If ff and gg share the period PP, then f+gf + g and fβˆ’gf - g are also periodic with period PP (or a divisor of it).

  • Horizontal scaling changes the period. Replacing xx by axax scales the period by 1∣a∣\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)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⁑xf(x) = \cos x satisfies the periodic condition with P=2Ο€P = 2\pi.

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

f(x+2Ο€)=cos⁑(x+2Ο€)f(x + 2\pi) = \cos(x + 2\pi)

cos⁑(x+2Ο€)=cos⁑x\cos(x + 2\pi) = \cos x (cosine repeats every full turn)

So f(x+2Ο€)=f(x)f(x + 2\pi) = f(x).

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

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

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

Start from sin⁑x\sin x, which has period 2Ο€2\pi.

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

2Ο€βˆ£3∣=2Ο€3\dfrac{2\pi}{|3|} = \dfrac{2\pi}{3}

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

Example 3: A wrong path first, then the fix

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

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

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

The correct move uses only a=4a = 4:

2Ο€βˆ£4∣=Ο€2\dfrac{2\pi}{|4|} = \dfrac{\pi}{2}

Final answer: the period is Ο€2\dfrac{\pi}{2}. The +5+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)f(x) = \tan(2x).

Tangent has period Ο€\pi, not 2Ο€2\pi.

Here a=2a = 2:

Ο€βˆ£2∣=Ο€2\dfrac{\pi}{|2|} = \dfrac{\pi}{2}

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

Example 5: A negative coefficient

Find the period of f(x)=sin⁑(βˆ’3x)f(x) = \sin(-3x).

The coefficient is a=βˆ’3a = -3. The formula uses ∣a∣|a|, so the sign drops out:

2Ο€βˆ£βˆ’3∣=2Ο€3\dfrac{2\pi}{|-3|} = \dfrac{2\pi}{3}

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

Example 6: A function that is not periodic

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

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

A period must be positive, so no positive PP works.

Final answer: x+sin⁑xx + \sin x is not periodic. The rising xx 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=βˆ’4cos⁑xy = -4\cos x, a student writes amplitude =βˆ’4= -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|-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)f(ax + b) as P∣a+b∣\dfrac{P}{|a + b|} instead of P∣a∣\dfrac{P}{|a|}.

Don't do this:

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

The correct way:

Only the coefficient on the variable changes the period. The shift bb 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)f(x) = \sin(5x).

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

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

  4. Find the period of f(x)=sin⁑(Ο€x)f(x) = \sin(\pi x).

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

Answers

  1. 2Ο€βˆ£5∣=2Ο€5\dfrac{2\pi}{|5|} = \dfrac{2\pi}{5}.

  2. 2Ο€βˆ£1/3∣=6Ο€\dfrac{2\pi}{|1/3|} = 6\pi.

  3. Tangent has period Ο€\pi, so Ο€βˆ£3∣=Ο€3\dfrac{\pi}{|3|} = \dfrac{\pi}{3}.

  4. 2Ο€βˆ£Ο€βˆ£=2\dfrac{2\pi}{|\pi|} = 2.

  5. No. The rising x2x^2 term never repeats, so no positive period can make f(x+P)=f(x)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
Madhukar V
Madhukar V
Math Columnist & Analyst
I see mathematics as more than just numbers and formulasβ€”it is a way of thinking, questioning, and understanding the world around us. I work at the intersection of mathematics, EdTech, technology, and AI-powered learning, I enjoy exploring how mathematical ideas can be made simple, meaningful, and relatable. Through my articles, I aim to present mathematics with curiosity and a practical perspective, helping readers see the beauty and relevance behind every concept in a Bhanzu way.
LinkedIn
Related Articles
Book a FREE Demo ClassBook Now β†’