What is the equation of the tangent line of #f(x) =sqrt(x^2-2x+1)-x+1# at # x = 1#?

1 Answer
Apr 10, 2016

The tangent line at #x=1# is undefined as #f(x)# is continuous but not differentiable at that point.

Explanation:

#f(x) = sqrt(x^2-2x+1)-x+1#

#=sqrt((x-1)^2)-(x-1)#

#=abs(x-1)-(x-1)#

Hence:

#f(x) = { (-2x+2, "if x <= 1"), (0, "if x >= 1") :}#

When #x < 1# the derivative #f'(x) = -2#

When #x > 1# the derivative #f'(x) = 0#

So the left and right limits of the slope disagree at #x=1#. So the derivative is undefined at #x=1# and the tangent is undefined.

graph{sqrt(x^2-2x+1)-x+1 [-4.333, 5.667, -0.7, 4.3]}