Integral of $\ln\left(x\right)$

The calculator will find the integral/antiderivative of $\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 write it in the comments below.

Find $\int \ln\left(x\right)\, dx$.

Solution

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

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

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

Thus,

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

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

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

Therefore,

$$\int{\ln{\left(x \right)} d x} = x \ln{\left(\left|{x}\right| \right)} - x$$

Simplify:

$$\int{\ln{\left(x \right)} d x} = x \left(\ln{\left(\left|{x}\right| \right)} - 1\right)$$

$$\int{\ln{\left(x \right)} d x} = x \left(\ln{\left(\left|{x}\right| \right)} - 1\right)+C$$
Answer: $\int{\ln{\left(x \right)} d x}=x \left(\ln{\left(\left|{x}\right| \right)} - 1\right)+C$
{"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 1, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0}