---
title: Limit laws and algebraic limits
heading: Finding a limit without a calculator
eyebrow: A5 · Lesson 3 · Limit laws
xp: 40
---

::: hook
Zooming in on a graph shows what a limit is, but it can't give an exact answer. Engineers need exact ones: the gain of a circuit as a part's value goes to zero, or the slope of a curve at a point, which is a limit where both the top and bottom of a fraction go to zero. A small set of rules, plus two algebra moves for the troublesome 0/0 case, handles most limits you'll meet.
:::

::: play
- The curve is $\dfrac{\sin x}{x}$, squeezed between $\cos x$ and 1. At $x = 0$ the formula is 0/0.
- Move the point toward 0 from either side. What value does the readout approach?
- Watch the two bounding curves. Why must $\frac{\sin x}{x}$ be trapped between them?
:::
:::

```sim plot
view: graph
x: x = -3..3
y: y = -0.3..1.2
slider: a = -3..3 step 0.01 = 1.5
plot: sin(x)/x | label: sin x / x
plot: cos(x) | dashed | color: ch2 | label: cos x
plot: 1 | dashed | color: ch3 | label: 1
point: a, sin(a + 1e-9)/(a + 1e-9) | label: x
readout: sin x / x = sin(a + 1e-9)/(a + 1e-9) | digits: 6
```

::: predict
## What is $\displaystyle\lim_{x \to 3}\frac{x^2 - 9}{x - 3}$?

- [ ] 0
- [ ] It doesn't exist, because the bottom is zero
- [x] 6
- [ ] 9

::: reveal
6. At $x = 3$ the formula is 0/0, which says nothing. But $x^2 - 9 = (x - 3)(x + 3)$, so for every $x \ne 3$ the fraction equals $x + 3$, which approaches 6. A limit only cares about values near the point, never at it, so canceling the common factor is allowed.
:::
:::

::: nameit
## The limit laws

If $\lim f(x) = L$ and $\lim g(x) = M$ as $x \to a$, then

$$\lim(f \pm g) = L \pm M \qquad \lim(cf) = cL \qquad \lim(fg) = LM \qquad \lim\frac{f}{g} = \frac{L}{M}\ (M \ne 0)$$

and $\lim f^n = L^n$. Together they say: for polynomials, rational functions with a nonzero bottom, roots, exponentials, sines and cosines, you can **just substitute**. $\lim_{x \to 2}(x^3 - 4x) = 8 - 8 = 0$.

## When substitution gives 0/0

0/0 is an **indeterminate form**: the limit could be anything. Two algebra moves resolve most cases.

**Factor and cancel.** Find the common factor that makes both top and bottom zero:

$$\lim_{x \to 3}\frac{x^2 - 9}{x - 3} = \lim_{x \to 3}(x + 3) = 6$$

**Multiply by the conjugate** when there's a square root:

$$\lim_{x \to 0}\frac{\sqrt{x + 4} - 2}{x} = \lim_{x \to 0}\frac{(x + 4) - 4}{x(\sqrt{x + 4} + 2)} = \lim_{x \to 0}\frac{1}{\sqrt{x + 4} + 2} = \frac{1}{4}$$

## The squeeze theorem

If $g(x) \le f(x) \le h(x)$ near $a$, and $g$ and $h$ have the same limit $L$, then $f$ has it too. Geometry shows that $\cos x \le \frac{\sin x}{x} \le 1$ near 0, and both bounds approach 1, so

$$\lim_{x \to 0}\frac{\sin x}{x} = 1$$

with $x$ in radians. This one limit is why $\frac{d}{dx}\sin x = \cos x$ (lesson 11), and why small-angle approximations like $\sin\theta \approx \theta$ work. Related: $\lim_{x \to 0}\frac{1 - \cos x}{x} = 0$.
:::

::: example
## Find $\displaystyle\lim_{h \to 0}\frac{(2 + h)^3 - 8}{h}$.

::: solution
1. **Try substituting.** Putting in $h = 0$ gives 0/0, so simplify first.
2. **Expand the top.**
   $$(2 + h)^3 = 8 + 12h + 6h^2 + h^3$$
3. **Cancel $h$ and take the limit.**
   $$\begin{aligned} \frac{12h + 6h^2 + h^3}{h} &= 12 + 6h + h^2 \\ &\to 12 \end{aligned}$$
4. **Check.** This is the slope of $x^3$ at $x = 2$, and indeed $3x^2 = 12$ there: every derivative is a 0/0 limit resolved like this.

**Answer:** the limit is 12.
:::
:::

::: example
## Find $\displaystyle\lim_{x \to 0}\frac{\sin 5x}{x}$.

::: solution
1. **Match the argument to the bottom.**
   $$\frac{\sin 5x}{x} = 5 \cdot \frac{\sin 5x}{5x}$$
2. **Take the limit.** As $x \to 0$, $5x \to 0$ too, so $\frac{\sin 5x}{5x} \to 1$ and the limit is 5.
3. **Check numerically.** At $x = 0.001$:
   $$\frac{\sin(0.005)}{0.001} = 4.99998$$

**Answer:** the limit is 5.
:::
:::

::: example
## Find $\displaystyle\lim_{x \to 1}\frac{x^3 - 1}{x - 1}$.

::: solution
1. **Factor first.** Substituting gives $0/0$, and a difference of cubes factors:
   $$x^3 - 1 = (x - 1)(x^2 + x + 1)$$
2. **Cancel.** For $x \ne 1$,
   $$\frac{x^3 - 1}{x - 1} = x^2 + x + 1$$
3. **Take the limit.** That's continuous, so put in $x = 1$:
   $$1 + 1 + 1 = 3$$
4. **Check.** It's also the slope of $x^3$ at $x = 1$, which you'll meet as $3x^2$.

**Answer:** the limit is 3.
:::
:::

::: check
given: a = 2 | 3 | 5 | 7
answer: 2*a

## Find $\displaystyle\lim_{x \to \given{a}}\frac{x^2 - \given{a}^2}{x - \given{a}}$.

::: right
Right. It factors as $x + \given{a}$, which approaches {answer}.
:::

::: misses
- [0] Substituting gives 0/0, which is undetermined. Factor the top first.
- [a] After canceling, it's $x + \given{a}$; put $x = \given{a}$ in.
- [any] Not yet. Factor $x^2 - \given{a}^2$ and cancel.
:::
:::

::: check
given: c = 4 | 9 | 16 | 25
answer: 1/(2*sqrt(c))
tolerance: 0.5%

## Find $\displaystyle\lim_{x \to 0}\frac{\sqrt{x + \given{c}} - \sqrt{\given{c}}}{x}$.

::: right
Right. Multiplying by the conjugate leaves $\frac{1}{\sqrt{x + \given{c}} + \sqrt{\given{c}}} \to$ {answer}.
:::

::: misses
- [0] 0/0 is undetermined. Multiply top and bottom by $\sqrt{x + \given{c}} + \sqrt{\given{c}}$.
- [1/sqrt(c)] Close: the bottom becomes $\sqrt{x + c} + \sqrt{c}$, which is $2\sqrt{c}$ at $x = 0$.
- [any] Not yet. Multiply by the conjugate and simplify.
:::
:::

::: check
given: k = 2 | 3 | 7; m = 1 | 4
answer: k/m
tolerance: 0.5%

## Find $\displaystyle\lim_{x \to 0}\frac{\sin(\given{k}x)}{\given{m}x}$.

::: right
Right. $\frac{\sin \given{k}x}{\given{m}x} = \frac{\given{k}}{\given{m}} \cdot \frac{\sin \given{k}x}{\given{k}x} \to$ {answer}.
:::

::: misses
- [1] Only if $k = m$. Rewrite it so the bottom matches the sine's argument.
- [m/k] Upside down: multiply and divide by {k}.
- [0] Both top and bottom go to zero; their ratio doesn't.
- [any] Not yet. Use $\lim_{u \to 0}\frac{\sin u}{u} = 1$ with $u = \given{k}x$.
:::
:::

::: check
given: a = 2 | 4 | 5
answer: 3*a^2
tolerance: 0.5%

## Find $\displaystyle\lim_{h \to 0}\frac{(\given{a} + h)^3 - \given{a}^3}{h}$.

::: right
Right. Expanding gives $3\given{a}^2 + 3\given{a}h + h^2 \to$ {answer}: the slope of $x^3$ at {a}.
:::

::: misses
- [a^3] That's the value of $x^3$, not its rate of change.
- [3*a] Expand $(a + h)^3 = a^3 + 3a^2h + 3ah^2 + h^3$ carefully.
- [any] Not yet. Expand the cube, cancel $\given{a}^3$, divide by $h$.
:::
:::

::: check
given: a = 2 | 4; b = 3 | 5
answer: (a^2 + b)/(a + 1)
tolerance: 0.5%

## Find $\displaystyle\lim_{x \to \given{a}}\frac{x^2 + \given{b}}{x + 1}$.

::: right
Right. The bottom isn't zero at {a}, so just substitute: {answer}.
:::

::: misses
- [any] Not yet. Check the bottom first: if it's not zero at the point, substitute.
:::
:::

::: check
kind: parts
given: a = 2 | 3 | 5; b = 1 | 4; c = 4 | 7

## Find these limits.

::: part
answer: 2*a + b
tolerance: 0.5%

### $\displaystyle\lim_{x \to \given{a}}\frac{x^2 + \given{b}x - \given{a}(\given{a} + \given{b})}{x - \given{a}}$

::: misses
- [a + b] Factor the top: $(x - a)(x + a + b)$, then put $x = a$.
- [any] The top has a factor $(x - \given{a})$.
:::
:::

::: part
answer: a/c
tolerance: 0.5%

### $\displaystyle\lim_{x \to 0}\frac{\sin \given{a}x}{\given{c}x}$

::: misses
- [c/a] Upside down: $\frac{\sin ax}{cx} = \frac{a}{c}\cdot\frac{\sin ax}{ax}$.
- [any] Use $\frac{\sin u}{u} \to 1$.
:::
:::

::: part
answer: a
tolerance: 0.5%

### $\displaystyle\lim_{x \to 0}\frac{\tan \given{a}x}{x}$

::: misses
- [any] $\tan u = \frac{\sin u}{\cos u}$, and $\cos 0 = 1$.
:::
:::
:::

::: check
kind: derivation
vars: a = -3..3, x = -3..3

## Find $\displaystyle\lim_{x \to a}\frac{x^3 - a^3}{x - a}$.

::: step
answer: x^2 + a*x + a^2

### Factor the top as $(x - a)(\ldots)$ and cancel. What's left?
:::

::: step
answer: 3*a^2

### Put $x = a$.
:::

::: right
Right. The limit is $3a^2$, by factoring alone.
:::
:::

::: explain
## Why is it allowed to cancel $(x - 3)$ from $\frac{x^2 - 9}{x - 3}$ when finding the limit as $x \to 3$, even though $x - 3$ is zero at $x = 3$?

::: model
A limit only depends on the values of the function near the point, not at it. For every $x$ other than 3, the factor $x - 3$ is a nonzero number, so canceling it is ordinary algebra and the fraction equals $x + 3$ exactly. The two functions agree everywhere near 3, so they have the same limit there, and the limit of $x + 3$ is 6.
:::
:::

::: practice

::: check
given: a = 1 | 3 | 4
answer: 3*a^2

## Find $\displaystyle\lim_{x \to \given{a}}\frac{x^3 - \given{a}^3}{x - \given{a}}$.

::: misses
- [0] Factor first: $x^3 - a^3 = (x - a)(x^2 + ax + a^2)$.
- [any] Factor and cancel, then substitute.
:::
:::

::: check
given: k = 3 | 6 | 10
answer: k

## Find $\displaystyle\lim_{x \to 0}\frac{\sin(\given{k}x)}{x}$.

::: misses
- [1] Rewrite as $\given{k}\frac{\sin \given{k}x}{\given{k}x}$.
- [any] Match the bottom to the sine's argument.
:::
:::

::: check
given: c = 1 | 9 | 36
answer: 1/(2*sqrt(c))
tolerance: 0.5%

## Find $\displaystyle\lim_{h \to 0}\frac{\sqrt{\given{c} + h} - \sqrt{\given{c}}}{h}$.

::: misses
- [0] Multiply by the conjugate.
- [any] The conjugate leaves $1/(\sqrt{c + h} + \sqrt{c})$.
:::
:::

::: check
given: a = 2 | 5; b = 3 | 4
answer: a + b

## Find $\displaystyle\lim_{x \to \given{a}}\frac{(x - \given{a})(x + \given{b})}{x - \given{a}}$.

::: misses
- [0] Cancel the common factor before substituting.
- [any] Cancel, then substitute.
:::
:::
:::
