Differentiate the following function w.r.t. x : x² - 7
Question 333 marksMedium
Differentiate the following function w.r.t. x: ∣x2−7∣
Solution:
Key idea: Since ∣u∣=u2, the chain rule gives dxd∣u∣=∣u∣udxdu wherever u=0. The factor ∣u∣u is +1 where u>0 and −1 where u<0. Where u=0 the graph of ∣u∣ has a sharp corner, and there is no derivative.
Step 1 — Name the inside.
We let u=x2−7, so that y=∣u∣. Its derivative is
dxdu=2x
Step 2 — Write ∣u∣ as a root and differentiate.
We use ∣u∣=u2 and the chain rule.
dxdy=2u21×2udxdu
dxdy=∣u∣u×dxdu
Step 3 — Substitute back.
We put u=x2−7 and dxdu=2x.
dxdy=∣x2−7∣2x(x2−7)
Step 4 — State where this holds.
The formula needs x2−7=0, so it fails only at the two points x=±7. Away from them, the derivative equals 2x when ∣x∣>7 (where x2−7>0) and −2x when ∣x∣<7 (where x2−7<0).