← Back to learning objective

Estimating the limit of an oscillating function near a point

Consider the function f(x)=cos⁡(1x)f(x) = \cos\left(\dfrac{1}{x}\right). We want to understand what happens to f(x)f(x) as xx approaches 00.

The graph of f(x)=cos⁡(1x)f(x) = \cos\left(\dfrac{1}{x}\right) near x=0x = 0 is shown below.

Estimating the limit of an oscillating function near a point graph

As xx gets closer and closer to 00 (from either side), does f(x)f(x) approach a single value LL? Based on the graph, what can you conclude about lim⁡x→0cos⁡(1x)\displaystyle\lim_{x \to 0} \cos\left(\frac{1}{x}\right)? Give the value of the limit if it exists, or state that it does not exist and briefly explain why.

Hint

Try plugging in a sequence of xx-values approaching 00, such as x=1nπx = \frac{1}{n\pi} for large integers nn, and see what values f(x)f(x) takes. Also look at how densely the graph oscillates as x→0x \to 0.

Step-by-step solution

As x→0x \to 0, the quantity 1/x1/x grows without bound, so it sweeps through all real numbers infinitely many times, causing cos⁡(1/x)\cos(1/x) to cycle repeatedly between −1-1 and 11. For example, choosing x=12nπx = \frac{1}{2n\pi} gives f(x)=cos⁡(2nπ)=1f(x) = \cos(2n\pi) = 1, while choosing x=1(2n+1)πx = \frac{1}{(2n+1)\pi} gives f(x)=cos⁡((2n+1)π)=−1f(x) = \cos((2n+1)\pi) = -1. Both of these sequences of xx-values approach 00, yet the corresponding f(x)f(x) values approach two different numbers.

Since we can find xx-values arbitrarily close to 00 where f(x)f(x) is as close to 11 as we like, and other xx-values equally close to 00 where f(x)f(x) is as close to −1-1 as we like, f(x)f(x) never settles down to a single value LL near x=0x=0. This matches the graph, which shows increasingly rapid oscillation as x→0x \to 0. Therefore the limit does not exist due to oscillation.

Reason for nonexistence of the limit

Does cosine of one over x fail to have a limit because it oscillates or because it blows up?

Hint
Step-by-step solution

It oscillates. As x approaches zero, cosine of one over x repeatedly cycles between negative one and one without settling on a single value. This is different from a function growing without bound, since the values here stay confined between negative one and one at all times. The graph in part a shows increasingly rapid back-and-forth oscillation near zero, confirming this is the cause of nonexistence.

Related problems

Practice similar Calculus problems interactively.

Start Closing the Gap