1 / | | 2 | ------ dx | 2 | x - 4 | / 0
Integral(2/(x^2 - 4), (x, 0, 1))
The integral of a constant times a function is the constant times the integral of the function:
PiecewiseRule(subfunctions=[(ArctanRule(a=1, b=1, c=-4, context=1/(x**2 - 4), symbol=x), False), (ArccothRule(a=1, b=1, c=-4, context=1/(x**2 - 4), symbol=x), x**2 > 4), (ArctanhRule(a=1, b=1, c=-4, context=1/(x**2 - 4), symbol=x), x**2 < 4)], context=1/(x**2 - 4), symbol=x)
So, the result is:
Now simplify:
Add the constant of integration:
The answer is:
// /x\ \
||-acoth|-| |
/ || \2/ 2 |
| ||---------- for x > 4|
| 2 || 2 |
| ------ dx = C + 2*|< |
| 2 || /x\ |
| x - 4 ||-atanh|-| |
| || \2/ 2 |
/ ||---------- for x < 4|
\\ 2 /
-log(3) -------- 2
=
-log(3) -------- 2
-log(3)/2
Use the examples entering the upper and lower limits of integration.