Miscellaneous · Q18: has for all real
If , show that exists for all real and find it.
For at , with :
LHD RHD, so is differentiable at and . Hence
For at , with :
LHD RHD, so is differentiable at and . For , differentiating each piece,
for and for , i.e. , which exists for all real .
Want the reason behind every step, the basics and the checks?
Away from 0, is just or , so ordinary rules work. At the junction we must not differentiate a formula; we use the definition, computing the left-hand and right-hand difference quotients separately. We do this twice: once for , and once more, applied to , for .
- Given
- for all real .
- To show / find
- exists at every real , and its formula.
- Plan
- (1) Write piecewise. (2) for . (3) from one-sided difference quotients. (4) One formula for . (5) for . (6) from one-sided difference quotients of . (7) Conclude.
Basics you need
for and for . Basics: piecewise functions
is differentiable at if and are finite and equal; the common value is (Section 5.3). Basics: left-hand and right-hand limits
(Table 5.3). Basics: derivative rules
is the derivative of (Section 5.7). So exists when is differentiable at . Lesson: second order derivative
Solution
Write without the absolute value
For , , so . Note that is positive when is negative, as must be.piecewise (Basic 1). Basics: piecewise functionsfor
For : . For : .
Take . For all small enough (), both and are positive, so the difference quotient only ever uses the formula . Its limit is therefore the derivative of . The same argument works for with . At this fails, because of either sign takes us onto different formulas; that is why 0 is treated separately.Power rule (Basic 3) and constant multiple rule, Section 5.3. Basics: derivative rulesfrom the two one-sided difference quotients
Here , so the difference quotient is .
Left (): , so
Right (): , so
Both are finite and equal, so is differentiable at 0 and .
This is the book's definition of differentiability at a point, used exactly as in its discussion of after Theorem 3. For itself the two quotients were and (a corner). For both are 0: cubing flattens the corner completely.Left-hand and right-hand derivatives, Section 5.3 (Basic 2). Lesson: differentiabilityOne formula for
that is, in one formula,
Check each piece: for , ; for , ; at 0 it gives 0. So exists at every real . The compact form is handy for the next derivative.piecewise (Basic 1).for
For : . For : .
The same reasoning as Step 2: on the open interval , agrees with the polynomial , so its derivative there is that polynomial's derivative; likewise for .Power rule (Table 5.3); second derivative is the derivative of (Section 5.7). Lesson: second order derivativefrom the one-sided difference quotients of
Now apply the definition to at 0. Since , the quotient is for .
Left ():
Right ():
Both are 0, so is differentiable at 0 and .
This is the heart of the question. We cannot get by plugging into "" or "": those formulas were derived only for . The definition must be applied to at the junction, and it confirms that both sides agree.Definition of the derivative at a point, applied to (Basics 2 and 4). Basics: left-hand and right-hand limitsConclude: for every real
that is, in one formula,
(blue), (gold) and (green) for ; horizontal and vertical scales differ. and pass smoothly through the origin; has a corner there, like . exists at every real number: Step 5 handles and Step 6 handles . The single formula matches all three pieces. Going one step further, has a corner at 0 (its one-sided difference quotients are and ), so the third derivative of does not exist at 0. Each differentiation costs one order of smoothness: can be differentiated twice at 0, once, not at all.Same corner as at 0 (discussion after Theorem 3, Section 5.3). Lesson: differentiability
exists for every real , and
that is, for and for .
In particular . (The answer key gives no answer for this question.)
Difference quotients at 0 with : (both tending to 0), and on both sides (tending to 0). ✓
Away from 0: and ; and . ✓
- Writing everywhere. For it is ; the answer must be .
- Finding or by substituting 0 into a piece's formula. At a junction only the one-sided difference quotients decide.
- Forgetting that needs first: the quotient uses the value from Step 3.
- At a junction of a piecewise function, compute derivatives from the definition, separately from the left and from the right.
- has a corner at 0, is smooth, and has two derivatives at 0 but not a third.
Every fact used, and where it comes from
| Fact | Used in | Source |
|---|---|---|
| or | Steps 1, 4, 7 | Definition of absolute value |
| Differentiable at : one-sided limits of the difference quotient finite and equal | Steps 3, 6 | Section 5.3 (Lesson: differentiability) |
| Power rule | Steps 2, 5 | Table 5.3, Section 5.3 |
| Second order derivative | Steps 5–7 | Section 5.7 (Lesson: second order derivative) |
| is not differentiable at 0 | Steps 3, 7 | Discussion after Theorem 3, Section 5.3 |
| Numerical values, figure coordinates | Check, figure | Recomputed in the site's verification script |
Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →