MHB Indefinite integration involving exponential and rational function

juantheron
Messages
243
Reaction score
1
Calculation of $\displaystyle \int e^x \cdot \frac{x^3-x+2}{(x^2+1)^2}dx$
 
Mathematics news on Phys.org
Let $$y = \mathrm{e}^x \cdot \frac{x^3 - x + 2}{(x^2 + 1)^2} = f'$$ for some function $$f$$.

If we then write $$f = \mathrm{e}^x q$$ for some function $$q$$ and differentiate this we see that $$f' = \mathrm{e}^x (q + q')$$. Thus we can write

$$\mathrm{e}^x \cdot \frac{x^3 - x + 2}{(x^2 + 1)^2} = \mathrm{e}^x (q + q') \quad \Leftrightarrow \quad \frac{x^3 - x + 2}{(x^2 + 1)^2} = q + q'$$.

This could be solved directly, but I liked more to do this light differently like this:

Now I assume that function $$q$$ can be written in form $$q = \frac{p}{x^2 + 1}$$ using some function $$p$$. Substituting this into the equation gives us

$$(x - 1)^2p + (x^2 + 1)p' = x^3 - x + 2$$.

This ODE is easy to solve. For homogenous equation we obtain

$$p_h = C\mathrm{e}^{-x}(x^2 + 1)$$

and particular solution

$$p_p = x + 1$$,

and thus the solution to the ODE is

$$p = x + 1 + C\mathrm{e}^{-x}(x^2 + 1)$$.

Now we can write the functions $$q$$ and $$f$$, namely

$$q = \frac{p}{x^2 + 1} = \frac{x + 1}{x^2 + 1} + C\mathrm{e}^{-x}$$

and

$$f = \mathrm{e}^x q = \mathrm{e}^x \cdot \frac{x + 1}{x^2 + 1} + C$$.

Hence

$$\int \mathrm{e}^x \cdot \frac{x^3 - x + 2}{(x^2 + 1)^2} \mathrm{d}x = \mathrm{e}^x \cdot \frac{x + 1}{x^2 + 1} + C$$.
 
Seemingly by some mathematical coincidence, a hexagon of sides 2,2,7,7, 11, and 11 can be inscribed in a circle of radius 7. The other day I saw a math problem on line, which they said came from a Polish Olympiad, where you compute the length x of the 3rd side which is the same as the radius, so that the sides of length 2,x, and 11 are inscribed on the arc of a semi-circle. The law of cosines applied twice gives the answer for x of exactly 7, but the arithmetic is so complex that the...
Just chatting with my son about Maths and he casually mentioned that 0 would be the midpoint of the number line from -inf to +inf. I wondered whether it wouldn’t be more accurate to say there is no single midpoint. Couldn’t you make an argument that any real number is exactly halfway between -inf and +inf?
Back
Top