tangent of 5x^2+8x-8
No x-coordinate is specified: find the tangent at the general point x = a, for real a
Let's differentiate: ddx(5x2 + 8x -8)
ⓘ The derivative of a sum is the sum of the derivatives: ddx(5x2 + 8x -8) = ddx(5x2) + ddx(8x) + 0
ddx(5x2) + ddx(8x) + 0
ⓘ A constant factor stays in front of the derivative, (k*u)' = k*u': ddx(5x2) = 5·ddx(x2), ddx(8x) = 8■The derivative of x^n is n*x^(n-1): ddx(x2) = 2x■Adding 0 changes nothing: ddx(8x) + 0 = ddx(8x)
5·2x + 8
ⓘ Multiplications are done before additions and subtractions: 5·2 = 10
10x + 8
Compute f(a)
The point of tangency is (a, 5a2 + 8a -8)
Compute f'(a)
The slope is f'(a) = 10a + 8
The tangent passes through this point with this slope: y = (10a + 8)·(x -a) + (5a2 + 8a -8)
Compute the y-intercept: b = (5a2 + 8a -8) -(10a + 8)·a
(5a2 + 8a -8) -(10a + 8)·a
5a2 + 8a -8 -(10a + 8)·a
ⓘ Expand by multiplying each term inside the parentheses: -(10a + 8)·a = -(10a2 + 8a)
5a2 + 8a -8 -(10a2 + 8a)
ⓘ A minus sign before a parenthesis changes the sign of each of its terms: -(10a2 + 8a) = -10a2 -8a
5a2 + 8a -8 -10a2 -8a
ⓘ Like terms are grouped by adding their coefficients: 5a2 -10a2 = -5a2, 8a -8a = 0
-5a2 + 0 -8
ⓘ Adding 0 changes nothing: 0 -8 = -8
-5a2 -8
y = (10a + 8)·x + (-5a2 -8)
▶Tangent line:   y = (10a + 8)·x -5a2 -8