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