Mathwords logoMathwords

Oscillating Function — Definition & Examples

An oscillating function is a function whose output repeatedly rises and falls, swinging back and forth instead of moving steadily in one direction. Sine and cosine waves are the standard examples.

A function ff oscillates as x→∞x \to \infty (on an unbounded interval) or near a point aa if it switches between increasing and decreasing infinitely often there: on [N,∞)[N, \infty) for every NN, or on every interval around aa. In particular, it has infinitely many local maxima and minima (turning points). The word is descriptive rather than strictly standardized. In calculus, "ff oscillates as x→∞x \to \infty" often means that lim⁡x→∞f(x)\lim_{x \to \infty} f(x) fails to exist because the values keep swinging. Usage varies by textbook, so check how your course defines it.

Worked Example

Problem: Decide which of these functions oscillate as x→∞x \to \infty, and whether each has a limit: f(x)=e−xsin⁡xf(x) = e^{-x}\sin x, g(x)=x+sin⁡xg(x) = x + \sin x, h(x)=xsin⁡xh(x) = x\sin x.
Step 1: f(x)=e−xsin⁡xf(x) = e^{-x}\sin x: its derivative f′(x)=e−x(cos⁡x−sin⁡x)f'(x) = e^{-x}(\cos x - \sin x) changes sign infinitely often, so ff keeps turning between increasing and decreasing: it oscillates. Its swings shrink, and the squeeze theorem gives a limit.
−e−x≤e−xsin⁡x≤e−x  ⇒  lim⁡x→∞f(x)=0-e^{-x} \le e^{-x}\sin x \le e^{-x} \;\Rightarrow\; \lim_{x\to\infty} f(x) = 0
Step 2: g(x)=x+sin⁡xg(x) = x + \sin x: its graph wiggles, but g′(x)=1+cos⁡x≥0g'(x) = 1 + \cos x \ge 0, so gg never decreases. It does not oscillate, and it grows without bound.
g′(x)=1+cos⁡x≥0,lim⁡x→∞g(x)=∞g'(x) = 1 + \cos x \ge 0, \qquad \lim_{x\to\infty} g(x) = \infty
Step 3: h(x)=xsin⁡xh(x) = x\sin x: it rises and falls forever, and its swings grow, reaching xx at x=π2+2πkx = \tfrac{\pi}{2} + 2\pi k and −x-x at x=3π2+2πkx = \tfrac{3\pi}{2} + 2\pi k. It oscillates and has no limit.
h ⁣(π2+2πk)=π2+2πk,h ⁣(3π2+2πk)=−(3π2+2πk)h\!\left(\tfrac{\pi}{2} + 2\pi k\right) = \tfrac{\pi}{2} + 2\pi k, \qquad h\!\left(\tfrac{3\pi}{2} + 2\pi k\right) = -\left(\tfrac{3\pi}{2} + 2\pi k\right)
Answer: ff and hh oscillate (in the turning-point sense used here); gg does not. ff still has a limit, 00, because its swings shrink, so oscillation alone does not rule out a limit. hh has no limit.

Another Example

Problem: Show that lim⁡x→0sin⁡(1x)\lim_{x \to 0} \sin\left(\frac{1}{x}\right) does not exist.
Step 1: Take the points xk=1π/2+2πkx_k = \dfrac{1}{\pi/2 + 2\pi k} for k=1,2,3,…k = 1, 2, 3, \ldots. They get closer and closer to 00, and at each one the sine equals 11.
sin⁡(1xk)=sin⁡(π2+2πk)=1\sin\left(\frac{1}{x_k}\right) = \sin\left(\frac{\pi}{2} + 2\pi k\right) = 1
Step 2: Now take yk=13π/2+2πky_k = \dfrac{1}{3\pi/2 + 2\pi k}. These also approach 00, but the sine equals −1-1 at each one.
sin⁡(1yk)=sin⁡(3π2+2πk)=−1\sin\left(\frac{1}{y_k}\right) = \sin\left(\frac{3\pi}{2} + 2\pi k\right) = -1
Step 3: In every interval around 00 the function keeps reaching both 11 and −1-1, so its values cannot settle near one number.
lim⁡k→∞sin⁡(1xk)=1≠−1=lim⁡k→∞sin⁡(1yk)\lim_{k\to\infty} \sin\left(\tfrac{1}{x_k}\right) = 1 \neq -1 = \lim_{k\to\infty} \sin\left(\tfrac{1}{y_k}\right)
Answer: The limit does not exist: sin⁡(1/x)\sin(1/x) oscillates between −1-1 and 11 infinitely often near 00, faster and faster as xx approaches 00.

Why It Matters

Oscillating functions model springs, pendulums, sound waves, tides, and alternating current. These are core applications in AP Precalculus and AP Physics 1. In AP Calculus, oscillation is one of the ways a limit can fail to exist, as with lim⁡x→∞sin⁡x\lim_{x \to \infty} \sin x.

Common Mistakes

Mistake: Assuming every oscillating function is periodic.
Correction: Oscillating only means the function keeps swinging up and down. It does not have to repeat exactly. The functions e−xsin⁡xe^{-x}\sin x and xsin⁡xx\sin x in the example oscillate, and neither is periodic. Only call a function periodic if f(x+p)=f(x)f(x + p) = f(x) for some fixed p>0p > 0 and every xx in its domain.

Related Terms