Derivative of $$$x^{2} \left(1 - x\right)$$$
Related calculators: Logarithmic Differentiation Calculator, Implicit Differentiation Calculator with Steps
Your Input
Find $$$\frac{d}{dx} \left(x^{2} \left(1 - x\right)\right)$$$.
Solution
Apply the product rule $$$\frac{d}{dx} \left(f{\left(x \right)} g{\left(x \right)}\right) = \frac{d}{dx} \left(f{\left(x \right)}\right) g{\left(x \right)} + f{\left(x \right)} \frac{d}{dx} \left(g{\left(x \right)}\right)$$$ with $$$f{\left(x \right)} = x^{2}$$$ and $$$g{\left(x \right)} = 1 - x$$$:
$${\color{red}\left(\frac{d}{dx} \left(x^{2} \left(1 - x\right)\right)\right)} = {\color{red}\left(\frac{d}{dx} \left(x^{2}\right) \left(1 - x\right) + x^{2} \frac{d}{dx} \left(1 - x\right)\right)}$$Apply the power rule $$$\frac{d}{dx} \left(x^{n}\right) = n x^{n - 1}$$$ with $$$n = 2$$$:
$$x^{2} \frac{d}{dx} \left(1 - x\right) + \left(1 - x\right) {\color{red}\left(\frac{d}{dx} \left(x^{2}\right)\right)} = x^{2} \frac{d}{dx} \left(1 - x\right) + \left(1 - x\right) {\color{red}\left(2 x\right)}$$The derivative of a sum/difference is the sum/difference of derivatives:
$$x^{2} {\color{red}\left(\frac{d}{dx} \left(1 - x\right)\right)} + 2 x \left(1 - x\right) = x^{2} {\color{red}\left(\frac{d}{dx} \left(1\right) - \frac{d}{dx} \left(x\right)\right)} + 2 x \left(1 - x\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$$$:
$$x^{2} \left(- {\color{red}\left(\frac{d}{dx} \left(x\right)\right)} + \frac{d}{dx} \left(1\right)\right) + 2 x \left(1 - x\right) = x^{2} \left(- {\color{red}\left(1\right)} + \frac{d}{dx} \left(1\right)\right) + 2 x \left(1 - x\right)$$The derivative of a constant is $$$0$$$:
$$x^{2} \left({\color{red}\left(\frac{d}{dx} \left(1\right)\right)} - 1\right) + 2 x \left(1 - x\right) = x^{2} \left({\color{red}\left(0\right)} - 1\right) + 2 x \left(1 - x\right)$$Simplify:
$$- x^{2} + 2 x \left(1 - x\right) = x \left(2 - 3 x\right)$$Thus, $$$\frac{d}{dx} \left(x^{2} \left(1 - x\right)\right) = x \left(2 - 3 x\right)$$$.
Answer
$$$\frac{d}{dx} \left(x^{2} \left(1 - x\right)\right) = x \left(2 - 3 x\right)$$$A