1

Starting fuction: $y= \sqrt{x^2-2x+1}$

derivative A: $y^{\prime} = (1/2)(2x-2)(x^2-2x+1)^{-1/2}$

derivative B: rewrote the starting function as: $\sqrt{\left(x-1\right)^2} = \vert x -1 \vert$ thus

$y^{\prime} = $ either 1 if $x > 0$ or -1 if $x < 0$

First, are these the same answer? If they are different please tell me where I went wrong, if they are the same, please explain how and why I can have two different answers?

yiyi
  • 7,352

1 Answers1

2

Derivative $A$ is $$ y' = \frac 12 (2x-2) (x^2 - 2x + 1)^{-1/2} = \frac{x-1}{\sqrt{x^2 - 2x + 1}} = \frac{x-1}{|x-1|}.$$

Derivative $B$ should be $1$ if $x > 1$ and $-1$ if $x < 1$.

With this correction observe they agree.

Umberto P.
  • 52,165