Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

How to Find the Limit of a Piecewise Function

At a point where the formula changes, use the piece for x<ax < a for the left limit and the piece for x>ax > a for the right limit. Away from the breaks, just substitute into the piece that applies.

Recognize the task

A function defined by cases with a curly brace, and a limit asked at a boundary between the cases or at a point inside one case. Test: which piece is active immediately to the left of aa, and which immediately to the right?
The lesson treats this under piecewise functions; a mismatch between the sides is a jump discontinuity.

Two ways to do it

At a boundary pointtwo one-sided limits
lim⁡x→a−f(x)=lower piece at a,lim⁡x→a+f(x)=upper piece at a\lim_{x\to a^-} f(x) = \text{lower piece at } a, \qquad \lim_{x\to a^+} f(x) = \text{upper piece at } a
Substitute aa into each neighbouring piece (each piece is usually continuous on its own), then compare the two values.
Inside one pieceno break nearby
lim⁡x→cf(x)=f(c) by the active piece\lim_{x\to c} f(x) = f(c) \text{ by the active piece}
Only one formula is in force near cc, so direct substitution into that formula is all that is needed.

Steps

StepOn f(x)=x2+1f(x) = x^2 + 1 for x<1x < 1,   3\;3 for x=1x = 1,   2x\;2x for x>1x > 1, at a=1a = 1
1Locate a relative to the breaks. If aa is strictly inside one piece, substitute into that piece and you are done. If aa is a break, continue.a=1a = 1 is the break between x2+1x^2 + 1 and 2x2x
2Left limit from the piece for x < a. Substitute aa into that formula.Direct substitution ↗lim⁡x→1−(x2+1)=2\lim_{x\to 1^-}(x^2 + 1) = 2
3Right limit from the piece for x > a. Substitute aa into that formula.Direct substitution ↗lim⁡x→1+2x=2\lim_{x\to 1^+} 2x = 2
4Compare, and ignore the value at a. Equal: that is the limit. Different: the limit does not exist. The value f(a)f(a) matters only for continuity, never for the limit.limit =2= 2, although f(1)=3f(1) = 3

Worked examples

Example 1 · limit exists, value is wrong

removable
f(x)=x2+1 (x<1),3 (x=1),2x (x>1)f(x) = x^2 + 1\ (x < 1),\quad 3\ (x = 1),\quad 2x\ (x > 1)
at a=1a = 1
left 22, right 22
both neighbouring pieces give 22
lim⁡x→1f(x)=2\lim_{x\to 1} f(x) = 2
f(1)=3f(1) = 3 does not change that

Example 2 · a jump

limit does not exist
f(x)=x (x≤0),x+1 (x>0)f(x) = x\ (x \le 0),\quad x + 1\ (x > 0)
at a=0a = 0
left 00, right 11
the pieces disagree
lim⁡x→0f(x)\lim_{x\to 0} f(x) does not exist
a jump of size 11

Example 3 · inside one piece

no break
same ff, limit at x=2x = 2
only the piece x+1x + 1 is active near 22
lim⁡x→2f(x)=3\lim_{x\to 2} f(x) = 3
direct substitution

See it happen

Cover the point x=ax = a with a finger and look at the graph on each side: the left piece heads toward one height, the right piece toward another. The limit exists only if the two heights are the same, whatever the dot at aa itself shows.

Common mistakes

Using the piece that contains a for both sides

✗ the left limit from the piece marked x≥1x \ge 1
✓ the left limit uses the piece for x<1x < 1

Taking f(a) as the limit

✗ lim⁡x→1f(x)=3\lim_{x\to 1} f(x) = 3 because f(1)=3f(1) = 3
✓ the limit is 22; the value at the point is irrelevant

Checking one side only

✗ "the limit is 22 since the left piece gives 22"
✓ check the right piece too; a jump would hide there

Substituting into a piece outside its range

✗ x=1x = 1 into 2x2x for the left limit
✓ the left side uses x2+1x^2 + 1