integral of 1/(2-x^2)
1) Let's integrate: ∫(12 -x2)dx
Let's factor in ℝ: 2 -x2
Factors identified: -(x + 2)·(x -2)
2) You can decompose into partial fractions:
1-(x + 2)·(x -2) = Ax + 2 + Bx -2
For the simple factor: x + 2 and its root: -2, the unknown A can be easily computed by multiplying by the denominator: 2 -x2 and evaluating at the root because the other terms cancel out:
3) Let's solve in ℝ: -(-2 -2)·A = 1
--2·2·A = 1
2·2·A = 1
A = 12·2
The conventional preference is to have numerical square roots in the numerator rather than in the denominator:
A = 22·2
Solution obtained: A = 24
For the simple factor: x -2 and its root: 2, the unknown B can be easily computed by multiplying by the denominator: 2 -x2 and evaluating at the root because the other terms cancel out:
4) Let's solve in ℝ: -(2 + 2)·B = 1
-2·2·B = 1
B = 1-2·2
B = -12·2
The conventional preference is to have numerical square roots in the numerator rather than in the denominator:
B = -22·2
Solution obtained: B = -24
5) Finally, substitute the unknowns back into the initial partial fraction decomposition:
24x + 2 -24x -2
24·1x + 2 -24·1x -2
ℹ24·1x + 2 = 24·(x + 2)‖-24·1x -2 = -24·(x -2)
24·(x + 2) -24·(x -2)
6) Let's integrate: ∫(24·(x + 2) -24·(x -2))dx
∫(24·(x + 2))dx -∫(24·(x -2))dx
Let u = 4x + 4·2. Then du = 4dx, so dx = du4
∫(24·(x + 2))dx = 24·∫(1u)du
We use ∫(1u)du = ln(abs(u)). The absolute value covers both signs of the denominator, on any interval where 4x + 4·2 != 0
Substitute u = 4x + 4·2 back into the antiderivative
Let u = 4x -4·2. Then du = 4dx, so dx = du4
∫(24·(x -2))dx = 24·∫(1u)du
We use ∫(1u)du = ln(abs(u)). The absolute value covers both signs of the denominator, on any interval where 4x -4·2 != 0
Substitute u = 4x -4·2 back into the antiderivative
24·ln(abs(4x + 4·2)) -24·ln(abs(4x -4·2))
ℹ24·ln(abs(4x + 4·2)) = 2·ln(abs(4x + 4·2))4‖-24·ln(abs(4x -4·2)) = -2·ln(abs(4x -4·2))4‖2·ln(abs(4x + 4·2))4 -2·ln(abs(4x -4·2))4 = 2·ln(abs(4x + 4·2)) -2·ln(abs(4x -4·2))4
2·ln(abs(4x + 4·2)) -2·ln(abs(4x -4·2))4
2·(ln(abs(4x + 4·2)) -ln(abs(4x -4·2)))4
2·ln(abs(4x + 4·2)abs(4x -4·2))4
2·ln(abs(x + 2)abs(x -2))4
▶Indefinite integrals are defined up to an additive constant C, so this yields: ln(abs(x + 2)abs(x -2))·24 + C