Integral of $$$\left(x - 3\right)^{2}$$$

The calculator will find the integral/antiderivative of $$$\left(x - 3\right)^{2}$$$, with steps shown.

Related calculator: Definite and Improper Integral Calculator

Please write without any differentials such as $$$dx$$$, $$$dy$$$ etc.
Leave empty for autodetection.

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 $$$\int \left(x - 3\right)^{2}\, dx$$$.

Solution

Let $$$u=x - 3$$$.

Then $$$du=\left(x - 3\right)^{\prime }dx = 1 dx$$$ (steps can be seen »), and we have that $$$dx = du$$$.

The integral becomes

$${\color{red}{\int{\left(x - 3\right)^{2} d x}}} = {\color{red}{\int{u^{2} d u}}}$$

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

$${\color{red}{\int{u^{2} d u}}}={\color{red}{\frac{u^{1 + 2}}{1 + 2}}}={\color{red}{\left(\frac{u^{3}}{3}\right)}}$$

Recall that $$$u=x - 3$$$:

$$\frac{{\color{red}{u}}^{3}}{3} = \frac{{\color{red}{\left(x - 3\right)}}^{3}}{3}$$

Therefore,

$$\int{\left(x - 3\right)^{2} d x} = \frac{\left(x - 3\right)^{3}}{3}$$

Add the constant of integration:

$$\int{\left(x - 3\right)^{2} d x} = \frac{\left(x - 3\right)^{3}}{3}+C$$

Answer

$$$\int \left(x - 3\right)^{2}\, dx = \frac{\left(x - 3\right)^{3}}{3} + C$$$A


Please try a new game Rotatly