← Back to learning objective

Checking MVT hypotheses for a piecewise function

Consider the piecewise function f(x)={x2x≤12x−1x>1f(x) = \begin{cases} x^2 & x \le 1 \\ 2x-1 & x > 1 \end{cases} defined on the closed interval [0,2][0,2].

Determine whether the Mean Value Theorem applies to f(x)f(x) on the interval [0,2][0,2]. That is, check whether ff is continuous on [0,2][0,2] and differentiable on (0,2)(0,2), and state your conclusion about whether the MVT guarantees the existence of a point c∈(0,2)c \in (0,2) with f′(c)=f(2)−f(0)2−0f'(c) = \dfrac{f(2)-f(0)}{2-0}.

Checking MVT hypotheses for a piecewise function graph
Hint

Check continuity at x=1x=1 by comparing left and right limits and the function value there. Then check differentiability at x=1x=1 by comparing the left-hand and right-hand derivatives at that point.

Step-by-step solution

First check continuity at x=1x=1, the only point where the formula changes. From the left, lim⁡x→1−x2=1\lim_{x\to 1^-} x^2 = 1; from the right, lim⁡x→1+(2x−1)=1\lim_{x\to 1^+} (2x-1) = 1; and f(1)=12=1f(1) = 1^2 = 1. Since all three values agree, ff is continuous at x=1x=1, and since both pieces are polynomials elsewhere, ff is continuous on all of [0,2][0,2].

Next check differentiability at x=1x=1. For x≤1x \le 1, we have f′(x)=2xf'(x) = 2x, so the left-hand derivative at x=1x=1 is f−′(1)=2(1)=2f'_-(1) = 2(1) = 2. For x>1x > 1, we have f′(x)=2f'(x) = 2, so the right-hand derivative at x=1x=1 is f+′(1)=2f'_+(1) = 2. Since both one-sided derivatives equal 22, ff is differentiable at x=1x=1, so ff is differentiable on (0,2)(0,2).

Since ff is continuous on [0,2][0,2] and differentiable on (0,2)(0,2), both hypotheses of the Mean Value Theorem are satisfied. Therefore MVT guarantees there exists some c∈(0,2)c \in (0,2) such that f′(c)=f(2)−f(0)2−0=3−02=32f'(c) = \dfrac{f(2)-f(0)}{2-0} = \dfrac{3-0}{2} = \dfrac{3}{2}.

Value of the two one-sided derivatives at the junction point

What single number did both one-sided derivatives of ff equal at the piecewise junction point x=1x=1?

Hint
Step-by-step solution

The answer is 2. At the junction point x=1x=1, the left-hand derivative of ff is f−′(1)=2f'_-(1) = 2 (since f′(x)=2xf'(x) = 2x for x≤1x \le 1), and the right-hand derivative of ff is f+′(1)=2f'_+(1) = 2 (since f′(x)=2f'(x) = 2 for x>1x > 1). Since these one-sided derivatives matched, ff was differentiable at that point, which was essential for confirming the Mean Value Theorem's hypotheses held on the whole interval.

Related problems

Practice similar Calculus problems interactively.

Start Closing the Gap