Difference between value of a function at a point and its limit at that point

calculuscontinuitylimits

As a high school student,I understand the basic,theoretical difference between the two, as in, limit is what that function approaches as the input approaches something (but never equal to it) or how it behaves near that point etc etc. But sometimes it doesn't seem to make sense.
Like Some textbooks, when evaluating certain simple limits like this:
enter image description here

They just substitute the value 4 and evaluate it like this:

enter image description here

But then how is it different than evaluating the function itself at that point? One can say that here the limit as well as the value at that point will be same, but I'm pointing out the method used here, SIMPLE SUBSTITUTION!

Along with a better understanding of difference between the two, I would also like to understand what it means when both the value at that point and limit are defined but still they are different.Because I have been told that limits are used to evaluate undefined values/expressions like $\frac{0}{0}$ , $\infty / \infty$, $0^{0}$ etc. For Ex-

enter image description here

Both are well defined, still different.What does that difference mean in cases like these?

Best Answer

The definition of the limit of $f(x)$ at $x=x_0$ looks at the behavior of $f$ as you approach $x_0$, but does not actually look at the value at $x_0$.

So for example, if you have the function $$f(x) = \begin{cases}0, &x\neq 0\\1, &x=0\end{cases}$$ then $f(0)=1$ but $\lim_{x\to 0} f(x) = 0.$

For continuous functions, $f(x_0) = \lim_{x\to x_0} f(x)$. (That the limits of a function exist, and are equal to simply evaluating the function, is after all the definition of continuity.) Many textbooks will evaluate limits by plugging in $x_0$ when the function in question is "obviously" continuous at $x_0$. Most functions you encounter "in the wild" are continuous almost everywhere, including polynomials, rational functions, trig functions, and compositions made of these pieces. To be fully rigorous, you ought to prove that a particular function is continuous before plugging in to evaluate a limit, but in practice as you become more experienced and comfortable you will start to skip this step.

The reason the indeterminate forms like $\frac{0}{0}$ are emphasized so much is that they're one of the most common cases where a function's continuity is not obvious, and where a careful analysis using the limit definitions is sometimes necessary.