Integral of 1x1 - x

The calculator will find the integral/antiderivative of 1x1 - x, with steps shown.

Related calculator: Definite and Improper Integral Calculator

Please write without any differentials such as dxdx, dydy 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 (1x)dx\int \left(1 - x\right)\, dx.

Solution

Integrate term by term:

(1x)dx=(1dxxdx){\color{red}{\int{\left(1 - x\right)d x}}} = {\color{red}{\left(\int{1 d x} - \int{x d x}\right)}}

Apply the constant rule cdx=cx\int c\, dx = c x with c=1c=1:

xdx+1dx=xdx+x- \int{x d x} + {\color{red}{\int{1 d x}}} = - \int{x d x} + {\color{red}{x}}

Apply the power rule xndx=xn+1n+1\int x^{n}\, dx = \frac{x^{n + 1}}{n + 1} (n1)\left(n \neq -1 \right) with n=1n=1:

xxdx=xx1+11+1=x(x22)x - {\color{red}{\int{x d x}}}=x - {\color{red}{\frac{x^{1 + 1}}{1 + 1}}}=x - {\color{red}{\left(\frac{x^{2}}{2}\right)}}

Therefore,

(1x)dx=x22+x\int{\left(1 - x\right)d x} = - \frac{x^{2}}{2} + x

Simplify:

(1x)dx=x(2x)2\int{\left(1 - x\right)d x} = \frac{x \left(2 - x\right)}{2}

Add the constant of integration:

(1x)dx=x(2x)2+C\int{\left(1 - x\right)d x} = \frac{x \left(2 - x\right)}{2}+C

Answer

(1x)dx=x(2x)2+C\int \left(1 - x\right)\, dx = \frac{x \left(2 - x\right)}{2} + CA