Kim’s Math NotesCourse index

One-Sided Limits of Piecewise Functions

Which branch of a piecewise function determines each one-sided limit?

Find one-sided and two-sided limits of piecewise functions at a boundary and away from it, and tell the limit from the value at the boundary.

xy1234512345
Each side has its own piece · For p(x)=x+2 (x<2) and 7−x (x≥2): the left side heads to 4, the right side to 5, and the filled end gives p(2)=5. The limit at 2 does not exist. Near 4, only 7−x holds: limx→4p(x)=3.
The equals sign gives the value, not the limit

Common mistake For f(x)=x2+3 (x<1) and 2x (x≥1): limx→1−f(x)=f(1)=2.

Correction The left side uses x2+3: limx→1−f(x)=1+3=4. The value f(1)=2 comes from the other piece.

Use the piece for that side

Common mistake For g(x)=5−x (x≤2) and x2 (x>2): limx→2+g(x)=5−2=3.

Correction x→2+ means x>2, so use x2: limx→2+g(x)=4.

Absolute value changes sign on the left

Common mistake |x−5|x−5=1, so limx→5−|x−5|x−5=1.

Correction For x<5, |x−5|=−(x−5), so the quotient is −1 and the left-hand limit is −1.

Idea 1: each side picks its own piece

At a boundary, we have to pick a formula. Which one? Look at the graph of p. One branch comes in from the left, and the other from the right. Two belongs to the second piece. But as we approach two from the left, do we still use seven minus x?

No. Follow the piece on the side you approach from. So, from the left, it's x plus two all the way in: two plus two, four. From the right, it's seven minus x: seven minus two, five. The two sides approach different heights: four from the left and five from the right. So the limit of p of x, as x approaches two, does not exist.

Watch this part of the concept lesson

Idea 2: absolute value hides a boundary

Next: absolute value. On a graph, you've already split the absolute value of x over x. Now we split bars right from the formula. Where's the boundary? Here's a tougher one. Find both one-sided limits of g at one. Then the limit, or explain why it does not exist.

Two sets of bars.

Watch this part of the concept lesson

Read the rest of this scene

Do we split both? We're taking the limit as x approaches one. The term x minus one is zero at one, so that's where we split. Near one, x plus one is positive. Its absolute value is just x plus one.

From the right, x minus one is positive. So the bars change nothing. So on the right, g of x equals x minus one, plus x plus one, minus two, all over x minus one. The top is two x minus two, which is two times the quantity x minus one. Over x minus one, that's just two, since x is never one itself.

So the limit from the right is two. From the left, x minus one is negative. So the bars flip its sign: the negative of the quantity x minus one. So on the left, g of x equals the negative of the quantity x minus one, plus x plus one, minus two, all over x minus one. In the top, the minus sign goes to both terms: negative x, plus one.

Then the x's cancel, and one plus one minus two is zero. So zero over x minus one is zero. So the limit from the left is zero. Compare the two sides. Left: zero.

Right: two. And zero is not two. So the limit of g, as x approaches one, does not exist. So, in general: split absolute value bars only where the inside is zero, into two pieces. The AP course guide says one-sided limits can be found from a graph, or analytically: right from the formula.

Idea 3: a function inside a function

Last idea: a function inside a function, f of g of x. As x approaches three, look at the inside first. Where does g of x head? Here's g. From both sides of three, the heights come down to one, and, everywhere except at three itself, they stay above one. Near three, but never at three, the heights are like one point one, then one point zero one.

Always a bit more than one.

Watch this part of the concept lesson

Read the rest of this scene

So g of x heads to one, from above: one plus. Now the outside, f. On the left, it ends at a filled dot, up at four. On the right, it starts at an open circle, at two. Now hand those heights to f, as inputs.

Where does one point zero one sit on f's x-axis? Just to the right of one. So coming in from above on g means coming in from the right on f. f's input comes to one from the right. Since x never equals three, it never lands on one.

So f reads its right piece, not the dot at one. For a function inside a function, ask where the inside heads, and from which side. In Example four, watch what changes when the inside approaches from below.

Example 1: its own value at the boundary

Example one. f has its own value at three. Find both one-sided limits at three, the limit, and the value, f of three. The plan: each side uses its own piece. The middle line, f of three equals six, waits for part d.

Part a. From the left, x is less than three. So f is x squared minus two x. So the limit of f from the left is the limit of x squared minus two x. A polynomial, so plug in three: three squared minus two times three.

Watch this part of the concept lesson

Read the rest of this scene

Nine minus six, three. Part b. From the right, x is greater than three. So f is two x minus three. So the limit of f from the right is the limit of two x minus three. Plug it in: two times three, minus three.

Six minus three, three. Now we compare the two sides, and then find the value. Part c. Both sides head to three. So the limit at three is three. Part d. For f of three, use the line for x equals three.

f of three is six. The limit is three, the value is six. Two separate questions.

Example 2: split the bars

Example two. Find both one-sided limits of g at two. Then the limit, or explain why it does not exist. The plan: the inside, x minus two, is zero at two. So split the bars there, one side at a time. Part a. From the left, x minus two is negative.

So the bars flip its sign: the negative of the quantity x minus two. So on the left, g is the quantity x plus one, times the negative of the quantity x minus two, all over x minus two.

Watch this part of the concept lesson

Read the rest of this scene

Now cancel: x minus two over x minus two is one, since x is not two. And look what survives: that negative sign. g is the negative of the quantity x plus one. The limit from the left: plug in two. The negative of the quantity two plus one: negative three.

Now the right side, the same way, and then we compare. Part b. From the right, x minus two is positive. So the bars change nothing. So on the right, g of x equals the quantity x plus one, times the quantity x minus two, all over x minus two. That makes g just x plus one, since x minus two over x minus two is one.

Now, the limit of g from the right: plug in two. Two plus one, three. Part c. Compare the two sides. Left: negative three. Right: three. And negative three is not three.

So the limit of g, as x approaches two, does not exist. The habit: split the bars first, then cancel.

Common mistake: dropping the bars

Careful with absolute value bars. Drop them, and you lose points. Here's the common mistake, the one that loses the point. The student drops the bars, so g of x is x plus one. Then the limit is three.

But that's only the right side. Here's what to do instead. Split the bars at two, where the inside is zero.

Watch this part of the concept lesson

Read the rest of this scene

Then write both one-sided limits, with the not-equal sign: from the left, negative three; from the right, three. So the limit does not exist.

Example 3: find k

Example three, multiple choice. A constant k sits in both pieces. For what value of k does the limit, as x approaches two, exist? The plan: the limit exists exactly when the two sides agree. Watch the picture as k changes.

The two ends at x equals two move, and at one k they meet.

Watch this part of the concept lesson

Read the rest of this scene

From the left, x is less than two, so f is k x minus one. Plug in two: two k minus one. From the right, f is x squared plus k. Two squared plus k: four plus k. For the limit to exist, set them equal: two k minus one equals four plus k.

Solve it: k equals five. Double-check: two times five, minus one, is nine, and four plus five is nine. On the picture, at k equals five, the two ends meet, at nine. Alright, so the answer is C. Five. Careful: sometimes no k works.

Say the two sides were one plus k, and k plus three. Set them equal: one equals three. No k at all. Then the answer would be D. The habit: set the two sides equal before you look at the choices.

Example 4: a function inside a function

Example four, multiple choice. Here's the graph of g, and the graph of f. What is the limit of f of g of x, as x approaches three? The plan: inside first, then the outside. As x approaches three, both branches rise toward the vertex at height one.

The nearby heights stay below one: one minus. So f gets inputs below one. On f's x-axis, those inputs approach one from the left. Follow f's left branch toward one. The height approaches four at the open circle, so the limit is four.

A stops at g's limit.

Watch this part of the concept lesson

Read the rest of this scene

B reads the right-hand limit of f. D reads the filled dot, the value at one. So all three are out. So the answer is C: four.

Worked examples

Example 1

Let f(x)={x2−2x,x<36,x=32x−3,x>3
Find (a) limx→3−f(x) (b) limx→3+f(x)
(c) limx→3f(x) (d) f(3)
Hint

Each side uses its own piece. The value comes from the line with x=3.

Answer and solution
  1. 3
  2. 3
  3. 3
  4. 6
  1. limx→3−f(x)=limx→3−(x2−2x)=9−6=3,limx→3+f(x)=limx→3+(2x−3)=6−3=3
  2. Left 3 = right 3, so the limit of f(x) as x -> 3 is 3.
  3. f(3) comes from the line x = 3: f(3) = 6. Limit 3, value 6: two separate questions.

Example 2

Let g(x)=(x+1)|x−2|x−2.
Find (a) limx→2−g(x) (b) limx→2+g(x)
(c) limx→2g(x), or explain why it does not exist.
Hint

The inside is 0 at x=2. Split the bars there.

Answer and solution
  1. −3
  2. 3
  3. does not exist: the left side is −3 and the right side is 3
  1. x -> 2 means x is not 2, so (x - 2)/(x - 2) = 1. Left: x < 2, so |x - 2| = -(x - 2) and g(x) = -(x + 1). Right: x > 2, so |x - 2| = x - 2 and g(x) = x + 1.
  2. limx→2−g(x)=−(2+1)=−3,limx→2+g(x)=2+1=3
  3. -3 is not 3: the two sides disagree, so the limit of g(x) as x -> 2 does not exist.

Example 3

f(x)=kx−1 (x<2), x2+k (x≥2)
For what k does limx→2f(x) exist?
  1. 3
  2. 4
  3. 5
  4. no such value
Hint

Write each one-sided limit in terms of k, then set them equal.

Answer and solution

Answer C. 5

  1. Type: a constant k in a piecewise function. Method: the limit exists exactly when the two sides are equal, so find each in terms of k.
  2. limx→2−f(x)=k(2)−1=2k−1,limx→2+f(x)=22+k=4+k
  3. 2k−1=4+k⇒k=5
  4. Check: with k = 5 both sides are 9. Answer C. (3 moves -1 across without changing its sign; 4 drops the -1; a value does exist.)

Example 4

The graphs of g (top) and f (bottom) are shown. What is limx→3f(g(x))?
xy31
Graph of g(x)
xy1234
Graph of f(x)
  1. 1
  2. 2
  3. 4
  4. 3
Hint

Find where the inside graph heads and check which side of that input it stays on.

Answer and solution

Answer C. 4

  1. Near x = 3, the parabola g(x) approaches 1 through values below 1 on both sides.
  2. Follow the left piece of f toward input 1. The outputs approach 4. The dot at 3 gives f(1) only.
  3. limx→3f(g(x))=limu→1−f(u)=4(C)

Workbook

Problem 1

Let f(x)={x2−3,x<25,x=23x−5,x>2
Which of the following are true?
I. limx→2f(x)=1
II. limx→2+f(x)=f(2)
III. limx→3f(x)=4
  1. I only
  2. III only
  3. I and III only
  4. II and III only
Hint

Use the piece whose condition includes c; it does not decide the limits.

Answer and solution

Answer C. I and III only

  1. I: left (2)^2 - 3 = 1, right 3(2) - 5 = 1. Both sides 1, so the limit is 1. True.
  2. II: the right-hand limit is 1, but f(2) = 5 comes from the x = 2 line. False.
  3. III: 3 is not a boundary; near 3 only 3x - 5 holds: 9 - 5 = 4. True. Answer C.

Common mistake Use the two formulas to find the limits at 2; the separate entry at 2 gives only f(2).

Watch the worked solution to Problem 1

Problem 2

Let g(x)=(x+3)|x−1|x−1.
  1. Rewrite g(x) without absolute value bars.
  2. Find limx→1−g(x).
  3. Find limx→1+g(x).
  4. Does limx→1g(x) exist? Explain.
Hint

Rewrite |x−c| as x−c for x>c and −(x−c) for x<c.

Answer and solution
  1. g(x)=−(x+3) for x<1, and g(x)=x+3 for x>1
  2. −4
  3. 4
  4. No: the one-sided limits −4 and 4 are not equal
  1. x < 1: |x - 1| = -(x - 1), so the quotient |x - 1|/(x - 1) is -1 and g(x) = -(x + 3). x > 1: it is 1, so g(x) = x + 3.
  2. limx→1−g(x)=−(1+3)=−4,limx→1+g(x)=1+3=4
  3. -4 and 4 are not equal, so the limit does not exist.

Common mistake For x below 1, the absolute value is the negative of x minus 1.

Watch the worked solution to Problem 2

Problem 3

Let c be a constant, and let f(x)={x2,x<c2x+3,x≥c
For which values of c does limx→cf(x) exist?
  1. 3 only
  2. −1 only
  3. −1 and 3
  4. no value of c
Hint

Set the left-hand limit equal to the right-hand limit and solve.

Answer and solution

Answer C. −1 and 3

  1. Left of c the piece is x^2, so the left-hand limit is c^2. Right of c the piece is 2x + 3, so the right-hand limit is 2c + 3.
  2. c2=2c+3⇒c2−2c−3=0⇒(c−3)(c+1)=0
  3. c = 3 (both sides 9) or c = -1 (both sides 1). Answer C.

Common mistake Both roots of the equation equating the two boundary heights must be considered.

Watch the worked solution to Problem 3

Problem 4

The graphs of f and g are shown. For which of the following does the limit as x→2 exist?
xy123-1123
Graph of f(x)
xy123-1123
Graph of g(x)
  1. f(x)
  2. f(x)−g(x)
  3. f(x)+g(x)
  4. f(x)g(x)
Hint

Compute each candidate combination on the left and on the right separately.

Answer and solution

Answer C. f(x)+g(x)

  1. Read each graph from each side of 2. From the left, f(x) -> 3 and g(x) -> 0. From the right, f(x) -> 1 and g(x) -> 2.
  2. Sum: left 3 + 0 = 3, right 1 + 2 = 3. Both sides are 3, so the limit of f + g is 3, even though the limits of f and g do not exist.
  3. f alone: 3 and 1. Difference: 3 - 0 = 3 and 1 - 2 = -1. Product: 0 and 2. The sides differ, so those limits do not exist. Answer C.

Common mistake Combine values from the same side before comparing the resulting heights.

Watch the worked solution to Problem 4

Problem 5

An oven is turned on at time t=0, with t measured in minutes. Its temperature, in degrees Celsius, is T(t)={20+40t,0≤t<5220,t≥5
  1. Find limt→5T(t) using one-sided limits.
  2. Find the average rate of change of T on [3,7].
  3. Interpret your answer to (b) in context, with units.
Hint

Use the appropriate piece on each side of 5. Then use the values at 3 and 7 for the average rate of change.

Answer and solution
  1. 220
  2. 20 degrees Celsius per minute
  3. From t=3 to t=7 minutes, the temperature of the oven increases by 20 degrees Celsius per minute on average
  1. (a) Left: 20 + 40(5) = 220. Right: the piece 220. Both sides 220, so the limit is 220.
  2. (b) T(3) uses the first piece: 20 + 120 = 140. T(7) uses the second: 220. (220 - 140)/(7 - 3) = 80/4 = 20 degrees Celsius per minute.
  3. (c) From t = 3 to t = 7 minutes, the temperature rises by 20 degrees Celsius per minute on average.

Common mistake Use the correct formula at each endpoint of the interval and divide by the elapsed time.

Watch the worked solution to Problem 5

Problem 6

The graphs of g (top) and f (bottom) are shown. What is limx→2f(g(x))?
xy1234123
Graph of g(x)
xy12345-112345
Graph of f(x)
  1. 1
  2. 3
  3. 5
  4. nonexistent
Hint

Look at g first. As x gets closer to 2, decide whether g(x) lies below or above 3.

Answer and solution

Answer A. 1

  1. Inside first. As x -> 2 from both sides, g(x) climbs to 3 and stays below 3: g(x) -> 3 from the left.
  2. So the input of f approaches 3 from the left. On the left piece of f, the heights approach 1 (the open circle).
  3. limx→2f(g(x))=1
  4. B is where g heads, not f. C is the value f(3) = 5, but the input never equals 3. D: f jumps at 3, but only its left side is used. Answer A.

Common mistake The graph of g approaches 3 from below. The outer graph must be read from the left of 3.

Watch the worked solution to Problem 6

Problem 7

The graph of f is shown.
xy1231234
Graph of f(x)
  1. Find limx→−2+f(−x).
  2. Find limx→−2−f(−x).
  3. Does limx→−2f(−x) exist? Explain.
Hint

The inside first. If x is a little more than −2, is −x a little more or a little less than 2?

Answer and solution
  1. As x→−2+, −x→2− (from the left), so f(−x)→1
  2. As x→−2−, −x→2+ (from the right), so f(−x)→3
  3. No: the one-sided limits are 1 and 3, not equal
  1. x a little more than -2, like -1.9: then -x = 1.9, a little less than 2. So -x heads to 2 from the left, and f heads to 1.
  2. x a little less than -2, like -2.1: then -x = 2.1, from the right of 2. f heads to 3.
  3. 1 and 3 are not equal, so the limit of f(-x) as x approaches -2 does not exist. The minus sign swaps the sides.

Common mistake Negating an input reverses the side of approach.

Watch the worked solution to Problem 7