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

The calculator will find the integral/antiderivative of $$$- \frac{x}{2} - 3 \ln\left(- x\right)$$$, 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(- \frac{x}{2} - 3 \ln\left(- x\right)\right)\, dx$$$.

Solution

Integrate term by term:

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

Apply the constant multiple rule $$$\int c f{\left(x \right)}\, dx = c \int f{\left(x \right)}\, dx$$$ with $$$c=3$$$ and $$$f{\left(x \right)} = \ln{\left(- x \right)}$$$:

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

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

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

The integral can be rewritten as

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

Apply the constant multiple rule $$$\int c f{\left(u \right)}\, du = c \int f{\left(u \right)}\, du$$$ with $$$c=-1$$$ and $$$f{\left(u \right)} = \ln{\left(u \right)}$$$:

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

For the integral $$$\int{\ln{\left(u \right)} d u}$$$, use integration by parts $$$\int \operatorname{g} \operatorname{dv} = \operatorname{g}\operatorname{v} - \int \operatorname{v} \operatorname{dg}$$$.

Let $$$\operatorname{g}=\ln{\left(u \right)}$$$ and $$$\operatorname{dv}=du$$$.

Then $$$\operatorname{dg}=\left(\ln{\left(u \right)}\right)^{\prime }du=\frac{du}{u}$$$ (steps can be seen ») and $$$\operatorname{v}=\int{1 d u}=u$$$ (steps can be seen »).

Thus,

$$- \int{\frac{x}{2} d x} + 3 {\color{red}{\int{\ln{\left(u \right)} d u}}}=- \int{\frac{x}{2} d x} + 3 {\color{red}{\left(\ln{\left(u \right)} \cdot u-\int{u \cdot \frac{1}{u} d u}\right)}}=- \int{\frac{x}{2} d x} + 3 {\color{red}{\left(u \ln{\left(u \right)} - \int{1 d u}\right)}}$$

Apply the constant rule $$$\int c\, du = c u$$$ with $$$c=1$$$:

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

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

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

Apply the constant multiple rule $$$\int c f{\left(x \right)}\, dx = c \int f{\left(x \right)}\, dx$$$ with $$$c=\frac{1}{2}$$$ and $$$f{\left(x \right)} = x$$$:

$$- 3 x \ln{\left(- x \right)} + 3 x - {\color{red}{\int{\frac{x}{2} d x}}} = - 3 x \ln{\left(- x \right)} + 3 x - {\color{red}{\left(\frac{\int{x d x}}{2}\right)}}$$

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

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

Therefore,

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

Simplify:

$$\int{\left(- \frac{x}{2} - 3 \ln{\left(- x \right)}\right)d x} = \frac{x \left(- x - 12 \ln{\left(- x \right)} + 12\right)}{4}$$

Add the constant of integration:

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

Answer

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


Please try a new game Rotatly