2.3Piecewise functions: matching value and slope
The idea
To make a piecewise function differentiable at the join, impose two conditions: same value and same slope.
Think of it like this: Joining two road sections: the ends must meet and point the same direction.
Why it exists
This produces simple simultaneous equations, a very common 1-mark NAT.
How it works
- Evaluate both pieces at the join c: set them equal.
- Differentiate both pieces and set the slopes equal at c.
- Solve the two equations for the unknowns.
- Check the answer in the preview.
Worked example: GATE 2025
f = ax + b (x < 1), x³ + x² + 1 (x ≥ 1). Value: a + b = 3. Slope: a = 3x² + 2x at 1 = 5. So a = 5 and b = −2.
Now play with it
- →Slide a and b until both table cells turn green.
- →Notice that fixing the value alone (a + b = 3) leaves many options.
| x = a | f(a) | left slope | right slope | continuous? | differentiable? |
|---|---|---|---|---|---|
| 1 | 3 | 3 | 5 | yes | no |
Value match: a + b = 3. Slope match: a = 3 + 2 = 5. So a = 5 and b = −2. Slide a and b until both verdicts turn green. Differentiable needs continuous and equal left and right slopes. Continuity alone is not enough.
Check yourself
f = ax + b for x < 2 and x² for x ≥ 2 is differentiable everywhere. Then b is
Exam notes (the dense version)
For a piecewise function to be differentiable at the join x = c you need two equations: the pieces have the same value there (continuity) and the same derivative. GATE 2025: f = ax + b for x < 1, x³ + x² + 1 for x ≥ 1. Value: a + b = 3. Slope: a = 3x² + 2x at 1 = 5. So a = 5, b = −2. If only continuity is asked, one equation is enough.
Previous year questions: Differentiation & Mean Value Theorems (6)
PYQs are grouped by topic, so this is the full set for Differentiation & Mean Value Theorems; try the ones that match this subtopic. Open all 6 on the topic page.