Contents / Calculus / Limits & Continuity
Chapter 1
Limits & Continuity
Build intuition for approaching values and continuity.
Introduction
Limits are the foundation of all of calculus. Every derivative and every integral is secretly a limit. Before you can do anything else, you need to know what it means for a function to approach a value.
The notation means: as gets arbitrarily close to , the outputs get arbitrarily close to . Notice that we never require itself to equal , or even to exist. That single omission is what makes limits powerful — they describe a function at points where the function has nothing to say.
Continuity is the special case where the limit and the actual value agree. Most functions you meet are continuous; the interesting calculus happens at the exceptions.
The chapter runs in the order a first course does: the families of functions calculus is built from, the two problems that force limits into existence, the informal and then the precise definition, the laws that let us compute limits without going back to the definition, continuity and the Intermediate Value Theorem, behaviour at infinity, and finally L'Hôpital's Rule, which uses the derivative to settle the limits that resist algebra.
1.1Functional representations: the language before the calculus
Calculus does not invent new functions. It studies how a handful of familiar families change, so fluency with those families comes first.
Linear functions model constant rates of change. Their graphs are straight lines, and that simplicity is exactly what a derivative reproduces locally: the tangent line is a linear approximation.
Power functions produce polynomial behaviour. Quadratics model projectile motion, cubics bend and change concavity. Polynomials are the best-behaved functions in the subject: continuous, differentiable, no surprises. The degree of a polynomial, the highest power that appears, decides its behaviour far from the origin, and that fact returns in the section on limits at infinity.
Rational functions are quotients of polynomials, . They inherit the good behaviour of polynomials everywhere except where , and those exceptional points are where the two most important kinds of bad behaviour in this chapter — holes and vertical asymptotes — live.
Exponential functions — above all — model growth and decay: populations, radioactivity, compound interest. Their defining property is that the rate of growth is proportional to the current value, which is why turns out to be its own derivative.
Logarithmic functions invert the exponentials. The natural logarithm grows without bound, but astonishingly slowly, and it takes centre stage in integration through
Trigonometric functions , and model anything periodic: waves, oscillations, circular motion. Their derivatives cycle through one another, and one of their limits,
underpins all of trigonometric calculus. It is proved later in this chapter.
Inverse functions swap input and output. If then ; for an inverse to exist at all, must be one-to-one. Derivatives of inverses obey
Piecewise functions are defined by different rules on different intervals. They are the natural home of one-sided limits, of continuity and of differentiability — precisely the ideas that follow.
Intuition. Function families are like vehicle types. Linear functions are bicycles: steady, predictable speed. Exponentials are rockets: the faster they go, the faster they accelerate. Logarithms are the opposite — a rapid start, then diminishing returns. Trigonometric functions are Ferris wheels, going up and down forever in the same cycle.
Example 1.1 (Reading the domain off the formula). Find the domain of .
Solution. Two things can go wrong in a formula built from these families: a square root of a negative number and a division by zero. The root needs , so . The denominator needs .
Both must hold at once, so the domain is . The point is exactly the kind of place a limit is designed to interrogate: the function says nothing there, but its neighbours do.□
Example 1.2 (Recognising a family from its rate of change). A colony of bacteria doubles every hours and starts at million cells. Which family models it, and how many cells are there after hours?
Solution. Doubling on a fixed schedule means the growth in each period is proportional to what is already present — the signature of the exponential family. Write
with in hours: at the exponent is and the population has doubled, as required. After hours the exponent is , so million cells. Sanity check: three doublings of give , , .□
The derivative measures the speed of a function and the integral measures the total distance travelled. Both begin by recognising which family you are holding.
1.2The tangent and velocity problems
Two questions, one from geometry and one from physics, make limits unavoidable. Neither can be answered by ordinary algebra, and both have the same shape.
The tangent problem asks for the slope of the curve at the point . A slope needs two points, and we have only one. The way out is to take a second point on the curve and compute the slope of the secant line :
For this is ; for it is ; for it is ; for it is . From the other side, gives and gives . The secant slopes close in on as slides toward , and is the only reasonable candidate for the slope of the tangent.
Definition 1.4 (Tangent line as a limit of secants). The tangent line to the curve at the point is the line through with slope
provided this limit exists.
The formula cannot be evaluated by substituting : it reads . Everything in the definition hangs on the word limit, which is why a limit must be defined properly before the derivative can be.
The velocity problem is the same thing in different clothes. Drop a ball from a tower; Galileo's law says it has fallen metres after seconds. What is its velocity at exactly? Velocity is distance over time, but at a single instant no distance is covered and no time elapses. So measure the average velocity over a short interval :
With this is m/s; with it is ; with it is ; with it is . The averages settle on , and m/s is what we mean by the instantaneous velocity.
Definition 1.5 (Instantaneous velocity). If an object has position at time , its instantaneous velocity at is
Compare the two definitions: the velocity is the slope of the tangent to the position graph. That coincidence is the beginning of the derivative, and the next chapter takes it up. For now the lesson is that both problems reduce to one question — what does a quotient approach when both top and bottom head to zero? — and that question is the subject of this chapter.
Intuition. A speedometer does not measure speed at an instant, because it cannot: it measures how far the wheels turned over a very short time and divides. The reading is an average over that tiny interval. The instantaneous speed is what the readings converge to as the interval shrinks — a limit, computed by a piece of hardware.
Example 1.6 (Secant slopes closing on a tangent). Estimate the slope of the tangent to at from secant slopes, then find it exactly.
Solution. The secant through and has slope
At this is ; at it is ; at it is . The slopes close in on .
To confirm, factor the numerator as a difference of cubes: . For the factor cancels and , which tends to as . The tangent line is .□
Example 1.7 (Instantaneous velocity from average velocities). A stone is thrown upward so that its height after seconds is metres. Find its velocity at .
Solution. Average velocity over is
For this equals , and as it tends to . The velocity at is m/s upward. Sanity check: the stone starts at m/s and is slowing, so a value below and above is right; it peaks at , where the same computation gives .□
1.3Building intuition: what does 'approaching' mean?
Take and feed it values of marching toward : , , , then , , . The outputs are , , , , , . They cluster around , even though is undefined. That clustering is the limit:
Definition 1.8 (Limit of a function (informal)). We write , and say the limit of as approaches is , if the values of can be made as close to as we like by taking sufficiently close to but not equal to .
Two phrases in the definition carry the weight. As close as we like means every tolerance, not just a small one: if someone demands within one millionth of , we must be able to oblige. But not equal to means the value never enters: it may be undefined, or defined and wrong, and the limit is unaffected. The limit cares about the neighbourhood around a point, never the point itself. That is exactly why it is useful: it lets us analyse behaviour where the function breaks.
The definition is informal because "as close as we like" and "sufficiently close" have not been pinned to numbers. The precise version, with and , comes in its own section; the informal one is enough to compute with, and it is the one to hold in your head.
Intuition. Imagine walking toward a door, halving the remaining distance with every step. You never step through it — but you can get close enough to peek and see what is on the other side. That peek is the limit.
The door might be locked, or missing, or painted a surprising colour. None of that changes what you see through it from the corridor.
Example 1.9 (Building a limit table). Estimate numerically, then confirm the value algebraically.
Solution. The function is undefined at , where it reads , so approach from both sides.
From the left, , , . From the right, , , . The outputs approach from both sides.
Algebra confirms it: for ,
and .□
Example 1.10 (A table that needs care). Estimate .
Solution. A calculator gives at , at , at and at , which strongly suggests .
Push further, though, and the readings go wrong: a ten-digit calculator reports at , then at , then at . That is not the function changing its mind; it is rounding. When is tiny, is so close to that the calculator stores it as exactly , and the numerator collapses to .
The true value is . Multiplying top and bottom by gives
Numerical evidence suggests; algebra decides.□
Example 1.11 (When the values never settle). Investigate .
Solution. Try the obvious inputs: at the argument is a multiple of , so every value is . A table built from these alone would announce a limit of .
It would be wrong. At the argument is and every value is ; at every value is . Arbitrarily close to the function takes every value between and infinitely often. No single number can have all nearby outputs within, say, of it, so the limit does not exist.
The graph oscillates infinitely fast near the origin. This example is the standard warning that a table samples the function and a sample can mislead.□
Pitfall. A table of values is evidence, not proof. Two things go wrong routinely: the sample points happen to miss the interesting behaviour, as with ; and rounding error takes over when inputs get very small, as with . Use tables to form a guess and algebra to confirm it.
1.4One-sided limits
Definition 1.12 (One-sided limits). The left-hand limit means the values of can be made as close to as we like by taking sufficiently close to with . The right-hand limit is the same with .
The notation is read " approaches from the left", and it says nothing about the sign of : means approaches through values such as and .
Theorem 1.13 (Two-sided limits from one-sided limits). if and only if both one-sided limits exist and .
Proof. Both directions come straight from the definition. A that works for the two-sided limit works for each side separately. Conversely, if and handle the two sides for a given , then handles every with .∎
The theorem is the standard tool for showing a limit fails to exist. For we have and ; the one-sided limits disagree, so the two-sided limit at does not exist.
One-sided limits are also the right language at a domain boundary. For instance , while the left-hand limit is meaningless because is undefined for . Likewise is the only limit has at the origin.
Intuition. Think of a one-way street. The left-hand limit is what you see driving in from the left, the right-hand limit what you see from the right. If both drivers report the same thing, the limit exists. If one sees a café and the other a parking lot, there is no single answer.
Example 1.14 (One-sided limits of a piecewise function). Evaluate the one-sided limits at of
Solution.
- Left-hand limit: the relevant piece is , so .
- Right-hand limit: the relevant piece is , so .
- The one-sided limits agree, so by the two-sided criterion.
- But , so has a removable discontinuity at : the limit exists and simply fails to match the value.
Example 1.15 (An absolute value in disguise). Find and , and decide whether the two-sided limit exists.
Solution. The absolute value is the only obstacle, and it resolves differently on each side. For we have , so
For we have , so the quotient is as .
The one-sided limits are and ; they differ, so does not exist. The graph has a jump of size at .□
Example 1.16 (Reading one-sided limits from the floor function). Let be the greatest integer not exceeding . Find , and .
Solution. Just to the left of , inputs such as and have floor , so the left-hand limit is . Just to the right, has floor , so the right-hand limit is . They disagree: no limit at , and the same happens at every integer.
At the function is constantly on the whole interval , so both one-sided limits, and the limit, equal . The floor function is badly behaved only at the integers.□
Pitfall. A piecewise definition tells you which formula to use on each side, and the value assigned at the breakpoint is irrelevant to both one-sided limits. Students lose marks by substituting into the " " branch. That branch decides continuity, never the limit.
1.5Infinite limits and vertical asymptotes
Writing says the outputs grow without bound as approaches . Strictly the limit does not exist as a real number; the symbol records how it fails. The infinity sign here is a description, not a number, and it cannot be substituted into the limit laws of the next sections.
Definition 1.17 (Infinite limit). means the values of can be made as large as we like by taking sufficiently close to but not equal to . Precisely: for every number there is a such that
is defined the same way with . One-sided versions restrict to one side of .
The plays the role a tolerance plays for finite limits: whatever height is demanded, a must push the graph above it. With and target , any with works; in general does the job, since gives and .
Definition 1.18 (Vertical asymptote). The line is a vertical asymptote of if at least one of the one-sided limits of at is or .
For a rational function, asymptotes live where the denominator vanishes and the numerator does not, so factor the denominator first and cancel common factors. A cancelled factor is a hole, not a wall — this is the distinction the third example turns on.
Signs need care on each side separately: while . The reliable method is to write down, for just to one side of , the sign of every factor and then the sign of the quotient. When the two sides carry opposite signs, the graph escapes in both directions.
For , and the asymptotes come from the nature of the function rather than from a visible denominator; has one at every and has one at from the right only.
Intuition. A vertical asymptote is an invisible wall the graph races toward but never reaches. To find the walls of a fraction, look where the denominator is zero. If the numerator is nonzero there, you have a wall; if it is also zero, the factors may cancel and leave a pothole instead.
Example 1.19 (Signs on the two sides of an asymptote). Find and .
Solution. Substituting gives : nonzero over zero, so the function blows up and only the sign remains to be found.
For slightly larger than , say , the numerator is near and the denominator is , so the quotient is large and positive: .
For slightly smaller, say , the numerator is still near but the denominator is , so the quotient is large and negative: . The line is a vertical asymptote, approached upward from the right and downward from the left.□
Example 1.20 (Proving an infinite limit from the definition). Show from the definition that , and find a that works for .
Solution. Given , we need with whenever . Since is equivalent to , that is, , the choice works: if then and .
For this gives . Check: gives .□
Example 1.21 (Vertical asymptote or hole?). Find the vertical asymptotes of .
Solution.
- Factor: , so the denominator vanishes at and .
- At the factor cancels, leaving for . That is a hole, and the limit there is .
- At the reduced numerator is while the denominator vanishes, so is a vertical asymptote.
- The two sides differ in sign: and .
Example 1.22 (An asymptote without a denominator). Find and .
Solution. Write . As the numerator tends to while , so the quotient blows up. Just left of the cosine is positive and small, giving ; just right of it the cosine is negative and small, giving . The line is a vertical asymptote of , and the same argument places one at every odd multiple of .□
Pitfall. "Denominator zero" is not the test for a vertical asymptote; "denominator zero and numerator nonzero after cancelling" is. Both and have a zero denominator at ; only the second has an asymptote there.
1.6The precise definition of a limit
The informal definition uses the words "as close as we like" and "sufficiently close". To prove anything about limits — that the limit laws hold, that a limit is unique, that a particular limit is what a table suggests — those words have to become inequalities.
Definition 1.23 (Limit of a function). Let be defined on an open interval containing , except possibly at itself. We write when for every there exists a such that
Read the definition as a game between a challenger and you. The challenger names an output tolerance , as small as they please. You must answer with an input tolerance so that every within of (other than itself) has its output within of . The limit is if you can win for every ; it fails to be if the challenger can pick one for which no works.
Notice that is allowed to depend on — a tighter output demand will usually need a tighter input — and that once a works, every smaller works too. The clause is what excludes the point itself.
A proof from the definition always has the same two halves. First, a private calculation: start from and work backwards to see how small must be. Second, the proof proper: announce the found, and verify forwards that it delivers .
Intuition. A machinist is told a shaft must be mm in diameter to within mm. She knows the lathe setting produces diameter . The question she actually has to answer is: how precisely must I set the dial, so that any setting within of the right one yields a shaft within tolerance? If a tighter tolerance always has an answer, the diameter is a continuous function of the dial — and the limit is what the dial promises.
Example 1.24 (An ε–δ proof for a linear function). Prove that .
Solution. Preliminary analysis. We want , that is , that is , that is . So should work.
Proof. Let be given and set . If , then
Hence . For a line of slope the pattern is always : a steep line converts a small input error into a larger output error, so it needs a smaller .□
Example 1.25 (An ε–δ proof for a quadratic). Prove that .
Solution. Preliminary analysis. We want . The factor we control directly, but varies with . The remedy is to agree in advance to keep within of : if then , so and . Under that agreement , which is below as soon as .
Proof. Let and set . If , then so , and also , so
The is the standard device for non-linear functions: one bound tames the awkward factor, the other delivers the tolerance. For the recipe gives .□
Example 1.26 (Using the definition to refute a limit). Show that does not exist.
Solution. Suppose it existed and equalled some . Take . Whatever is offered, the point has and the point has , both within of . So and , which force and at once. No survives, so the limit does not exist. In the language of the game, the challenger wins with against every .□
Proposition 1.27 (Uniqueness of limits). If and , then .
Proof. Suppose and take . Choose small enough that both and whenever ; then for such an the triangle inequality gives , a contradiction.∎
Pitfall. In a proof, must be chosen before and may depend only on (and on and ). A "proof" that picks after looking at a particular proves nothing. Likewise the analysis half, working backwards from , is scratch work; the argument the reader must accept is the forward verification.
1.7The limit laws
Going back to the – definition for every limit would be unbearable. The limit laws let us build complicated limits from simple ones, and they are proved once, from the definition, so that nobody has to do it again.
Theorem 1.28 (Limit Laws). Suppose is a constant and the limits and both exist. Then
for every positive integer , with required in the root law when is even.
In words: the limit of a sum is the sum of the limits, and likewise for differences, constant multiples, products, quotients, powers and roots. Every law carries the same hypothesis — the individual limits must exist — and the quotient law adds that the limit of the denominator is nonzero.
Proof. Sum law. Let . Since , there is with whenever ; since , there is with whenever . Put . If then both estimates hold and, by the triangle inequality,
The difference law follows from the sum law and the constant-multiple law with ; the constant-multiple law is the sum law's argument with obtained from .
Product law, the idea. Write
The second term is small because . The first is small because and, once is close to , stays bounded; a bounded quantity times a quantity tending to zero tends to zero. The quotient law reduces to the product law once one shows , which uses to keep near . The power law is the product law applied times; the root law needs a separate argument that belongs to real analysis.∎
Two consequences are used constantly. Since and are immediate from the definition (take for the second), repeated use of the sum, constant-multiple and power laws gives the following.
Corollary 1.29 (Direct substitution property). If is a polynomial then . If is a rational function and then .
Proposition 1.30 (Limits preserve inequalities). If for all near (except possibly at ) and both limits exist, then .
Proof. Suppose instead . Taking and close enough to makes , contradicting .∎
Note what the proposition does not say: a strict inequality does not give a strict inequality of limits. With and , for all , yet both limits at are .
Intuition. The limit laws are the reason limits are computable at all. A statement like hides eight applications of the laws — three products, a constant multiple, two sums and two evaluations of — and none of them is ever written out, because the corollary packages the whole thing as "substitute".
Example 1.31 (Combining limits from given values). Suppose and . Find and .
Solution. For the first, the denominator tends to , so the quotient law applies. Numerator: by the power and constant-multiple laws, . The limit is .
For the second, the expression under the root tends to , so the root law applies and the limit is .□
Example 1.32 (When the laws are silent). Let and . Discuss .
Solution. Neither nor exists, so the sum law cannot be invoked. But for every , and the limit of the sum is . The laws are one-directional: when the pieces have limits, the whole has a limit computed from them; when a piece fails, the whole may or may not have a limit, and the laws say nothing. You must look at the combined expression directly.□
Example 1.33 (Substitution is a theorem, not a reflex). Compute .
Solution. This is a rational function and the denominator at is , so the direct substitution property applies:
Sanity check: at the quotient is , close to and drifting toward it.□
Pitfall. The quotient law needs the limit of the denominator to be nonzero, and the product law needs both limits to exist. The forms and are precisely the cases where the laws refuse to answer; the sections that follow are about what to do then.
1.8Evaluating limits: direct substitution
Always try substitution first. If is continuous at then and you are done. The direct substitution property covers polynomials and rational functions; the continuity section extends the same conclusion to roots, exponentials, logarithms, trigonometric functions and their inverses, and to any sum, product, quotient or composition of these, on their domains.
Substitution fails in exactly two interesting ways, and they mean opposite things.
Indeterminate form: substitution returns or . The limit may still exist, but the expression as written carries too little information to decide; you must simplify or apply L'Hôpital's Rule.
Nonzero over zero: substitution returns something like . Then the function blows up and the limit is not a finite number — you are looking at a vertical asymptote, and the only remaining question is the sign on each side.
Intuition. Direct substitution asks: what happens if I just plug the number in? For well-behaved functions nothing strange happens at the point, so you simply evaluate.
It only breaks when the answer is meaningless, like . That is the function telling you: it is not that simple here, dig deeper.
Example 1.34 (When substitution works and when it fails). Decide what substitution tells you about , and .
Solution.
- . Polynomials are continuous everywhere, so substitution is the whole argument.
- is indeterminate; substitution decides nothing. Another technique is needed, and the limit turns out to equal .
- is not indeterminate — the numerator is nonzero. The function blows up, and is a vertical asymptote.
Example 1.35 (Substitution through a composition). Compute and .
Solution. The polynomial tends to , and the root law (equivalently, continuity of at ) gives .
In the second, sine and cosine are continuous, the denominator tends to , and the quotient law gives
Sanity check: , and .□
Example 1.36 (Substitution after a sign check). Compute .
Solution. Substituting gives . Substitution has failed, but it has failed in the informative way: both polynomials vanish at , so both have as a factor. Indeed and , so for the quotient is , and substitution now gives .
The next section is about this move and its relatives.□
Pitfall. Substituting and obtaining a number is not always the end of the story: it is the end only when the function is continuous there. For substitution gives , but does not exist. Substitution is licensed by continuity, and piecewise-defined functions are where the licence lapses.
1.9Indeterminate forms and algebraic tricks
The symbol is called indeterminate because the limit behind it could be anything. Compare three quotients, all of form at :
The form records that both parts vanish; it does not record how fast, and the rate is the whole question. The cure is always the same in spirit — rewrite the expression until substitution becomes legal — and the rewriting is licensed by one observation.
Theorem 1.37 (Limits ignore the point itself). If for all near except possibly at , and , then .
Proof. The – condition for involves only values at points with , and at every such point and agree (shrinking if necessary so that the agreement covers the whole punctured interval). So the same witnesses the condition for .∎
That is why cancelling is legitimate: the cancelled expression is a different function, but it agrees with the original everywhere except at , and the limit cannot tell them apart. Four rewrites cover almost every exercise.
Factor and cancel: when numerator and denominator share a factor , cancel it and substitute again.
Rationalise: when a square root appears, multiply by the conjugate. For , multiply above and below by .
Combine fractions: when two fractions are being subtracted, put them over a common denominator first. This is the standard treatment of the form at a finite point.
Use identities: , the double-angle formulas, or often collapse the whole expression.
Intuition. An indeterminate form is the mathematical equivalent of "I don't know yet". Two runners both decelerate to a standstill at the finishing line; asking which was faster at the line is not answered by the fact that both stopped. You have to compare the rates at which they slowed, and algebra — later, differentiation — is how you extract those rates.
Example 1.38 (Factoring a removable discontinuity). Compute .
Solution.
- Substitution gives : indeterminate, so simplify.
- The numerator is a difference of squares, .
- Since but , the factor may be cancelled, leaving .
- Substitution is now legal: the limit is .
The graph has a hole at ; the limit sees straight through it to the value the function approaches.□
Example 1.39 (Rationalising a radical expression). Compute .
Solution.
- Substitution gives : indeterminate.
- The obstacle is the root, so multiply by the conjugate .
- The numerator becomes , so the quotient is .
- Substituting gives .
The conjugate trick is the standard move whenever a limit contains .□
Example 1.40 (Combining fractions: an ∞ − ∞ form). Compute .
Solution.
- Each piece blows up as , one to and the other likewise, so the expression has the form , which is indeterminate: the two infinities may or may not cancel.
- Put them over the common denominator :
- Cancel the common factor: for the expression is .
- Substitution now gives . The infinities cancelled exactly, leaving a finite value.
Example 1.41 (A difference quotient). Compute .
Solution.
- Substituting gives .
- Simplify the numerator first: .
- Divide by , that is multiply by : for the quotient is .
- Letting gives .
This is the derivative of at , and indeed at is .□
Example 1.42 (A root in the numerator and a factorable denominator). Compute in two ways.
Solution. Conjugate method. Multiply above and below by :
Substitution method. Put , so and as . Then
Two routes, one answer — a useful habit for checking work.□
Pitfall. Cancelling changes the function's domain, and the cancelled expression is only equal to the original away from the point. Writing without the proviso is false at ; writing is correct, by the theorem above. Keep the limit sign attached while you cancel.
1.10The squeeze theorem
Theorem 1.43 (Squeeze Theorem). If for all near (except possibly at ), and
then .
Proof. Let . Choose so that and so that on the respective punctured neighbourhoods, and let be the smaller of these (shrunk further if necessary so that the inequality holds throughout). For we then have
so .∎
The theorem is the tool of choice when a factor oscillates without settling. The oscillation is bounded, a second factor shrinks to zero, and the product is dragged to zero with it — an argument no amount of substitution or factoring can supply, because the oscillating factor has no limit at all.
Note the hypothesis "for all near ": the inequalities need not hold everywhere, only on some punctured interval around , and what happens at itself is irrelevant as always.
Corollary 1.44 (Zero times bounded). If and for all near , then .
Proof. , and both bounds tend to since . Apply the Squeeze Theorem.∎
Intuition. You are walking between two friends on a pavement, and both are heading for the same coffee shop. Stuck between them, you end up at the coffee shop too. You have no choice — and nobody needs to know anything about your own route.
Example 1.45 (Squeezing an oscillating function). Compute .
Solution.
- Direct substitution is hopeless: oscillates between and ever faster as , and is meaningless.
- Bound the oscillation instead: for every .
- Multiply through by , which preserves the inequalities: .
- Both outer functions tend to as , so the Squeeze Theorem gives .
The chaos never had to be understood — only bounded. The factor tames it.□
Example 1.46 (A squeeze with an exponential). Show that .
Solution.
- The exponent lies between and , so lies between and — bounded, though never close to a single value.
- For multiply by : .
- Both outer expressions tend to as .
- By the Squeeze Theorem the limit is .
Example 1.47 (Squeezing a sequence-like expression). Find .
Solution. The numerator has no limit at infinity, so the quotient law is unavailable. But gives, for ,
and both bounds tend to as . The Squeeze Theorem (which holds verbatim for limits at infinity) gives . The graph oscillates forever but inside an envelope that closes on the axis, so is a horizontal asymptote crossed infinitely often.□
Pitfall. The bounds must actually sandwich the function on a whole punctured neighbourhood, and they must have the same limit. From alone nothing follows about : the bounds have limits and , which differ, and in fact that limit does not exist. Also watch the sign when multiplying an inequality: multiplying by a negative quantity reverses it, which is why and , never , appear as the squeezing factor.
1.11Key trigonometric limits
These limits appear constantly and are worth committing to memory.
The first is the load-bearing one, and it deserves a proof, because it cannot be obtained from the limit laws: the form is and no algebraic identity removes it. The proof is geometric, and it is where the Squeeze Theorem earns its keep.
Theorem 1.48 (The fundamental trigonometric limit). With measured in radians,
Proof. Take and work in the unit circle. Let be the centre, , and let be the point at angle , so that . Let be the point where the tangent line at meets the ray , so .
Compare three areas. The triangle has base and height , so its area is . The circular sector has area , since a sector of angle in a unit circle has area (this is where radians are essential). The triangle has base and height , so its area is . The triangle is contained in the sector, which is contained in the larger triangle, so
Multiply by and divide by :
Take reciprocals, which reverses the inequalities:
As we have , so the Squeeze Theorem gives . Finally is an even function — replacing by changes the sign of both numerator and denominator — so the left-hand limit equals the right-hand limit, and the two-sided limit is .∎
Corollary 1.49 (The cosine limit).
Proof. Multiply by the conjugate :
As the first factor tends to and the second to , so the product tends to .∎
The tangent limit follows from . A companion worth knowing is
which the same conjugate trick gives: the expression equals .
Proposition 1.50 (Generalised sine limit). For constants and , .
Proof. Write . As the argument too, so the second factor tends to by the fundamental limit.∎
Intuition. For tiny angles measured in radians, the sine of the angle is almost exactly the angle itself: . Geometrically, a short arc of a circle is nearly indistinguishable from the straight chord beneath it, and is the chord's height while is the arc's length. The ratio approaches because the two measurements converge.
Example 1.51 (Using the generalised sine limit). Compute .
Solution.
- The expression is not literally , so manufacture that form: multiply and divide by to match the argument of the sine with its denominator.
- .
- As we have , so .
- The limit is , in agreement with the proposition.
Example 1.52 (A ratio of two sines). Compute .
Solution.
- Both parts tend to : indeterminate.
- Insert the matching denominators by hand:
- The first factor tends to , the second is the reciprocal of something tending to and so tends to , and the third is the constant .
- The limit is .
Example 1.53 (Using an identity first). Compute .
Solution.
- Form . Use with : the numerator is .
- The quotient becomes for near with .
- Write it as , which tends to .
Sanity check with small numbers: at the original expression is , close to .□
Example 1.54 (A trigonometric limit away from zero). Compute .
Solution.
- Substitution gives , but the standard limit is about the argument tending to , not . Shift: let , so and .
- , so the quotient is .
- This tends to .
The substitution is the general way to move a limit to the origin where the standard results live.□
Pitfall. Every one of these limits requires radians. In degrees, , because of degrees is in radians. A calculator left in degree mode will quietly produce where you expect , and every derivative of a trigonometric function in later chapters would acquire the same stray factor.
1.12Continuity
Definition 1.55 (Continuity at a point). A function is continuous at when all three conditions hold: is defined; exists; and
The three conditions are not decoration. The first fails for at , the second for at every integer, the third for a function deliberately given the wrong value at one point. Any one failure is a discontinuity, and which condition fails names the type.
Definition 1.56 (One-sided continuity and continuity on an interval). is continuous from the right at if , and continuous from the left if . is continuous on an interval if it is continuous at every point of the interval, where at an endpoint only the appropriate one-sided continuity is required.
The endpoint clause is what allows to be called continuous on even though it has no left-hand limit at : nothing exists to the left, so nothing is demanded.
Now the classification. Four kinds of discontinuity cover everything you will meet.
Removable discontinuity (a hole): exists but is undefined or has the wrong value. Example: at , where the limit is and the value is missing. It is called removable because redefining repairs it.
Jump discontinuity: both one-sided limits exist but differ. Example: at , with limits from the left and from the right. No redefinition of can help; the two sides disagree, and the gap is real.
Infinite discontinuity: at least one one-sided limit is . Example: at , or at from the right. The graph has a vertical asymptote there.
Oscillating discontinuity: the one-sided limits fail to exist for reasons other than blowing up. Example: at , which takes every value in infinitely often in every neighbourhood of the origin.
Theorem 1.57 (Algebra of continuous functions). If and are continuous at and is a constant, then , , and are continuous at , and so is provided .
Proof. Each statement is a limit law read through the definition of continuity. For the product, , which is exactly the assertion that is continuous at . The others are identical, and the proviso in the quotient case is the quotient law's hypothesis, since .∎
Theorem 1.58 (Continuity of composites). If and is continuous at , then
In particular, if is continuous at and is continuous at , then is continuous at .
Proof. Let . Continuity of at gives with whenever . Since , there is with whenever . Composing, forces .
Note that the outer function must be continuous, not merely have a limit: the inner function may hit the value exactly, and then itself is used.∎
Between them these theorems settle continuity for essentially every formula in a calculus course. Polynomials are continuous on ; rational functions on their domains; , , , , , and the inverse trigonometric functions on their domains; and any finite combination of these by sums, products, quotients and compositions is continuous wherever it is defined. That is the theorem behind the advice "try substitution first".
Intuition. A continuous function is one you can draw without lifting your pen: no gaps, no jumps, no teleporting.
A hole is a missing stepping stone in an otherwise complete path. A jump is a staircase — you leap to a new height. An infinite discontinuity is a cliff. An oscillating one is a stretch of road that shakes so violently you cannot say where it is heading.
Example 1.59 (Continuity of a piecewise function). Is continuous at ?
Solution.
- Left-hand limit: .
- Right-hand limit: .
- The one-sided limits differ, so does not exist and the second condition of the definition fails.
- has a jump discontinuity at . The value matches neither side, but the limit had already decided the question.
Example 1.60 (Choosing a constant to make a function continuous). Find the value of for which
is continuous at .
Solution.
- Each branch is a polynomial, so each one-sided limit is found by substitution.
- From the left: .
- From the right, which also gives the value : .
- Continuity requires them to be equal: , so and .
- Check: both sides then equal , and . They agree.
Example 1.61 (Classifying every discontinuity of a formula). Locate and classify the discontinuities of and of .
Solution. Both denominators vanish at , and nowhere else are the functions undefined.
For : cancelling gives for . At the limit is and the value is undefined — a removable discontinuity, repaired by setting . At the reduced form still has a zero denominator and nonzero numerator, so the discontinuity is infinite.
For nothing cancels. At both and the numerator is nonzero ( and ), so both discontinuities are infinite, and the graph has two vertical asymptotes.□
Example 1.62 (Continuity through a composition). Where is continuous?
Solution. Write with and . The inner function is rational and continuous except at ; the outer is continuous on .
By the composition theorem, is continuous at every where is continuous and . The quotient is positive when and share a sign, that is for or .
So is continuous on , which is exactly its domain — as the theorem promises for a composition of standard functions.□
Pitfall. Continuity and differentiability are different demands. is continuous at — you can draw it without lifting the pen — but has a corner there and no derivative. The implication runs one way only: differentiable at forces continuous at , never the reverse.
1.13The Intermediate Value Theorem
Continuity is worth having because it supports theorems that say something exists without saying how to find it. The first of these is the Intermediate Value Theorem.
Theorem 1.63 (Intermediate Value Theorem). Let be continuous on the closed interval and let be any number strictly between and . Then there exists at least one in with
Every hypothesis is doing work. The interval must be closed: on the continuous function takes no value at the missing endpoint and the conclusion can fail. The function must be continuous on the whole interval: the floor function on never takes the value , although and straddle it. And the theorem promises existence, not uniqueness — a continuous function may hit many times.
A full proof requires the completeness of the real numbers (one takes to be the supremum of the set of in with and shows that , using continuity to rule out and ), and that argument belongs to real analysis. The idea is exactly the picture: a curve drawn from height to height without lifting the pen must cross every horizontal line in between.
The most common use is the special case : if is continuous and and have opposite signs, then has a root in . This turns the existence of a solution into a pair of sign checks.
Method 1.64 (Bisection: locating a root to any accuracy). To approximate a root of a continuous on with :
- Compute the midpoint and the sign of .
- If and have opposite signs, the root lies in ; replace by . Otherwise it lies in ; replace by .
- Repeat. After steps the root is trapped in an interval of length .
Each step costs one evaluation and buys one bit of accuracy. To get ten decimal places from a starting interval of length takes about steps.
Intuition. The Intermediate Value Theorem is common sense made precise: if it was F in the morning and F in the afternoon, then at some moment it was exactly F. Temperature does not teleport.
It is also the reason a wobbly four-legged table can usually be steadied by rotating it: the "gap" under the fourth leg changes continuously as you turn the table, is positive in one orientation and negative a quarter-turn later, so somewhere in between it is zero.
Example 1.65 (Showing an equation has a solution). Show that has a root between and .
Solution.
- Let , a polynomial and therefore continuous on .
- and .
- The number lies between and , so the IVT supplies in with .
The theorem gives no formula for ; it guarantees that hunting for it is not a waste of time.□
Example 1.66 (Bisection in practice). Locate the root of to within .
Solution. Start with , where and .
- : . The sign change is now between and ; take .
- : . Take .
- : . Take .
The root lies in , an interval of length , so is within of it. (The true root is , the plastic number.)□
Example 1.67 (An intermediate value other than zero). Show that the equation has a solution in .
Solution.
- Rewrite it as a root problem: let , continuous everywhere as a difference of continuous functions.
- and .
- By the IVT there is in with , that is .
Sanity check: bisection from here converges to , the number your calculator produces if you press cosine repeatedly.□
Pitfall. The converse of the IVT is false. A function that takes every intermediate value need not be continuous: extended by takes every value in on every interval around the origin, yet is discontinuous at . "Hits every value in between" is a consequence of continuity, not a test for it.
1.14Limits at infinity and horizontal asymptotes
A limit at infinity asks what a function settles down to as grows without bound. The symbol is not a place arrives at, so the definition again replaces "close to" with an inequality — this time on the input side.
Definition 1.68 (Limit at infinity). means: for every there is a number such that
is the same with .
Definition 1.69 (Horizontal asymptote). The line is a horizontal asymptote of if or .
A graph may have two horizontal asymptotes, one in each direction — has and — or one, or none. Nothing forbids the graph from crossing its horizontal asymptote, and crosses infinitely often; the asymptote describes eventual behaviour, not a barrier.
The basic fact behind every computation is that for any ,
which follows straight from the definition: given , take . For a rational function, divide numerator and denominator by the highest power of in the denominator; every term that still has an underneath then dies. This gives the familiar trichotomy for : if the limit is ; if it is the ratio of leading coefficients; if the function grows without bound and there is no horizontal asymptote.
Growth rates settle most of the remaining cases. As ,
for any : the logarithm grows more slowly than every positive power, and the exponential faster than every power. Whenever a quotient mixes these families, the faster-growing family decides the limit. In the other direction , so is a horizontal asymptote of to the left only.
Radicals need one extra care. For , ; for , . Dividing by inside a root as therefore introduces a sign, and forgetting it is the single most common error in this section.
Intuition. Limits at infinity are about the eventual balance of power. In the term is far bigger than at , and the quotient is nowhere near there. But at the squares dwarf everything else. "At infinity" means: wait long enough, and the leading terms win.
Example 1.70 (A rational function and the sign of a radical). Compute and .
Solution. Divide numerator and denominator by , but carry the root's sign carefully.
As we may write , so
As the quantity is negative, so and dividing the numerator by means dividing the radicand by and inserting a minus sign:
The graph has two horizontal asymptotes, to the right and to the left. Sanity check at : the numerator is about and the denominator about , giving .□
Example 1.71 (A difference of radicals). Compute .
Solution.
- The form is : both pieces grow without bound and the difference is undecided.
- Multiply and divide by the conjugate :
- Divide top and bottom by : .
- As this tends to .
Sanity check at : , and , close to .□
Example 1.72 (Exponentials at both ends). Find all horizontal asymptotes of .
Solution. As , and both parts blow up, so divide by :
As , and no work is needed: the quotient tends to .
So there are two horizontal asymptotes, and , and the function increases from one to the other. (This is -like behaviour, and indeed .)□
Example 1.73 (Growth rates decide). Compute and .
Solution. Both are . Using the hierarchy : the numerator grows more slowly than any positive power of , in particular more slowly than , so the first limit is . The exponential in the second beats every polynomial, so the second limit is as well.
Both can be confirmed by L'Hôpital's Rule — the second needs ten applications, which is the honest way to see why the hierarchy is worth memorising.□
Example 1.74 (An oscillation that never settles). Investigate and .
Solution. The first does not exist: returns to at and to at for arbitrarily large , so no single has all far-out values within of it.
The second does exist. Write it as ; the oscillating part is bounded by , which tends to by the Squeeze Theorem. The limit is , so is a horizontal asymptote even though the graph crosses it infinitely often.□
Pitfall. , not . When , pulling an out of a square root costs a minus sign, and skipping it turns a limit of into . A quick check: plug in a large negative number and look at the sign of the answer before you believe the algebra.
1.15Slant asymptotes
When a rational function's numerator is exactly one degree higher than its denominator, the graph has no horizontal asymptote — it runs off to infinity — yet it still approaches a line.
Definition 1.75 (Slant (oblique) asymptote). The line with is a slant asymptote of if
or the same limit as .
The definition says the vertical gap between curve and line closes, which is the same standard a horizontal asymptote meets with . For a rational function the line is found by long division: if
with , then the remainder term tends to at infinity and is the asymptote. A rational function has a slant asymptote exactly when , and then the quotient of the division is the asymptote.
Intuition. Divide by and you get remainder : for rough purposes "is" . Polynomial long division does the same thing with functions, and the remainder is the part that becomes negligible once is large. The quotient is the simple function your rational function eventually imitates.
Example 1.76 (Finding a slant asymptote by division). Find the slant asymptote of .
Solution.
- Degrees are and , differing by one, so a slant asymptote exists.
- Long division: , so
- The remainder tends to as , so is a slant asymptote in both directions.
- The sign of the remainder also tells you the side: for the curve lies above the line, for below it.
The function also has a vertical asymptote at , where the remainder blows up.□
Example 1.77 (A slant asymptote with a radical). Show that is a slant asymptote of as , and find the asymptote as .
Solution. For the right-hand direction, consider and rationalise:
So the gap tends to , not : the asymptote is not but . Indeed .
As the same computation with gives , so and the left-hand asymptote is . The graph is a hyperbola-like curve with two slant asymptotes meeting at .
Moral: compute the limit of rather than guessing the line from the leading term.□
Example 1.78 (When the difference of degrees is two). Does have a slant asymptote?
Solution. Degrees differ by two, so the answer should be no, and division confirms it:
The curve approaches the parabola , not a line: the difference tends to . This is a curvilinear asymptote, a perfectly respectable object but not covered by the definition of a slant asymptote, which requires a line.□
Pitfall. Long division must be carried out before you read off the asymptote; the ratio of leading terms is not enough. For , the leading behaviour suggests , but division gives , so the asymptote is . The constant term matters.
1.16L'Hôpital's Rule
Algebra clears an indeterminate form when the cancellation is visible. For at , or at , nothing factors. L'Hôpital's Rule replaces the values, which say nothing, by the rates of change, which say everything.
Theorem 1.79 (L'Hôpital's Rule). Suppose and are differentiable on an open interval containing (except possibly at ) and there. Suppose further that
Then
provided the limit on the right exists or is . The same holds for one-sided limits and for .
Proof. The idea, in the case with and continuous at with :
The general statement needs the Cauchy Mean Value Theorem: if and are continuous on and differentiable on , there is a point between and with
With this rearranges to . As the intermediate point is squeezed to as well, so the left side inherits the limit of . The case is proved by a similar but more delicate argument, which belongs to real analysis.∎
Three features of the statement deserve emphasis.
It is not the quotient rule. You differentiate the numerator and the denominator separately and form a new quotient; applying the quotient rule here is the single most common way to get a wrong answer.
It is not a chain-rule trick or a cancellation of the 's. The reason it works is the displayed computation above: near , both functions are approximately linear, and , and the common factor cancels. The rule is that approximation made exact.
The implication is one-way. If exists, it equals . If fails to exist, nothing follows — the original limit may exist anyway, and you must use another method.
Method 1.80 (Handling the seven indeterminate forms).
- and : apply the rule directly, and re-check the form after each application.
- : turn the product into or , whichever differentiates more kindly.
- : combine over a common denominator, rationalise, or factor out the dominant term, to reach a quotient.
- , , : set , take logarithms to get , which is a form; find and conclude .
The last step of the logarithm method uses continuity of the exponential: if then by the composition theorem. Forgetting to exponentiate at the end — reporting instead of — is the classic slip.
Intuition. Both functions are heading to zero, so their values tell you nothing. The derivative measures how fast each one gets there, and the ratio of speeds is exactly the information the ratio of values lost.
If one application still gives , the first-order speeds cancelled too. Applying the rule again compares accelerations, and so on, until the rates finally differ enough to settle the limit.
Example 1.81 (A single application). Compute .
Solution.
- Substitution gives , so the rule applies.
- Differentiate separately: and .
- The new limit is , no longer indeterminate.
Example 1.82 (Repeated applications). Compute .
Solution.
- Substitution gives ; apply the rule to get .
- Still ; apply it again to get .
- Still ; a third application gives .
- This is a definite value, so the limit is .
Each pass peeled away one order of cancellation between and .□
Example 1.83 (Converting a 0 · ∞ form). Compute .
Solution.
- As , while : a product, not a quotient, so the rule does not apply yet.
- Rewrite , now of the form .
- Differentiate: and .
- So the limit equals .
The other rewrite, , is legal but leads to a messier derivative — choose the arrangement that simplifies.□
Example 1.84 (An ∞ − ∞ form). Compute .
Solution.
- Both terms blow up: form .
- Common denominator: , now .
- L'Hôpital once: , still .
- Again: .
The limit is : near the origin and agree closely enough that their reciprocals' difference vanishes.□
Example 1.85 (A one-to-the-infinity form via logarithms). Compute .
Solution.
- The base tends to and the exponent to : the form , which is indeterminate — a base slightly above raised to a huge power can do anything.
- Let , so , of form .
- Rewrite as a quotient: , form .
- Differentiate top and bottom with respect to . The top has derivative and the bottom , so the quotient is .
- Hence , and by continuity of , .
Sanity check: this is the compound-interest limit, and ; at the expression is , closing in from below.□
Example 1.86 (A zero-to-the-zero form). Compute .
Solution.
- Base , exponent : form , indeterminate.
- Let , so , of form .
- Rewrite as , form . L'Hôpital gives
- So and .
Example 1.87 (An infinity-to-the-zero form). Compute .
Solution.
- Base , exponent : form .
- , of form .
- L'Hôpital: .
- So . Sanity check: .
Example 1.88 (Where the rule loops forever). Try to compute with L'Hôpital's Rule.
Solution. The form is , so the rule applies. Differentiating gives
which is the reciprocal of the original expression — still . A second application returns the original quotient, and the process cycles forever.
The rule was applicable and gave no information, which is allowed: it promises equality of limits, not progress. Algebra settles it at once: .□
Example 1.89 (Where the rule's hypothesis fails). Evaluate , and say what L'Hôpital's Rule would have given.
Solution. Substitution gives . The form is not indeterminate, so the rule does not apply and the limit is simply .
Applying it anyway gives , which is wrong. Checking the form before differentiating is not a formality; it is the hypothesis of the theorem.□
Pitfall. Two failure modes to watch for. First, the rule can be applicable and useless: has form , and differentiating gives , which has no limit — yet the original limit is by the Squeeze Theorem. A nonexistent limit for tells you nothing about . Second, the answer to a , or problem is , where is the limit of the logarithm; stopping at answers a different question.
Summary. means: for every there is a with . The value is irrelevant, the limit is unique, and it exists exactly when both one-sided limits exist and agree. When and both exist, the limit laws give sums, constant multiples, products, powers and roots, and provided ; hence for a polynomial and for a rational with . Indeterminate forms yield to algebra, to the Squeeze Theorem ( near with forces ), or to the radian limits and . Continuity at needs all three of defined, the limit existing, and ; it survives sums, products, quotients with , and composition. For continuous on the closed interval , the Intermediate Value Theorem gives in with for every strictly between and . L'Hôpital's Rule replaces by only for and , with differentiable near , , and the new limit existing or infinite.
- Plugging in the value too early before simplifying an indeterminate form. Always check for or first.
- Concluding the limit does not exist just because is undefined. The function not being defined at says nothing about the limit.
- Trusting a table of values. Sampling can miss oscillation, as with near , and rounding error corrupts tables built from very small inputs.
- Ignoring one-sided limits for piecewise functions and absolute values. You must check both sides, and the value assigned at the breakpoint decides continuity, never the limit.
- Confusing continuity with differentiability. Continuity means no jumps or holes; differentiability means no sharp corners either. is continuous at but not differentiable.
- Forgetting to cancel common factors before declaring a vertical asymptote. A common factor means a hole, not an asymptote.
- Writing when is negative. It equals , and the missing minus sign flips the horizontal asymptote as .
- Reading a slant asymptote off the leading terms instead of doing the long division. approaches , not .
- Using L'Hôpital's Rule when the form is not indeterminate. It only applies to or .
- Applying the quotient rule instead of differentiating numerator and denominator separately in L'Hôpital's Rule.
- Stopping at the limit of the logarithm in a , or problem. The answer is to that power.
- Concluding that a limit does not exist because does not exist. L'Hôpital's implication runs one way only.
- In an – proof, choosing after seeing , or presenting the backwards analysis as the proof. The proof is the forward verification with a that depends only on .
- Applying a limit law whose hypotheses fail: the quotient law needs a nonzero limit in the denominator, and every law needs the individual limits to exist.
- Forgetting that requires radians. In degrees the value is .
- Thinking all discontinuities are 'bad' — removable ones are often easy to fix, and the function can be made continuous with a redefinition.