👉 Try now NerdPal! Our new math app on iOS and Android

Find the integral of $\frac{x^5-x^4+x^2-2}{x^2+1}$

Step-by-step Solution

Go!
Symbolic mode
Text mode
Go!
1
2
3
4
5
6
7
8
9
0
a
b
c
d
f
g
m
n
u
v
w
x
y
z
.
(◻)
+
-
×
◻/◻
/
÷
2

e
π
ln
log
log
lim
d/dx
Dx
|◻|
θ
=
>
<
>=
<=
sin
cos
tan
cot
sec
csc

asin
acos
atan
acot
asec
acsc

sinh
cosh
tanh
coth
sech
csch

asinh
acosh
atanh
acoth
asech
acsch

Final answer to the problem

$\frac{x^{4}}{4}+\frac{-x^{3}}{3}-\frac{1}{2}x^2+2x-4\arctan\left(x\right)+\frac{1}{2}\ln\left(x^2+1\right)+C_0$
Got another answer? Verify it here!

Step-by-step Solution

Specify the solving method

1

Find the integral

$\int\frac{x^5-x^4+x^2-2}{x^2+1}dx$
2

Divide $x^5-x^4+x^2-2$ by $x^2+1$

$\begin{array}{l}\phantom{\phantom{;}x^{2}+1;}{\phantom{;}x^{3}-x^{2}-x\phantom{;}+2\phantom{;}\phantom{;}}\\\phantom{;}x^{2}+1\overline{\smash{)}\phantom{;}x^{5}-x^{4}\phantom{-;x^n}+x^{2}\phantom{-;x^n}-2\phantom{;}\phantom{;}}\\\phantom{\phantom{;}x^{2}+1;}\underline{-x^{5}\phantom{-;x^n}-x^{3}\phantom{-;x^n}\phantom{-;x^n}\phantom{-;x^n}}\\\phantom{-x^{5}-x^{3};}-x^{4}-x^{3}+x^{2}\phantom{-;x^n}-2\phantom{;}\phantom{;}\\\phantom{\phantom{;}x^{2}+1-;x^n;}\underline{\phantom{;}x^{4}\phantom{-;x^n}+x^{2}\phantom{-;x^n}\phantom{-;x^n}}\\\phantom{;\phantom{;}x^{4}+x^{2}-;x^n;}-x^{3}+2x^{2}\phantom{-;x^n}-2\phantom{;}\phantom{;}\\\phantom{\phantom{;}x^{2}+1-;x^n-;x^n;}\underline{\phantom{;}x^{3}\phantom{-;x^n}+x\phantom{;}\phantom{-;x^n}}\\\phantom{;;\phantom{;}x^{3}+x\phantom{;}-;x^n-;x^n;}\phantom{;}2x^{2}+x\phantom{;}-2\phantom{;}\phantom{;}\\\phantom{\phantom{;}x^{2}+1-;x^n-;x^n-;x^n;}\underline{-2x^{2}\phantom{-;x^n}-2\phantom{;}\phantom{;}}\\\phantom{;;;-2x^{2}-2\phantom{;}\phantom{;}-;x^n-;x^n-;x^n;}\phantom{;}x\phantom{;}-4\phantom{;}\phantom{;}\\\end{array}$
3

Resulting polynomial

$\int\left(x^{3}-x^{2}-x+2+\frac{x-4}{x^2+1}\right)dx$
4

Expand the integral $\int\left(x^{3}-x^{2}-x+2+\frac{x-4}{x^2+1}\right)dx$ into $5$ integrals using the sum rule for integrals, to then solve each integral separately

$\int x^{3}dx+\int-x^{2}dx+\int-xdx+\int2dx+\int\frac{x-4}{x^2+1}dx$
5

The integral $\int x^{3}dx$ results in: $\frac{x^{4}}{4}$

$\frac{x^{4}}{4}$
6

The integral $\int-x^{2}dx$ results in: $\frac{-x^{3}}{3}$

$\frac{-x^{3}}{3}$
7

The integral $\int-xdx$ results in: $-\frac{1}{2}x^2$

$-\frac{1}{2}x^2$
8

The integral $\int2dx$ results in: $2x$

$2x$
9

The integral $\int\frac{x-4}{x^2+1}dx$ results in: $\frac{1}{2}\ln\left(x^2+1\right)-4\arctan\left(x\right)$

$\frac{1}{2}\ln\left(x^2+1\right)-4\arctan\left(x\right)$
10

Gather the results of all integrals

$\frac{x^{4}}{4}+\frac{-x^{3}}{3}-\frac{1}{2}x^2+2x-4\arctan\left(x\right)+\frac{1}{2}\ln\left(x^2+1\right)$
11

As the integral that we are solving is an indefinite integral, when we finish integrating we must add the constant of integration $C$

$\frac{x^{4}}{4}+\frac{-x^{3}}{3}-\frac{1}{2}x^2+2x-4\arctan\left(x\right)+\frac{1}{2}\ln\left(x^2+1\right)+C_0$

Final answer to the problem

$\frac{x^{4}}{4}+\frac{-x^{3}}{3}-\frac{1}{2}x^2+2x-4\arctan\left(x\right)+\frac{1}{2}\ln\left(x^2+1\right)+C_0$

Give us your feedback!

Function Plot

Plotting: $\frac{x^{4}}{4}+\frac{-x^{3}}{3}-\frac{1}{2}x^2+2x-4\arctan\left(x\right)+\frac{1}{2}\ln\left(x^2+1\right)+C_0$

SnapXam A2
Answer Assistant

beta
Got a different answer? Verify it!

Go!
1
2
3
4
5
6
7
8
9
0
a
b
c
d
f
g
m
n
u
v
w
x
y
z
.
(◻)
+
-
×
◻/◻
/
÷
2

e
π
ln
log
log
lim
d/dx
Dx
|◻|
θ
=
>
<
>=
<=
sin
cos
tan
cot
sec
csc

asin
acos
atan
acot
asec
acsc

sinh
cosh
tanh
coth
sech
csch

asinh
acosh
atanh
acoth
asech
acsch

How to improve your answer:

Your Math & Physics Tutor. Powered by AI

Available 24/7, 365.

Unlimited step-by-step math solutions. No ads.

Includes multiple solving methods.

Support for more than 100 math topics.

Premium access on our iOS and Android apps as well.

20% discount on online tutoring.

Choose your subscription plan:
Have a promo code?
Pay $39.97 USD securely with your payment method.
Please hold while your payment is being processed.
Create an Account