← Back to learning objective

Left-hand limit of a piecewise function

Consider the piecewise function f(x)={4−xx<4x−4x≥4f(x) = \begin{cases} \sqrt{4-x} & x < 4 \\ x - 4 & x \ge 4 \end{cases}

Evaluate lim⁡x→4−f(x)\displaystyle\lim_{x \to 4^-} f(x).

Hint

Since x→4−x \to 4^- means xx is slightly less than 4, use the piece of the definition that applies for x<4x < 4.

Step-by-step solution

For xx approaching 4 from the left, x<4x < 4, so we use the rule f(x)=4−xf(x) = \sqrt{4-x} for all such values. This is the correct branch to substitute into as x→4−x \to 4^-.

As x→4−x \to 4^-, the quantity 4−x→0+4 - x \to 0^+, so 4−x→0=0\sqrt{4-x} \to \sqrt{0} = 0. Therefore lim⁡x→4−f(x)=0\displaystyle\lim_{x \to 4^-} f(x) = 0.

Right-hand limit of a piecewise function

Evaluate lim⁡x→4+f(x)\displaystyle\lim_{x \to 4^+} f(x).

Hint

Since x→4+x \to 4^+ means xx is slightly greater than 4, use the piece of the definition that applies for x≥4x \ge 4.

Step-by-step solution

For xx approaching 4 from the right, x≥4x \ge 4, so we use the rule f(x)=x−4f(x) = x - 4 for all such values. This is the correct branch to substitute into as x→4+x \to 4^+.

As x→4+x \to 4^+, we compute x−4→4−4=0x - 4 \to 4 - 4 = 0. Therefore lim⁡x→4+f(x)=0\displaystyle\lim_{x \to 4^+} f(x) = 0.

Existence of the two-sided limit

Based on your results from the previous two parts, does lim⁡x→4f(x)\displaystyle\lim_{x \to 4} f(x) exist? If it does, state its value.

Hint

Recall that a two-sided limit exists exactly when both one-sided limits exist and are equal to each other.

Step-by-step solution

From the previous parts, lim⁡x→4−f(x)=0\displaystyle\lim_{x \to 4^-} f(x) = 0 and lim⁡x→4+f(x)=0\displaystyle\lim_{x \to 4^+} f(x) = 0. Since both one-sided limits exist and are equal to each other, the two-sided limit exists.

Therefore lim⁡x→4f(x)=0\displaystyle\lim_{x \to 4} f(x) = 0, the common value of the one-sided limits. Note this holds regardless of the actual value f(4)=0f(4) = 0 computed from the formula, since limits depend only on nearby behavior.

Related problems

Practice similar Calculus problems interactively.

Start Closing the Gap