tangent of (x-2)(x^2+4)
No x-coordinate is specified: find the tangent at the general point x = a, for real a
⇥Let's differentiate: ddx(x3 -2x2 + 4x -8)
⇥ ddx(x3) + ddx(-2x2) + ddx(4x) + 0
⇥ℹddx(x3) = 3x2‖ddx(-2x2) = -2·ddx(x2)‖ddx(x2) = 2x‖ddx(4x) = 4
⇥ 3x2 -2·2x + 4
⇥ 3x2 -4x + 4
The point of tangency is (a, a3 -2a2 + 4a -8)
The slope is f'(a) = 3a2 -4a + 4
The tangent passes through this point with this slope: y = (3a2 -4a + 4)·(x -a) + (a3 -2a2 + 4a -8)
⇥ (a3 -2a2 + 4a -8) -(3a2 -4a + 4)·a
⇥ a3 -2a2 + 4a -8 -(3a2 -4a + 4)·a
⇥ a3 -2a2 + 4a -8 -(3a3 -4a2 + 4a)
⇥ a3 -2a2 + 4a -8 -3a3 + 4a2 -4a
⇥ℹa3 -3a3 = -2a3‖-2a2 + 4a2 = 2a2‖4a -4a = 0
⇥ -2a3 + 2a2 + 0 -8
⇥ -2a3 + 2a2 -8
⇥ y = (3a2 -4a + 4)·x + (-2a3 + 2a2 -8)
▶Tangent line:   y = (3a2 -4a + 4)·x -2a3 + 2a2 -8