Functions describe relationships between inputs and outputs, such as . A foundational concept for calculus is the limit. Limits help understand how a function behaves near a particular input value.
Imagine you're walking towards a specific point on a path. A limit is like asking: "Where does it look like I'll end up as I get incredibly close to that point, even if I don't actually step on that exact spot?"
Sometimes, we can just plug an input value into a function to see the output. If we have and want to know what happens at , we calculate . Simple enough.
But what if the function is undefined at the specific point we're interested in? Or what if we want to understand the trend or tendency of the function right around that point? This is where limits become essential. They allow us to analyze the function's behavior as we approach a value, regardless of what happens precisely at that value.
Let's stick with the simple function . We already know . But let's pretend we don't know that, and instead, let's see what value approaches as gets closer and closer to 3.
We can try values of slightly less than 3:
And values slightly greater than 3:
Notice a pattern? As gets closer and closer to 3 (from either side), the output gets closer and closer to 5. We say that "the limit of the function as approaches 3 is 5."
In mathematical notation, we write this as:
Let's break down this notation:
The real utility of limits shines when a function has a gap or is undefined at a point. Consider the function:
What happens if we try to plug in ? We get , which is undefined. Division by zero is not allowed. So, does not exist.
However, we can simplify this function algebraically for values where is not equal to 1. Since , we have:
So, the graph of looks exactly like the graph of , except there's a "hole" at the point where .
Let's ask: What is the limit of as approaches 1? We can use the simplified form because the limit only cares about values near , not at .
Let's check values near :
As gets arbitrarily close to 1, gets arbitrarily close to 2. Even though is undefined, the limit exists. We write:
Here's a visualization of the function , which behaves like but has a hole at .
The graph of is the line with a single point removed at , indicated by the open circle. The limit as approaches 1 is the y-value the function gets close to, which is 2.
A limit exists for a function as approaches some value if we can make the function's output as close to as we desire, simply by choosing an input sufficiently close to (but not actually equal to ). The function doesn't even need to be defined at for the limit to exist.
This idea of "getting arbitrarily close" is the foundation upon which the idea of the derivative is built. Derivatives, as we'll see in the next chapter, measure instantaneous rates of change, and limits provide the mathematical machinery to define this "instantaneous" behavior. Understanding limits gives us the basis to understand how functions change, which is fundamental to optimizing machine learning models.
Was this section helpful?
© 2026 ApX Machine LearningEngineered with