Integral of $$$\frac{x + 3}{x - 3}$$$

The calculator will find the integral/antiderivative of $$$\frac{x + 3}{x - 3}$$$, 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 \frac{x + 3}{x - 3}\, 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$$$.

Therefore,

$${\color{red}{\int{\frac{x + 3}{x - 3} d x}}} = {\color{red}{\int{\frac{u + 6}{u} d u}}}$$

Expand the expression:

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

Integrate term by term:

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

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

$$\int{\frac{6}{u} d u} + {\color{red}{\int{1 d u}}} = \int{\frac{6}{u} d u} + {\color{red}{u}}$$

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

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

The integral of $$$\frac{1}{u}$$$ is $$$\int{\frac{1}{u} d u} = \ln{\left(\left|{u}\right| \right)}$$$:

$$u + 6 {\color{red}{\int{\frac{1}{u} d u}}} = u + 6 {\color{red}{\ln{\left(\left|{u}\right| \right)}}}$$

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

$$6 \ln{\left(\left|{{\color{red}{u}}}\right| \right)} + {\color{red}{u}} = 6 \ln{\left(\left|{{\color{red}{\left(x - 3\right)}}}\right| \right)} + {\color{red}{\left(x - 3\right)}}$$

Therefore,

$$\int{\frac{x + 3}{x - 3} d x} = x + 6 \ln{\left(\left|{x - 3}\right| \right)} - 3$$

Add the constant of integration (and remove the constant from the expression):

$$\int{\frac{x + 3}{x - 3} d x} = x + 6 \ln{\left(\left|{x - 3}\right| \right)}+C$$

Answer

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