---
title: One-sided limits and limits at infinity
heading: What happens at the edges
eyebrow: A5 · Lesson 5 · One-sided and infinite limits
xp: 40
---

::: hook
Close a switch onto a capacitor and the voltage jumps from one value toward another, approaching it but never quite reaching it in finite time. Ask what a step function equals "at" the switching instant and you get a different answer from each side. Ask what $1/(x - 2)$ does near 2 and it shoots to $+\infty$ on one side and $-\infty$ on the other. Limits from one side, limits that are infinite, and limits as $x$ grows without bound describe all of these edges precisely.
:::

::: play
- The curve is $f(x) = \dfrac{ax + 1}{x - 2}$. Move the point toward $x = 2$ from the left, then from the right.
- Now move it far to the right. What value does $f$ settle toward, and how does it depend on $a$?
:::
:::

```sim plot
view: graph
x: x = -10..14
y: y = -15..15
slider: a = 1..4 step 0.5 = 2
slider: p = -10..14 step 0.05 = 5
plot: (a*x + 1)/(x - 2) | label: f(x) | samples: 2000
plot: a | dashed | color: ch2 | label: y = a
marker: x = 2 | label: x = 2
point: p, (a*p + 1)/(p - 2 + 1e-9) | label: x
readout: f(x) = (a*p + 1)/(p - 2 + 1e-9) | digits: 5
```

::: predict
## What is $\displaystyle\lim_{x \to \infty}\frac{3x + 1}{x - 2}$?

- [ ] $\infty$
- [ ] 0
- [x] 3
- [ ] $-\frac{1}{2}$

::: reveal
3. For large $x$ the $+1$ and $-2$ hardly matter, and the fraction behaves like $3x/x = 3$. Dividing top and bottom by $x$ makes it exact: $\frac{3 + 1/x}{1 - 2/x} \to \frac{3}{1} = 3$.
:::
:::

::: nameit
## One-sided limits

$\lim_{x \to a^-} f(x)$ uses only $x < a$ (from the left); $\lim_{x \to a^+} f(x)$ only $x > a$. The two-sided limit exists exactly when both one-sided limits exist and are equal.

The unit step $u(t)$ has $\lim_{t \to 0^-} u = 0$ and $\lim_{t \to 0^+} u = 1$, so $\lim_{t \to 0} u$ doesn't exist. Circuit analysis writes $v(0^-)$ and $v(0^+)$ for the values just before and just after a switch, because they can differ.

## Infinite limits

If $f(x)$ grows without bound as $x \to a$, we write $\lim_{x \to a} f(x) = \infty$ (or $-\infty$). The line $x = a$ is then a **vertical asymptote**. The sign depends on the side:

$$\lim_{x \to 2^+}\frac{1}{x - 2} = +\infty \qquad \lim_{x \to 2^-}\frac{1}{x - 2} = -\infty$$

"$= \infty$" is shorthand for a particular way of not having a limit; $\infty$ isn't a number.

## Limits at infinity

$\lim_{x \to \infty} f(x) = L$ means $f$ gets arbitrarily close to $L$ for large $x$; the line $y = L$ is a **horizontal asymptote**. For rational functions, divide top and bottom by the highest power of $x$ on the bottom:

$$\frac{2x^2 - x}{5x^2 + 3} = \frac{2 - 1/x}{5 + 3/x^2} \to \frac{2}{5}$$

so equal degrees give the ratio of leading coefficients, a lower top degree gives 0, and a higher one has no finite limit (as in A2).

**Exponentials beat powers.** $e^{-t}$ goes to 0 faster than any power of $t$ grows, so $\lim_{t \to \infty} t^n e^{-t} = 0$ for every $n$. And $\lim_{t \to \infty}(1 - e^{-t/\tau}) = 1$: a charging capacitor approaches its final voltage, reaching it only in the limit.
:::

::: example
## Find $\displaystyle\lim_{x \to \infty}\frac{4x^3 - x}{2x^3 + 7x^2}$ and $\displaystyle\lim_{x \to \infty}\frac{x + 5}{x^2 - 1}$.

::: solution
1. **First limit: divide by $x^3$.**
   $$\begin{aligned} \frac{4x^3 - x}{2x^3 + 7x^2} &= \frac{4 - 1/x^2}{2 + 7/x} \\ &\to 2 \end{aligned}$$
2. **Second limit: divide by $x^2$.**
   $$\begin{aligned} \frac{x + 5}{x^2 - 1} &= \frac{1/x + 5/x^2}{1 - 1/x^2} \\ &\to \frac{0}{1} \\ &= 0 \end{aligned}$$
3. **Why it vanishes.** The bottom's degree is higher, so the fraction dies away.

**Answer:** the first limit is 2 and the second is 0.
:::
:::

::: example
## An RC circuit's voltage is $v(t) = 12(1 - e^{-t/\tau})$ for $t \ge 0$ and 0 before. Find $v(0^-)$, $v(0^+)$ and $\lim_{t \to \infty} v$.

::: solution
1. **Before the switch.** The circuit was off, so $v(0^-) = 0$.
2. **Just after the switch.**
   $$\begin{aligned} v(0^+) &= 12(1 - e^0) \\ &= 0 \end{aligned}$$
   The capacitor voltage can't jump, so it's continuous at the switch.
3. **Final value.**
   $$\begin{aligned} \lim_{t \to \infty} v &= 12(1 - 0) \\ &= 12\ \text{V} \end{aligned}$$
4. **Compare the current.** The current $i = C\,dv/dt$ is different: it's 0 before and $12C/\tau$ just after, a jump. That's why one-sided limits matter in circuits.

**Answer:** $v(0^-) = 0$ and $v(0^+) = 0$, and $v$ settles at a final value of 12 V.
:::
:::

::: example
## An RL circuit's current after switch-on is $i(t) = \frac{V}{R}\left(1 - e^{-Rt/L}\right)$, with $V$ = 12 V, $R$ = 6 Ω and $L$ = 0.3 H. Where does the current end up, and how fast does it start rising?

::: solution
1. **Final value.** As $t \to \infty$, $e^{-Rt/L} \to 0$, so
   $$\begin{aligned} i &\to \frac{V}{R} \\ &= 2\ \text{A} \end{aligned}$$
   The final value is set by the resistor alone.
2. **Starting slope.**
   $$\begin{aligned} i'(0) &= \frac{V}{R} \cdot \frac{R}{L} \\ &= \frac{V}{L} \\ &= 40\ \text{A/s} \end{aligned}$$
3. **Compare with the time constant.** If the current kept rising at that rate, it would reach 2 A in $L/R$ = 50 ms, the time constant.

**Answer:** the current ends up at 2 A, and it starts rising at 40 A/s.
:::
:::

::: check
given: a = 5 | 7 | 9; b = 1 | 4; c = 2 | 3
answer: a/c
tolerance: 0.5%

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

::: right
Right. Equal degrees: the ratio of the leading coefficients, {answer}.
:::

::: misses
- [0] The top and bottom grow at the same rate. Divide both by $x^2$.
- [b] For large $x$ the $x^2$ terms dominate, not the $x$ term.
- [c/a] Top over bottom.
- [any] Not yet. Divide top and bottom by $x^2$ and let $x \to \infty$.
:::
:::

::: check
kind: choice

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

- [ ] $+\infty$
- [x] $-\infty$
- [ ] 0
- [ ] $\frac{2}{3}$

::: right
Right. Just left of 3, $x - 3$ is a tiny negative number, so $2/(x - 3)$ is a huge negative number.
:::

::: misses
- [1] From the left, $x < 3$, so the bottom is negative.
- [any] Check the sign of $x - 3$ for $x$ just below 3.
:::
:::

::: check
given: V = 5 | 12 | 24; tau = 1 | 10
answer: V

## $v(t) = \given{V}(1 - e^{-t/\given{tau}})$ volts. What is $\displaystyle\lim_{t \to \infty} v(t)$?

::: right
Right. $e^{-t/\tau} \to 0$, leaving {V} V.
:::

::: misses
- [0] $e^{-t/\tau}$ goes to 0, so $1 - e^{-t/\tau}$ goes to 1.
- [V*(1 - exp(-1))] That's after one time constant. The limit is as $t \to \infty$.
- [any] Not yet. What does $e^{-t/\tau}$ do for large $t$?
:::
:::

::: check
given: a = 1 | 3 | 6
answer: 0

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

::: right
Right. The bottom's degree is higher, so the fraction goes to 0.
:::

::: misses
- [a] That would be for equal degrees. Here the bottom grows faster.
- [any] Not yet. Divide top and bottom by $x^2$.
:::
:::

::: check
kind: choice

## The function $f(x) = \begin{cases} x + 1 & x < 2 \\ 5 - x & x \ge 2 \end{cases}$. What is $\lim_{x \to 2} f(x)$?

- [x] 3
- [ ] It doesn't exist, because the formula changes at 2
- [ ] 1
- [ ] 4

::: right
Right. From the left, $x + 1 \to 3$; from the right, $5 - x \to 3$. They agree, so the limit is 3.
:::

::: misses
- [2] A change of formula doesn't stop a limit existing: compare the two one-sided limits.
- [any] Find the limit from each side.
:::
:::

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

## Find these limits as $x \to \infty$.

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

### $\displaystyle\frac{\given{a}x^2 + \given{b}}{\given{c}x^2 - x}$

::: misses
- [b/c] As $x$ grows, the $x^2$ terms dominate.
- [any] Divide the top and bottom by $x^2$.
:::
:::

::: part
answer: b/(2*sqrt(a))
tolerance: 0.5%

### $\sqrt{\given{a}x^2 + \given{b}x} - \sqrt{\given{a}}\,x$

::: misses
- [0] Both terms grow, but their difference settles. Multiply by the conjugate.
- [any] Multiply and divide by $\sqrt{ax^2 + bx} + \sqrt{a}\,x$.
:::
:::

::: part
answer: c
tolerance: 0.5%

### $\given{a}e^{-x} + \given{c}$

::: misses
- [a + c] That's the value at $x = 0$.
- [any] $e^{-x} \to 0$.
:::
:::
:::

::: check
kind: derivation
vars: b = 0.5..5, x = 10..100

## Find $\displaystyle\lim_{x \to \infty}\left(\sqrt{x^2 + bx} - x\right)$.

::: step
answer: b*x/(sqrt(x^2 + b*x) + x)

### Multiply and divide by $\sqrt{x^2 + bx} + x$. What does the expression become?
:::

::: step
answer: b/(sqrt(1 + b/x) + 1)

### Divide the top and bottom by $x$.
:::

::: step
answer: b/2

### Let $x \to \infty$.
:::

::: right
Right. The limit is $b/2$: two terms that each grow without bound differ by a fixed amount.
:::
:::

::: explain
## A capacitor's voltage approaches 12 V but never reaches it in finite time. In what sense is 12 V its "final value"?

::: model
The voltage is $12(1 - e^{-t/\tau})$, and $e^{-t/\tau}$ is never exactly zero, so the voltage never equals 12 V at any finite time. But the gap shrinks without limit: after five time constants it's under 1%, and for any tolerance you name there's a time after which the voltage stays within it. That is exactly what $\lim_{t \to \infty} v = 12$ V means, and it's the sense in which 12 V is the final value.
:::
:::

::: practice

::: check
given: a = 4 | 6; b = 2 | 3
answer: a/b
tolerance: 0.5%

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

::: misses
- [0] Equal degrees.
- [any] Ratio of the leading coefficients.
:::
:::

::: check
given: c = 2..8 int
answer: 0

## Find $\displaystyle\lim_{t \to \infty} t^{\given{c}}e^{-t}$.

::: misses
- [any] Exponentials beat powers.
:::
:::

::: check
kind: choice

## What is $\displaystyle\lim_{x \to 1^+}\frac{x}{x - 1}$?

- [x] $+\infty$
- [ ] $-\infty$
- [ ] 1
- [ ] 0

::: misses
- [2] From the right, $x - 1$ is positive.
- [any] Check signs just right of 1.
:::
:::
:::
