mathcalculus

limits

what a function heads toward, even where it isn't defined.

report a mistake
.md

a limit is where f(x) is heading as x closes in on a, from both sides. what happens at a itself doesn't count, so a function can have a limit where it has no value.

the limit
lim x→a f(x) = L f(x) as close to L as you like, once x is close enough to a. a itself is left out
a hole
0/0 a sign to simplify, not an answer. factor, cancel, then plug in
both sides
left = right or there is no limit. a jump has one from each side
blowing up
1/x² → ∞ how the limit fails. ∞ isn't a number
at infinity
(2x + 1)/(x − 3) → 2 divide by the biggest power. a horizontal asymptote
continuous
lim f(x) = f(a) then plugging in is the limit
two to know
sin x / x → 1 by a squeeze. and (1 + 1/n)ⁿ → e
reach for it
  • a formula that comes out 0/0
  • asymptotes: what a graph does at its edges
  • the derivative and the integral, which are both limits
on this page
  1. the idea
  2. explore
  3. try it
  4. the rules
  5. worked examples
  6. the key idea up close
  7. pitfalls
  8. practice
  9. sources

the idea

take f(x)=x2−1x−1f(x) = \dfrac{x^2 - 1}{x - 1} and ask what it does near x=1x = 1. at 1 itself the formula gives 00\frac{0}{0}, which is nothing: no value, no point on the graph. but a step to the left, at x=0.9x = 0.9, it gives 1.9. at 0.99, 1.99. at 0.999, 1.999. from the right, 1.1 gives 2.1, 1.01 gives 2.01 and 1.001 gives 2.001.

xx0.90.990.99911.0011.011.1
f(x)f(x)1.91.991.999–2.0012.012.1

the values close in on 2 from both sides, and they get as close as you like: as near to 1 as xx goes, that near to 2 f(x)f(x) goes. that is a limit.

lim⁡x→1x2−1x−1=2\lim_{x \to 1} \frac{x^2 - 1}{x - 1} = 2

read it as “the limit of f(x)f(x), as xx goes to 1, is 2”. it says where ff is heading, and nothing about where it is. f(1)f(1) can be something else, or missing, as here. the movie walks in from both sides.

−1−0.500.511.522.5301234
take f(x)=x2−1x−1f(x) = \dfrac{x^2 - 1}{x - 1}. at x=1x = 1 the formula is 00\frac{0}{0}, so there is no point there: the graph is a line with a hole at (1,2)(1, 2).

an animation on a plot from x = −1 to 3 and y = 0 to 4 of f(x) = (x² − 1)/(x − 1): the line y = x + 1 draws itself with a hole at (1, 2), an open ring. then a point walks in toward 1 from the left, stopping at x = 0.5, 0.9, 0.99 and 0.999, while a table beside the plot fills with f(x) = 1.5, 1.9, 1.99 and 1.999. then it walks in from the right, stopping at x = 1.5, 1.1, 1.01 and 1.001, with f(x) = 2.5, 2.1, 2.01 and 2.001. both columns close in on 2, a dotted line marks y = 2, and the limit is written: lim x→1 f(x) = 2. the ring stays open.

the hole has a reason. for every xx but 1, x2−1=(x−1)(x+1)x^2 - 1 = (x - 1)(x + 1), and the (x−1)(x - 1) cancels:

x2−1x−1=(x−1)(x+1)x−1=x+1(x≠1)\begin{gathered} \frac{x^2 - 1}{x - 1} = \frac{(x - 1)(x + 1)}{x - 1} \\[6pt] = x + 1 \qquad (x \ne 1) \end{gathered}

so the graph is the line y=x+1y = x + 1 with one point missing, and the limit is where that point would be: 1+1=21 + 1 = 2. that is the pattern for every 00\frac{0}{0}. it isn’t an answer, it’s a sign that the formula is hiding a factor. simplify first, then plug in.

limits are what the next three pages are made of. a derivative is a limit of slopes, an integral is a limit of sums, and a series is a limit of running totals.

explore

the game behind the definition. someone picks how close to LL they want f(x)f(x) to be: a band of half-height ε\varepsilon around LL. you answer with a window of half-width δ\delta around aa, and you win if every xx in the window, except aa itself, has f(x)f(x) inside the band. the limit is LL when you can win for every ε\varepsilon, however small. slide ε\varepsilon and the figure finds the widest δ\delta that works. drag the point along the curve to check it.

−1−0.500.511.522.5301234(1, 2)

drag the point along the curve, or tab to it and use the left and right arrow keys

the band, L ± ε
1.50 to 2.50
the window, a ± δ
δ = 0.500: 0.500 to 1.500
the point
x = 1.70: f(x) = 2.700, outside the window, outside the band

on this line f(x) is exactly as far from 2 as x is from 1, so δ = ε = 0.50 works and nothing wider does. the hole at 1 doesn't matter: the game leaves x = 1 out

inside the window, every point is inside the band. that's the whole game

an interactive plot of the ε–δ game with four curves to pick from: (x² − 1)/(x − 1) near 1, x² near 2, a jump from 1.5 to 2 at 1, and sin x / x near 0. a slider sets ε from 0.05 to 1. the figure shades the band from L − ε to L + ε in cyan, and in amber the widest window from a − δ to a + δ that keeps the curve inside the band, with the piece of curve over the window drawn in amber too. a point drags along the curve, or moves with the left and right arrow keys, and the readout says whether it's inside the window and inside the band. it opens on the line with the hole at ε = 0.5: the band from 1.5 to 2.5, δ = 0.5, the window from 0.5 to 1.5, and the point at x = 1.7, where f(x) = 2.7, outside both. on x² at ε = 0.5, δ = 0.121. the jump has no δ at any ε up to 0.5, and any δ past it. on sin x / x at ε = 0.5, δ = 1.895.

inside the window, every point of the curve is inside the band. the limit exists when there's a window for every band.

try it

lim x→1 (x² − 1)/(x − 1) = ?

pick one.

0 / 0 right

a practice exercise with five kinds of question: a limit that comes out 0/0 and needs factoring, the limit of a function with two rules from the left, the right or both sides, a fraction that blows up and which way, a ratio of polynomials as x → ∞, and whether a function is continuous at a point. it opens on lim x→1 (x² − 1)/(x − 1), which is 2, then a function that is 2x below 1 and x + 3 from 1 on, where the limit at 1 doesn't exist. after each answer the function is drawn.

the rules

the limit

lim⁡x→af(x)=L\lim_{x \to a} f(x) = L

f(x)f(x) gets as close to LL as you like, for every xx close enough to aa, on either side, and aa itself is left out. why leave it out: the question is where ff is heading, and that has an answer whether or not f(a)f(a) exists, so the definition never looks. and when a limit exists it is one number: two different values can’t both be what every nearby f(x)f(x) is close to.

one-sided limits

lim⁡x→a−f(x)lim⁡x→a+f(x)\lim_{x \to a^-} f(x) \qquad \lim_{x \to a^+} f(x)

the same question asked from one side only: the minus is from the left, x<ax < a, and the plus from the right. the two-sided limit exists exactly when both one-sided limits exist and agree, and then it is their shared value. why: “close to aa” means on both sides, so when the left heads to 2 and the right to 4, no single number is close to all the nearby values. that is a jump, and a jump has no limit at the jump, only one from each side.

limits that blow up

lim⁡x→01x2=∞lim⁡x→0−1x=−∞lim⁡x→0+1x=∞\begin{gathered} \lim_{x \to 0} \frac{1}{x^2} = \infty \\[6pt] \lim_{x \to 0^-} \frac{1}{x} = -\infty \qquad \lim_{x \to 0^+} \frac{1}{x} = \infty \end{gathered}

near 0, 1/x21/x^2 grows past every number: 100 at x=0.1x = 0.1, 10,000 at 0.01, a million at 0.001. the limit doesn’t exist, since there’s no number the values close in on, and =∞= \infty records how it fails: by growing without bound. ∞\infty isn’t a value to plug in or do arithmetic with. why 1/x21/x^2 blows up: name any bound MM, and 1/x2>M1/x^2 > M as soon as ∣x∣<1/M|x| < 1/\sqrt{M}. the graph has a vertical asymptote at x=0x = 0. 1/x1/x blows up too, but the sides disagree, −∞-\infty from the left and +∞+\infty from the right, so even the ∞\infty description needs a side. a fraction whose bottom goes to 0 while its top doesn’t blows up, and whether the bottom changes sign at aa decides if the two sides agree.

limits at infinity

lim⁡x→∞1x=0lim⁡x→∞2x+1x−3=2\lim_{x \to \infty} \frac{1}{x} = 0 \qquad \lim_{x \to \infty} \frac{2x + 1}{x - 3} = 2

x→∞x \to \infty asks what ff settles toward as xx grows past every number. 1/x1/x settles to 0: it’s under ε\varepsilon once x>1/εx > 1/\varepsilon. for a ratio, divide top and bottom by the biggest power of xx in it:

2x+1x−3=2+1/x1−3/x→2+01−0=2\frac{2x + 1}{x - 3} = \frac{2 + 1/x}{1 - 3/x} \to \frac{2 + 0}{1 - 0} = 2

the leftover fractions all have xx in the bottom and go to 0, so only the leading terms survive. a value the graph settles toward is a horizontal asymptote, here y=2y = 2: at x=100x = 100 the function is 2.072, and at 1,000 it’s 2.007. when the top’s biggest power beats the bottom’s, the ratio blows up instead, and when the bottom’s wins, the limit is 0.

−50510−50510x = 3y = 2

the graph of (2x + 1)/(x − 3) from x = −6 to 12 and y = −6 to 10, with its two asymptotes dotted: x = 3, where the left arm runs down toward −∞ (−68 at x = 2.9) and the right arm comes down from +∞ (72 at x = 3.1), and y = 2, which both arms settle toward: 3 at x = 10, 2.072 at 100, 2.007 at 1,000.

two asymptotes, two kinds of limit: x → 3 blows up, and x → ∞ settles to 2.

continuity

lim⁡x→af(x)=f(a)\lim_{x \to a} f(x) = f(a)

ff is continuous at aa when three things hold: f(a)f(a) exists, the limit exists, and they agree. three ways to break it, one per condition: a hole (f(a)f(a) missing, or a value off the curve), a jump (no limit), a blow-up (no limit, and no value). why it matters: for a continuous function the limit is the value, so plugging in answers the limit question. polynomials, roots, sin⁡\sin, cos⁡\cos, exe^x and log⁡\log are continuous wherever they’re defined, and so is anything built from them with ++, −-, ×\times, ÷\div and composition, away from the points where a bottom is 0 or a root or a log gets an input it can’t take. that is why lim⁡x→2(x2+1)=5\lim_{x \to 2} (x^2 + 1) = 5 takes no work and the hole took factoring: x+1x + 1 is continuous at 1, and the original formula isn’t defined there.

a hole

f(1) is missing. the limit, 2, is there

a jump

f(1) = 2, but no limit: 1 from the left, 2 from the right

a blow-up

no value and no limit: f grows past every bound

three sketches at x = 1, each with a dotted line there. a hole: the line y = x + 1 with an open ring at (1, 2), so f(1) is missing while the limit, 2, is there. a jump: y = x up to 1 and y = x + 1 from 1 on, with an open ring at (1, 1) and a filled dot at (1, 2), so f(1) = 2 but the sides disagree and there is no limit. a blow-up: 1/(x − 1)², two arms climbing past the top either side of x = 1, with no value and no limit there.

the limit laws

if lim⁡x→af(x)=L\lim_{x \to a} f(x) = L and lim⁡x→ag(x)=M\lim_{x \to a} g(x) = M:

lim⁡ (f±g)=L±Mlim⁡ (c⋅f)=c Llim⁡ (f⋅g)=L Mlim⁡fg=LMwhen M≠0\begin{gathered} \lim\,(f \pm g) = L \pm M \\[4pt] \lim\,(c \cdot f) = c\,L \\[4pt] \lim\,(f \cdot g) = L\,M \\[4pt] \lim \frac{f}{g} = \frac{L}{M} \quad \text{when } M \ne 0 \end{gathered}

limits pass through arithmetic. why: if ff stays within ε/2\varepsilon/2 of LL and gg within ε/2\varepsilon/2 of MM, their sum stays within ε\varepsilon of L+ML + M, and the other laws follow the same way with a little more algebra. the quotient law needs M≠0M \ne 0, and that is where 00\frac{0}{0} comes from: when both limits are 0 the law says nothing, and the answer can be anything. x2−1x−1→2\frac{x^2 - 1}{x - 1} \to 2, x−1x2−1→12\frac{x - 1}{x^2 - 1} \to \frac{1}{2}, and x−1(x−1)2\frac{x - 1}{(x - 1)^2} blows up, all three 00\frac{0}{0} at 1. that is why simplifying first is the rule.

the squeeze: if g(x)≤f(x)≤h(x)g(x) \le f(x) \le h(x) near aa, and gg and hh both have limit LL there, so does ff. why: ff is trapped between two things heading to the same place. it’s the tool for a limit nothing cancels in, like the first one below.

two limits to know

lim⁡x→0sin⁡xx=1lim⁡n→∞(1+1n)n=e\begin{gathered} \lim_{x \to 0} \frac{\sin x}{x} = 1 \\[8pt] \lim_{n \to \infty} \left(1 + \frac{1}{n}\right)^n = e \end{gathered}

the first is the small-angle fact from the trig page, sin⁡x≈x\sin x \approx x for small xx, made exact: at x=0.1x = 0.1 the ratio is 0.99833, at 0.01 it’s 0.999983. it’s 00\frac{0}{0} at 0 and nothing cancels, so it takes a squeeze. on the circle of radius 1, for 0<x<π/20 < x < \pi/2, the triangle with corners (0,0)(0, 0), (1,0)(1, 0) and (cos⁡x,sin⁡x)(\cos x, \sin x) sits inside the sector of angle xx, which sits inside the triangle out to the tangent line at x=1x = 1, whose top corner is (1,tan⁡x)(1, \tan x):

sin⁡x2≤x2≤tan⁡x2\frac{\sin x}{2} \le \frac{x}{2} \le \frac{\tan x}{2}

divide through by sin⁡x2\frac{\sin x}{2} and flip each fraction: cos⁡x≤sin⁡xx≤1\cos x \le \frac{\sin x}{x} \le 1. as x→0x \to 0, cos⁡x→1\cos x \to 1, and the ratio is squeezed to 1. that covers the right side, and the left follows since sin⁡x/x\sin x / x is even.

01012sin xxtan x
the triangle to the point
½ sin x = 0.359
the sector
½ x = 0.400
the triangle to the tangent
½ tan x = 0.515

cos x = 0.697 ≤ sin x / x = 0.897 ≤ 1

each area is the one before times something: ½ sin x, then ½ x, then ½ tan x. divide all three by ½ sin x and the sandwich appears. as x shrinks, the three shapes become the same sliver

a quarter of the circle of radius 1 with a point at angle x, 0.8 radians to start, and three nested shapes: the triangle from the center to (1, 0) and the point, in cyan, with area ½ sin x = 0.359; the sector of angle x, in amber, with area ½ x = 0.400; and the triangle out to the tangent line, outlined, with area ½ tan x = 0.515. a slider moves x from 0.1 to 1.1 radians, and a readout gives the three areas and the sandwich they make, cos x = 0.697 ≤ sin x / x = 0.897 ≤ 1. at x = 0.1 it reads cos x = 0.995 ≤ sin x / x = 0.998 ≤ 1.

three areas, smallest to largest. divide all three by the smallest and sin x / x is caught between cos x and 1.

the second is the number behind compounding, from the exponents + logs page: one unit of money at 100% a year, paid in nn parts, grows to (1+1/n)n(1 + 1/n)^n. that’s 2 for one payment, 2.25 for two, 2.6130 monthly, 2.7146 daily, and the limit, paid at every instant, is e≈2.718e \approx 2.718. it’s a limit of a different shape. the 1/n1/n heads to 0 and the exponent to infinity at once, so neither the limit laws nor plugging in apply: 1∞1^\infty is as empty as 00\frac{0}{0}. the derivatives page is where ee earns its place.

worked examples

a hole

lim⁡x→3x2−9x−3\lim_{x \to 3} \dfrac{x^2 - 9}{x - 3}. plugging in gives 00\frac{0}{0}. factor: x2−9=(x−3)(x+3)x^2 - 9 = (x - 3)(x + 3), cancel, and x+3→6x + 3 \to 6. the table agrees: at x=2.99x = 2.99 the original is 5.99, and at 3.01 it’s 6.01.

a square root

lim⁡x→0x+4−2x\lim_{x \to 0} \dfrac{\sqrt{x + 4} - 2}{x} is 00\frac{0}{0} again, and there’s nothing to factor. multiply top and bottom by the conjugate, x+4+2\sqrt{x + 4} + 2, so the root squares away:

x+4−2x⋅x+4+2x+4+2=(x+4)−4x (x+4+2)=1x+4+2\begin{gathered} \frac{\sqrt{x + 4} - 2}{x} \cdot \frac{\sqrt{x + 4} + 2}{\sqrt{x + 4} + 2} \\[6pt] = \frac{(x + 4) - 4}{x\,(\sqrt{x + 4} + 2)} = \frac{1}{\sqrt{x + 4} + 2} \end{gathered}

the xx cancels, and plugging in x=0x = 0 gives 12+2=14\frac{1}{2 + 2} = \frac{1}{4}. at x=0.01x = 0.01 the original is 0.2498.

a jump, and a non-jump

f(x)=x+1f(x) = x + 1 for x<1x < 1 and f(x)=3−xf(x) = 3 - x for x≥1x \ge 1. from the left, x+1→2x + 1 \to 2. from the right, 3−x→23 - x \to 2. the rule changes at 1 but the values meet, so lim⁡x→1f(x)=2\lim_{x \to 1} f(x) = 2, and since f(1)=2f(1) = 2 as well, ff is continuous there. change the second rule to 4−x4 - x and the right side heads to 3: the sides disagree, there is no limit, and ff jumps.

a blow-up

lim⁡x→2x+1x−2\lim_{x \to 2} \dfrac{x + 1}{x - 2}. the top heads to 3 and the bottom to 0, so the fraction blows up. which way: just left of 2 the bottom is a small negative number, so f→−∞f \to -\infty, and just right of it a small positive one, so f→+∞f \to +\infty. at x=1.99x = 1.99 the value is −299, at 2.01 it’s 301. the sides disagree, so the limit doesn’t exist in either sense, and x=2x = 2 is a vertical asymptote. square the bottom, x+1(x−2)2\frac{x + 1}{(x - 2)^2}, and both sides turn positive, 29,900 at 1.99: then lim⁡=∞\lim = \infty.

at infinity

lim⁡x→∞3x2−x2x2+5\lim_{x \to \infty} \dfrac{3x^2 - x}{2x^2 + 5}. divide top and bottom by x2x^2: 3−1/x2+5/x2→32\dfrac{3 - 1/x}{2 + 5/x^2} \to \dfrac{3}{2}. at x=100x = 100 the ratio is 1.495, and at 1,000 it’s 1.4995. when the powers differ, the bigger one wins: x+1x2+1→0\dfrac{x + 1}{x^2 + 1} \to 0 and x2+1x+1→∞\dfrac{x^2 + 1}{x + 1} \to \infty. at x=100x = 100 they’re 0.0101 and 99.02.

a limit made continuous

g(x)=x2−1x−1g(x) = \dfrac{x^2 - 1}{x - 1} for x≠1x \ne 1, and g(1)=3g(1) = 3. the limit at 1 is 2 and g(1)=3g(1) = 3. they disagree, so gg isn’t continuous at 1, even though it has a value there: the graph is the line with a hole, plus a stray point at (1,3)(1, 3). set g(1)=2g(1) = 2 and it is continuous. the hole is filled with the limit, which is why this kind of break is called removable.

the key idea up close

the ε–δ definition

“as close as you like” has an exact form. lim⁡x→af(x)=L\lim_{x \to a} f(x) = L means:

for every ε>0there is a δ>0 such that0<∣x−a∣<δ⇒  ∣f(x)−L∣<ε\begin{gathered} \text{for every } \varepsilon > 0 \\[2pt] \text{there is a } \delta > 0 \text{ such that} \\[6pt] 0 < |x - a| < \delta \\[2pt] \Rightarrow\; |f(x) - L| < \varepsilon \end{gathered}

ε\varepsilon is the challenge: how close to LL the values must come. δ\delta is the answer: how close to aa is close enough. the 0<0 < leaves aa itself out. the explore figure plays it: for every band there has to be a window, and the window may shrink as the band does. the limit fails when some band has no window.

a proof for the hole, f(x)=x2−1x−1f(x) = \frac{x^2 - 1}{x - 1} at a=1a = 1, L=2L = 2. given ε\varepsilon, take δ=ε\delta = \varepsilon. if 0<∣x−1∣<δ0 < |x - 1| < \delta, then x≠1x \ne 1, so f(x)=x+1f(x) = x + 1, and

∣f(x)−2∣=∣x+1−2∣=∣x−1∣<δ=ε\begin{gathered} |f(x) - 2| = |x + 1 - 2| \\[4pt] = |x - 1| < \delta = \varepsilon \end{gathered}

on a curve, how much xx may move depends on where you are. for x2x^2 at a=2a = 2, L=4L = 4: ∣x2−4∣=∣x−2∣ ∣x+2∣|x^2 - 4| = |x - 2|\,|x + 2|. keep ∣x−2∣<1|x - 2| < 1, so that ∣x+2∣<5|x + 2| < 5. then ∣x2−4∣<5 ∣x−2∣|x^2 - 4| < 5\,|x - 2|, and δ=min⁡(1,ε/5)\delta = \min(1, \varepsilon/5) works. it isn’t the widest window, the figure finds 4+ε−2\sqrt{4 + \varepsilon} - 2, but any window that works is enough: the definition asks for one.

and why the jump has no limit. f(x)=1.5f(x) = 1.5 for x<1x < 1 and f(x)=2f(x) = 2 for x≥1x \ge 1, and suppose some LL worked. take ε=0.25\varepsilon = 0.25. any window around 1 holds an xx on each side, with values 1.5 and 2, each within 0.25 of LL and so less than 0.5 apart. but they are exactly 0.5 apart. no LL works.

the other limits on this page have the same shape with one piece swapped. at infinity the window becomes a threshold: for every ε\varepsilon there is an NN with x>N⇒∣f(x)−L∣<εx > N \Rightarrow |f(x) - L| < \varepsilon. a blow-up swaps the band for a floor: for every MM there is a δ\delta with 0<∣x−a∣<δ⇒f(x)>M0 < |x - a| < \delta \Rightarrow f(x) > M.

pitfalls

practice

  1. find lim⁡x→3x2−9x−3\lim_{x \to 3} \dfrac{x^2 - 9}{x - 3} and lim⁡x→3x2−9x+3\lim_{x \to 3} \dfrac{x^2 - 9}{x + 3}.

    answer

    the first is 00\frac{0}{0} at 3, so factor: (x−3)(x+3)x−3=x+3\frac{(x - 3)(x + 3)}{x - 3} = x + 3 for x≠3x \ne 3, which heads to 6. the second isn’t 00\frac{0}{0}: the bottom is 6 at x=3x = 3, the function is continuous there, and plugging in gives 06=0\frac{0}{6} = 0.

  2. find lim⁡x→0x+9−3x\lim_{x \to 0} \dfrac{\sqrt{x + 9} - 3}{x}.

    answer

    multiply top and bottom by the conjugate, x+9+3\sqrt{x + 9} + 3. the top becomes (x+9)−9=x(x + 9) - 9 = x, the xx cancels, and what’s left is 1x+9+3\dfrac{1}{\sqrt{x + 9} + 3}, which is 13+3=16≈0.1667\dfrac{1}{3 + 3} = \dfrac{1}{6} \approx 0.1667 at x=0x = 0. check: at x=0.01x = 0.01 the original is 0.1666.

  3. f(x)=2x+1f(x) = 2x + 1 for x<2x < 2 and f(x)=x2f(x) = x^2 for x≥2x \ge 2. find both one-sided limits at 2, say whether the limit exists, and whether ff is continuous at 2.

    answer

    from the left, 2x+1→52x + 1 \to 5. from the right, x2→4x^2 \to 4. they disagree, so lim⁡x→2f(x)\lim_{x \to 2} f(x) doesn’t exist, and ff isn’t continuous at 2. f(2)=4f(2) = 4 matches the right side only, so ff is continuous from the right there, and that’s all.

  4. find lim⁡x→∞5x2+3x2x2−7\lim_{x \to \infty} \dfrac{5x^2 + 3x}{2x^2 - 7} and lim⁡x→∞3x+1x2+2\lim_{x \to \infty} \dfrac{3x + 1}{x^2 + 2}.

    answer

    divide the first by x2x^2: 5+3/x2−7/x2→52\dfrac{5 + 3/x}{2 - 7/x^2} \to \dfrac{5}{2}. at x=1,000x = 1{,}000 it’s 2.5015. in the second the bottom’s power wins, so the limit is 0: divided by x2x^2 it’s 3/x+1/x21+2/x2→01\dfrac{3/x + 1/x^2}{1 + 2/x^2} \to \dfrac{0}{1}, and at x=1,000x = 1{,}000 it’s 0.0030.

  5. g(x)=x2−4x−2g(x) = \dfrac{x^2 - 4}{x - 2} for x≠2x \ne 2, and g(2)=cg(2) = c. for which cc is gg continuous at 2?

    answer

    away from 2, g(x)=(x−2)(x+2)x−2=x+2g(x) = \dfrac{(x - 2)(x + 2)}{x - 2} = x + 2, so the limit at 2 is 4. continuity needs g(2)g(2) to equal the limit: c=4c = 4. any other cc leaves a hole filled in the wrong place.

  6. find lim⁡x→0sin⁡3xx\lim_{x \to 0} \dfrac{\sin 3x}{x} and lim⁡x→01−cos⁡xx2\lim_{x \to 0} \dfrac{1 - \cos x}{x^2}.

    answer

    write the first as 3⋅sin⁡3x3x3 \cdot \dfrac{\sin 3x}{3x}. as x→0x \to 0 so does u=3xu = 3x, and sin⁡uu→1\frac{\sin u}{u} \to 1, so the limit is 3. check: at x=0.01x = 0.01 the ratio is 2.9996.

    for the second, 1−cos⁡x=2sin⁡2(x/2)1 - \cos x = 2 \sin^2(x/2), so the fraction is 2sin⁡2(x/2)x2=12(sin⁡(x/2)x/2)2\dfrac{2 \sin^2(x/2)}{x^2} = \dfrac{1}{2} \left(\dfrac{\sin(x/2)}{x/2}\right)^2, and the bracket heads to 1. the limit is 12\frac{1}{2}. at x=0.1x = 0.1 the ratio is 0.49958. it’s the fraction from the last pitfall, and this form is the one that computes safely.

sources

  1. mdn’s Number.EPSILON (opens in a new tab) reference page: the constant is the difference between 1 and the smallest floating point number greater than 1, 2⁻⁵² or about 2.22 × 10⁻¹⁶, because the double format has 52 bits for the mantissa. ↩