← Back to learning objective

Left-hand derivative at x = 2

Consider the piecewise function f(x)={x2x≤24x−4x>2f(x) = \begin{cases} x^2 & x \le 2 \\ 4x - 4 & x > 2 \end{cases} We want to investigate whether ff has a tangent line at x=2x = 2.

Using the limit definition f′(2)=lim⁡x→2f(x)−f(2)x−2,f'(2) = \lim_{x \to 2} \frac{f(x) - f(2)}{x - 2}, compute the value of this limit as x→2−x \to 2^- (using f(x)=x2f(x) = x^2 for x≤2x \le 2). What is this left-hand limit?

Hint

Since x≤2x \le 2 near 22 from the left, use f(x)=x2f(x) = x^2 and f(2)=4f(2) = 4. Factor the difference of squares x2−4x^2 - 4 to cancel the x−2x - 2 in the denominator, then take the limit.

Step-by-step solution

For xx near 22 from the left, f(x)=x2f(x) = x^2, so f(2)=4f(2) = 4. The difference quotient is x2−4x−2=(x−2)(x+2)x−2=x+2,\frac{x^2 - 4}{x - 2} = \frac{(x-2)(x+2)}{x-2} = x + 2, valid for x≠2x \ne 2.

Taking the limit as x→2−x \to 2^- gives x+2→4x + 2 \to 4. So the left-hand derivative at x=2x=2 is 44.

Right-hand derivative at x = 2

Now compute the right-hand limit lim⁡x→2+f(x)−f(2)x−2\lim_{x \to 2^+} \frac{f(x) - f(2)}{x - 2} using f(x)=4x−4f(x) = 4x - 4 for x>2x > 2 (still with f(2)=4f(2) = 4, the value from the piece at x=2x=2). What is this right-hand limit?

Hint

Substitute f(x)=4x−4f(x) = 4x-4 into the difference quotient with f(2)=4f(2)=4, simplify the numerator, and cancel the common factor of x−2x-2 before taking the limit.

Step-by-step solution

For x>2x > 2, f(x)=4x−4f(x) = 4x - 4, and f(2)=4f(2) = 4 from the definition. The difference quotient is (4x−4)−4x−2=4x−8x−2=4(x−2)x−2=4,\frac{(4x-4) - 4}{x-2} = \frac{4x - 8}{x - 2} = \frac{4(x-2)}{x-2} = 4, valid for x≠2x \ne 2.

This expression equals 44 for all xx near 22 (not just in the limit), so the limit as x→2+x \to 2^+ is simply 44.

Existence of the tangent line

Based on your results from parts (a) and (b), does ff have a tangent line at x=2x = 2? If so, state its slope; if not, explain why the limit defining f′(2)f'(2) fails to exist.

Hint

The two-sided limit defining f′(2)f'(2) exists only if the left-hand and right-hand limits from parts (a) and (b) agree.

Step-by-step solution

From part (a), the left-hand limit of the difference quotient is 44, and from part (b), the right-hand limit is also 44.

Since both one-sided limits agree and equal 44, the two-sided limit lim⁡x→2f(x)−f(2)x−2\lim_{x\to 2}\frac{f(x)-f(2)}{x-2} exists and equals 44. Therefore ff is differentiable at x=2x=2 with f′(2)=4f'(2) = 4, so ff has a tangent line there with slope 44.

Related problems

Practice similar Calculus problems interactively.

Start Closing the Gap