Derivative of $$$\left(x - 1\right)^{2}$$$

The calculator will find the derivative of $$$\left(x - 1\right)^{2}$$$, with steps shown.

Related calculators: Logarithmic Differentiation Calculator, Implicit Differentiation Calculator with Steps

Leave empty for autodetection.
Leave empty, if you don't need the derivative at a specific point.

If the calculator did not compute something or you have identified an error, or you have a suggestion/feedback, please contact us.

Your Input

Find $$$\frac{d}{dx} \left(\left(x - 1\right)^{2}\right)$$$.

Solution

The function $$$\left(x - 1\right)^{2}$$$ is the composition $$$f{\left(g{\left(x \right)} \right)}$$$ of two functions $$$f{\left(u \right)} = u^{2}$$$ and $$$g{\left(x \right)} = x - 1$$$.

Apply the chain rule $$$\frac{d}{dx} \left(f{\left(g{\left(x \right)} \right)}\right) = \frac{d}{du} \left(f{\left(u \right)}\right) \frac{d}{dx} \left(g{\left(x \right)}\right)$$$:

$${\color{red}\left(\frac{d}{dx} \left(\left(x - 1\right)^{2}\right)\right)} = {\color{red}\left(\frac{d}{du} \left(u^{2}\right) \frac{d}{dx} \left(x - 1\right)\right)}$$

Apply the power rule $$$\frac{d}{du} \left(u^{n}\right) = n u^{n - 1}$$$ with $$$n = 2$$$:

$${\color{red}\left(\frac{d}{du} \left(u^{2}\right)\right)} \frac{d}{dx} \left(x - 1\right) = {\color{red}\left(2 u\right)} \frac{d}{dx} \left(x - 1\right)$$

Return to the old variable:

$$2 {\color{red}\left(u\right)} \frac{d}{dx} \left(x - 1\right) = 2 {\color{red}\left(x - 1\right)} \frac{d}{dx} \left(x - 1\right)$$

The derivative of a sum/difference is the sum/difference of derivatives:

$$2 \left(x - 1\right) {\color{red}\left(\frac{d}{dx} \left(x - 1\right)\right)} = 2 \left(x - 1\right) {\color{red}\left(\frac{d}{dx} \left(x\right) - \frac{d}{dx} \left(1\right)\right)}$$

Apply the power rule $$$\frac{d}{dx} \left(x^{n}\right) = n x^{n - 1}$$$ with $$$n = 1$$$, in other words, $$$\frac{d}{dx} \left(x\right) = 1$$$:

$$2 \left(x - 1\right) \left({\color{red}\left(\frac{d}{dx} \left(x\right)\right)} - \frac{d}{dx} \left(1\right)\right) = 2 \left(x - 1\right) \left({\color{red}\left(1\right)} - \frac{d}{dx} \left(1\right)\right)$$

The derivative of a constant is $$$0$$$:

$$2 \left(1 - {\color{red}\left(\frac{d}{dx} \left(1\right)\right)}\right) \left(x - 1\right) = 2 \left(1 - {\color{red}\left(0\right)}\right) \left(x - 1\right)$$

Thus, $$$\frac{d}{dx} \left(\left(x - 1\right)^{2}\right) = 2 x - 2$$$.

Answer

$$$\frac{d}{dx} \left(\left(x - 1\right)^{2}\right) = 2 x - 2$$$A


Please try a new game StackedWords