Continuity, infinity, and l'Hospital
Three ideas complete the limit toolkit: functions with no breaks, the long-run behaviour of functions, and a shortcut for limits that look like 0/0 or infinity over infinity.
Continuity at a point
A function f is continuous at x = a when three things are true: f(a) is defined, the limit of f(x) as x approaches a exists, and the limit equals f(a). Informally, you can draw the graph through that point without lifting your pen. Continuity is what makes direct substitution work: for a continuous function, the limit is simply the value.
\lim_{x \to a} f(x) = f(a)Three kinds of discontinuity
A removable discontinuity is a hole: the limit exists but f(a) is missing or different, as with (x^2 - 1)/(x - 1) at 1. Redefining a single point fixes it. A jump discontinuity has different left and right limits, like a step function. An infinite discontinuity occurs at a vertical asymptote, such as 1/x at 0. Identifying the type tells you whether the break can be repaired.
Which functions are continuous?
Polynomials are continuous everywhere. Rational functions are continuous wherever their denominators are not zero. Roots, exponentials, logarithms, and the trigonometric functions are continuous on their domains. Sums, differences, products, and compositions of continuous functions are continuous, and quotients are too where the denominator is nonzero. So most formulas you meet are continuous except at a few obvious trouble spots.
Worked example: making a function continuous
Choose c so that f(x) = cx + 1 for x < 2 and f(x) = x^2 for x >= 2 is continuous. At x = 2 the right piece gives 4, and the left piece approaches 2c + 1. For continuity these must match: 2c + 1 = 4, so c = 3/2. This 'make the pieces meet' approach works for any piecewise function: set the one-sided limits equal at the boundary and solve.
The Intermediate Value Theorem
If f is continuous on [a, b] and N is any number between f(a) and f(b), then f takes the value N somewhere between a and b. A continuous path from below a height to above it must cross that height. This guarantees roots: f(x) = x^3 + x - 1 has f(0) = -1 and f(1) = 1, so it equals 0 somewhere between 0 and 1. The theorem tells you a solution exists, though not exactly where.
f(a) < N < f(b) \implies \exists\, c \in (a, b): f(c) = NLimits at infinity
Writing x -> infinity asks what the outputs approach as x grows without bound. If the limit is a finite number L, the line y = L is a horizontal asymptote. For example, 1/x approaches 0 as x grows, because dividing 1 by a huge number gives something tiny. Limits at infinity describe long-run behaviour: where a population levels off, or what a drug concentration settles to.
\lim_{x \to \infty} \frac{1}{x} = 0Rational functions at infinity
Divide every term, top and bottom, by the biggest power of x that appears in the denominator. Three cases follow. If the top has lower degree, the limit is 0. If the degrees are equal, the limit is the ratio of the leading coefficients. If the top has higher degree, the outputs grow without bound and there is no horizontal asymptote. For (3x^2 + 5x)/(x^2 - 2), the degrees match, so the limit is 3/1 = 3.
\lim_{x \to \infty} \frac{3x^2 + 5x}{x^2 - 2} = 3Growth rates: who wins at infinity
As x grows, logarithms grow slowly, powers of x grow faster, and exponentials grow fastest of all. So ln(x)/x approaches 0, x^5/e^x approaches 0, and e^x/x^100 grows without bound. As x approaches negative infinity, e^x approaches 0. These rankings let you estimate many limits at a glance and check your answers.
Indeterminate forms
Some limits produce forms whose value cannot be decided from the form alone: 0/0, infinity/infinity, 0 times infinity, infinity minus infinity, 1^infinity, 0^0, and infinity^0. Each could turn out to be any number, or infinite. They signal that the competing parts of the expression must be analysed more carefully, by algebra or by l'Hospital's rule.
l'Hospital's rule
If the limit of f(x)/g(x) has the form 0/0 or infinity/infinity, and the derivatives exist near the point, then the limit equals the limit of f'(x)/g'(x), provided that new limit exists. You differentiate the top and bottom separately; this is not the quotient rule. The rule uses derivatives, which you will learn in the next unit, so treat this card as a preview you can return to.
\lim \frac{f(x)}{g(x)} = \lim \frac{f'(x)}{g'(x)}Worked examples with l'Hospital
sin(x)/x as x approaches 0 is 0/0; differentiating gives cos(x)/1, which approaches 1. (e^x - 1)/x as x approaches 0 is 0/0; differentiating gives e^x/1, which approaches 1. x^2/e^x as x approaches infinity is infinity/infinity; apply the rule twice to get 2/e^x, which approaches 0, confirming that exponentials beat powers.
\lim_{x \to 0} \frac{\sin x}{x} = \lim_{x \to 0} \frac{\cos x}{1} = 1Rewriting other forms
l'Hospital only applies directly to 0/0 and infinity/infinity, so rewrite other forms first. For x ln(x) as x approaches 0 from the right (0 times negative infinity), write it as ln(x)/(1/x), apply the rule to get (1/x)/(-1/x^2) = -x, which approaches 0. For forms like 1^infinity, take the natural logarithm, find that limit, and exponentiate at the end.
Common mistakes
Using l'Hospital when the form is not indeterminate, for instance on (x + 1)/x as x approaches 0, which is 1/0 and grows without bound. Applying the quotient rule instead of differentiating top and bottom separately. Forgetting to check continuity conditions at the boundary of a piecewise function. Assuming a function with a horizontal asymptote can never cross it; it can, the asymptote only describes the far-away behaviour.
Try it yourself
Find the limit of (2x^3 - x)/(5x^3 + 4) as x approaches infinity. Answer: equal degrees, so the limit is 2/5. Then find the limit of (1 - cos x)/x^2 as x approaches 0. Answer: it is 0/0; one application of l'Hospital gives sin(x)/(2x), still 0/0; a second gives cos(x)/2, which approaches 1/2.
Key takeaways
Continuity means the limit equals the value, which is why substitution works. Discontinuities are removable, jumps, or infinite. The Intermediate Value Theorem guarantees solutions for continuous functions. At infinity, compare degrees for rational functions and remember the growth ranking log < power < exponential. For 0/0 and infinity/infinity, l'Hospital's rule replaces the functions with their derivatives.
Flashcard
f(a) defined, limit exists, and they are equal
Check your understanding
Find lim (x->infinity) (4x^2 - 3)/(2x^2 + x).
