To find the equation of the tangent line to the graph of y=x2+1−4x at a given point, we need to:
- Compute the derivative of the function to get the slope of the tangent line.
- Evaluate the derivative at the given points to find the slopes at those points.
- Use the point-slope form of the equation of a line to write the equation of the tangent line.
To find the slope of the tangent line, we first compute the derivative of the function y=x2+1−4x. The derivative is given by:
y′=(x2+1)28x2−x2+14
Next, we evaluate the derivative at the origin (0,0):
y′(0)=−4
This means the slope of the tangent line at the origin is −4.
Using the point-slope form of the equation of a line y−y1=m(x−x1), where (x1,y1)=(0,0) and m=−4:
y−0=−4(x−0)⟹y=−4x
Now, we evaluate the derivative at the point (1,−2):
y′(1)=0
This indicates that the slope of the tangent line at the point (1,−2) is 0.
Using the point-slope form again, where (x1,y1)=(1,−2) and m=0:
y−(−2)=0(x−1)⟹y=−2
The equations of the tangent lines are:
- At the origin: y=−4x
- At the point (1,−2): y=−2
Thus, the final answers are:
y=−4x
y=−2