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$$.
 
I have been insisting to my statistics students that for probabilities, the rule is the number of significant figures is the number of digits past the leading zeros or leading nines. For example to give 4 significant figures for a probability: 0.000001234 and 0.99999991234 are the correct number of decimal places. That way the complementary probability can also be given to the same significant figures ( 0.999998766 and 0.00000008766 respectively). More generally if you have a value that...

Similar threads

  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 14 ·
Replies
14
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
5K