Integral of $$$\frac{x^{4}}{x^{4} - 9}$$$

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

Solution

Rewrite and split the fraction:

$${\color{red}{\int{\frac{x^{4}}{x^{4} - 9} d x}}} = {\color{red}{\int{\left(1 + \frac{9}{x^{4} - 9}\right)d x}}}$$

Integrate term by term:

$${\color{red}{\int{\left(1 + \frac{9}{x^{4} - 9}\right)d x}}} = {\color{red}{\left(\int{1 d x} + \int{\frac{9}{x^{4} - 9} d x}\right)}}$$

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

$$\int{\frac{9}{x^{4} - 9} d x} + {\color{red}{\int{1 d x}}} = \int{\frac{9}{x^{4} - 9} d x} + {\color{red}{x}}$$

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

$$x + {\color{red}{\int{\frac{9}{x^{4} - 9} d x}}} = x + {\color{red}{\left(9 \int{\frac{1}{x^{4} - 9} d x}\right)}}$$

Perform partial fraction decomposition (steps can be seen »):

$$x + 9 {\color{red}{\int{\frac{1}{x^{4} - 9} d x}}} = x + 9 {\color{red}{\int{\left(- \frac{1}{6 \left(x^{2} + 3\right)} - \frac{\sqrt{3}}{36 \left(x + \sqrt{3}\right)} + \frac{\sqrt{3}}{36 \left(x - \sqrt{3}\right)}\right)d x}}}$$

Integrate term by term:

$$x + 9 {\color{red}{\int{\left(- \frac{1}{6 \left(x^{2} + 3\right)} - \frac{\sqrt{3}}{36 \left(x + \sqrt{3}\right)} + \frac{\sqrt{3}}{36 \left(x - \sqrt{3}\right)}\right)d x}}} = x + 9 {\color{red}{\left(\int{\frac{\sqrt{3}}{36 \left(x - \sqrt{3}\right)} d x} - \int{\frac{\sqrt{3}}{36 \left(x + \sqrt{3}\right)} d x} - \int{\frac{1}{6 \left(x^{2} + 3\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=\frac{1}{6}$$$ and $$$f{\left(x \right)} = \frac{1}{x^{2} + 3}$$$:

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

Let $$$u=\frac{\sqrt{3}}{3} x$$$.

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

The integral can be rewritten as

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

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

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

The integral of $$$\frac{1}{u^{2} + 1}$$$ is $$$\int{\frac{1}{u^{2} + 1} d u} = \operatorname{atan}{\left(u \right)}$$$:

$$x + 9 \int{\frac{\sqrt{3}}{36 \left(x - \sqrt{3}\right)} d x} - 9 \int{\frac{\sqrt{3}}{36 \left(x + \sqrt{3}\right)} d x} - \frac{\sqrt{3} {\color{red}{\int{\frac{1}{u^{2} + 1} d u}}}}{2} = x + 9 \int{\frac{\sqrt{3}}{36 \left(x - \sqrt{3}\right)} d x} - 9 \int{\frac{\sqrt{3}}{36 \left(x + \sqrt{3}\right)} d x} - \frac{\sqrt{3} {\color{red}{\operatorname{atan}{\left(u \right)}}}}{2}$$

Recall that $$$u=\frac{\sqrt{3}}{3} x$$$:

$$x + 9 \int{\frac{\sqrt{3}}{36 \left(x - \sqrt{3}\right)} d x} - 9 \int{\frac{\sqrt{3}}{36 \left(x + \sqrt{3}\right)} d x} - \frac{\sqrt{3} \operatorname{atan}{\left({\color{red}{u}} \right)}}{2} = x + 9 \int{\frac{\sqrt{3}}{36 \left(x - \sqrt{3}\right)} d x} - 9 \int{\frac{\sqrt{3}}{36 \left(x + \sqrt{3}\right)} d x} - \frac{\sqrt{3} \operatorname{atan}{\left({\color{red}{\frac{\sqrt{3}}{3} x}} \right)}}{2}$$

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

$$x - \frac{\sqrt{3} \operatorname{atan}{\left(\frac{\sqrt{3}}{3} x \right)}}{2} + 9 \int{\frac{\sqrt{3}}{36 \left(x - \sqrt{3}\right)} d x} - 9 {\color{red}{\int{\frac{\sqrt{3}}{36 \left(x + \sqrt{3}\right)} d x}}} = x - \frac{\sqrt{3} \operatorname{atan}{\left(\frac{\sqrt{3}}{3} x \right)}}{2} + 9 \int{\frac{\sqrt{3}}{36 \left(x - \sqrt{3}\right)} d x} - 9 {\color{red}{\left(\frac{\sqrt{3} \int{\frac{1}{x + \sqrt{3}} d x}}{36}\right)}}$$

Let $$$u=x + \sqrt{3}$$$.

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

So,

$$x - \frac{\sqrt{3} \operatorname{atan}{\left(\frac{\sqrt{3}}{3} x \right)}}{2} + 9 \int{\frac{\sqrt{3}}{36 \left(x - \sqrt{3}\right)} d x} - \frac{\sqrt{3} {\color{red}{\int{\frac{1}{x + \sqrt{3}} d x}}}}{4} = x - \frac{\sqrt{3} \operatorname{atan}{\left(\frac{\sqrt{3}}{3} x \right)}}{2} + 9 \int{\frac{\sqrt{3}}{36 \left(x - \sqrt{3}\right)} d x} - \frac{\sqrt{3} {\color{red}{\int{\frac{1}{u} d u}}}}{4}$$

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

$$x - \frac{\sqrt{3} \operatorname{atan}{\left(\frac{\sqrt{3}}{3} x \right)}}{2} + 9 \int{\frac{\sqrt{3}}{36 \left(x - \sqrt{3}\right)} d x} - \frac{\sqrt{3} {\color{red}{\int{\frac{1}{u} d u}}}}{4} = x - \frac{\sqrt{3} \operatorname{atan}{\left(\frac{\sqrt{3}}{3} x \right)}}{2} + 9 \int{\frac{\sqrt{3}}{36 \left(x - \sqrt{3}\right)} d x} - \frac{\sqrt{3} {\color{red}{\ln{\left(\left|{u}\right| \right)}}}}{4}$$

Recall that $$$u=x + \sqrt{3}$$$:

$$x - \frac{\sqrt{3} \ln{\left(\left|{{\color{red}{u}}}\right| \right)}}{4} - \frac{\sqrt{3} \operatorname{atan}{\left(\frac{\sqrt{3}}{3} x \right)}}{2} + 9 \int{\frac{\sqrt{3}}{36 \left(x - \sqrt{3}\right)} d x} = x - \frac{\sqrt{3} \ln{\left(\left|{{\color{red}{\left(x + \sqrt{3}\right)}}}\right| \right)}}{4} - \frac{\sqrt{3} \operatorname{atan}{\left(\frac{\sqrt{3}}{3} x \right)}}{2} + 9 \int{\frac{\sqrt{3}}{36 \left(x - \sqrt{3}\right)} d x}$$

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

$$x - \frac{\sqrt{3} \ln{\left(\left|{x + \sqrt{3}}\right| \right)}}{4} - \frac{\sqrt{3} \operatorname{atan}{\left(\frac{\sqrt{3}}{3} x \right)}}{2} + 9 {\color{red}{\int{\frac{\sqrt{3}}{36 \left(x - \sqrt{3}\right)} d x}}} = x - \frac{\sqrt{3} \ln{\left(\left|{x + \sqrt{3}}\right| \right)}}{4} - \frac{\sqrt{3} \operatorname{atan}{\left(\frac{\sqrt{3}}{3} x \right)}}{2} + 9 {\color{red}{\left(\frac{\sqrt{3} \int{\frac{1}{x - \sqrt{3}} d x}}{36}\right)}}$$

Let $$$u=x - \sqrt{3}$$$.

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

Therefore,

$$x - \frac{\sqrt{3} \ln{\left(\left|{x + \sqrt{3}}\right| \right)}}{4} - \frac{\sqrt{3} \operatorname{atan}{\left(\frac{\sqrt{3}}{3} x \right)}}{2} + \frac{\sqrt{3} {\color{red}{\int{\frac{1}{x - \sqrt{3}} d x}}}}{4} = x - \frac{\sqrt{3} \ln{\left(\left|{x + \sqrt{3}}\right| \right)}}{4} - \frac{\sqrt{3} \operatorname{atan}{\left(\frac{\sqrt{3}}{3} x \right)}}{2} + \frac{\sqrt{3} {\color{red}{\int{\frac{1}{u} d u}}}}{4}$$

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

$$x - \frac{\sqrt{3} \ln{\left(\left|{x + \sqrt{3}}\right| \right)}}{4} - \frac{\sqrt{3} \operatorname{atan}{\left(\frac{\sqrt{3}}{3} x \right)}}{2} + \frac{\sqrt{3} {\color{red}{\int{\frac{1}{u} d u}}}}{4} = x - \frac{\sqrt{3} \ln{\left(\left|{x + \sqrt{3}}\right| \right)}}{4} - \frac{\sqrt{3} \operatorname{atan}{\left(\frac{\sqrt{3}}{3} x \right)}}{2} + \frac{\sqrt{3} {\color{red}{\ln{\left(\left|{u}\right| \right)}}}}{4}$$

Recall that $$$u=x - \sqrt{3}$$$:

$$x - \frac{\sqrt{3} \ln{\left(\left|{x + \sqrt{3}}\right| \right)}}{4} + \frac{\sqrt{3} \ln{\left(\left|{{\color{red}{u}}}\right| \right)}}{4} - \frac{\sqrt{3} \operatorname{atan}{\left(\frac{\sqrt{3}}{3} x \right)}}{2} = x - \frac{\sqrt{3} \ln{\left(\left|{x + \sqrt{3}}\right| \right)}}{4} + \frac{\sqrt{3} \ln{\left(\left|{{\color{red}{\left(x - \sqrt{3}\right)}}}\right| \right)}}{4} - \frac{\sqrt{3} \operatorname{atan}{\left(\frac{\sqrt{3}}{3} x \right)}}{2}$$

Therefore,

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

Add the constant of integration:

$$\int{\frac{x^{4}}{x^{4} - 9} d x} = x + \frac{\sqrt{3} \ln{\left(\left|{x - \sqrt{3}}\right| \right)}}{4} - \frac{\sqrt{3} \ln{\left(\left|{x + \sqrt{3}}\right| \right)}}{4} - \frac{\sqrt{3} \operatorname{atan}{\left(\frac{\sqrt{3} x}{3} \right)}}{2}+C$$

Answer

$$$\int \frac{x^{4}}{x^{4} - 9}\, dx = \left(x + \frac{\sqrt{3} \ln\left(\left|{x - \sqrt{3}}\right|\right)}{4} - \frac{\sqrt{3} \ln\left(\left|{x + \sqrt{3}}\right|\right)}{4} - \frac{\sqrt{3} \operatorname{atan}{\left(\frac{\sqrt{3} x}{3} \right)}}{2}\right) + C$$$A