Integral of $$$\ln\left(\frac{x}{x_{0}}\right)$$$ with respect to $$$x$$$

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

Solution

Let $$$u=\frac{x}{x_{0}}$$$.

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

The integral becomes

$${\color{red}{\int{\ln{\left(\frac{x}{x_{0}} \right)} d x}}} = {\color{red}{\int{x_{0} \ln{\left(u \right)} d u}}}$$

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

$${\color{red}{\int{x_{0} \ln{\left(u \right)} d u}}} = {\color{red}{x_{0} \int{\ln{\left(u \right)} d u}}}$$

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

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

Then $$$\operatorname{ds}=\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 »).

So,

$$x_{0} {\color{red}{\int{\ln{\left(u \right)} d u}}}=x_{0} {\color{red}{\left(\ln{\left(u \right)} \cdot u-\int{u \cdot \frac{1}{u} d u}\right)}}=x_{0} {\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$$$:

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

Recall that $$$u=\frac{x}{x_{0}}$$$:

$$x_{0} \left(- {\color{red}{u}} + {\color{red}{u}} \ln{\left({\color{red}{u}} \right)}\right) = x_{0} \left(- {\color{red}{\frac{x}{x_{0}}}} + {\color{red}{\frac{x}{x_{0}}}} \ln{\left({\color{red}{\frac{x}{x_{0}}}} \right)}\right)$$

Therefore,

$$\int{\ln{\left(\frac{x}{x_{0}} \right)} d x} = x_{0} \left(\frac{x \ln{\left(\frac{x}{x_{0}} \right)}}{x_{0}} - \frac{x}{x_{0}}\right)$$

Simplify:

$$\int{\ln{\left(\frac{x}{x_{0}} \right)} d x} = x \left(\ln{\left(\frac{x}{x_{0}} \right)} - 1\right)$$

Add the constant of integration:

$$\int{\ln{\left(\frac{x}{x_{0}} \right)} d x} = x \left(\ln{\left(\frac{x}{x_{0}} \right)} - 1\right)+C$$

Answer

$$$\int \ln\left(\frac{x}{x_{0}}\right)\, dx = x \left(\ln\left(\frac{x}{x_{0}}\right) - 1\right) + C$$$A