integral of 1/(2-x^2)

1) Let's evaluate the domain of 12 -x2
For the expression 12 -x2 to be defined, we must have: 2 -x2 ≠ 0
The two numbers whose square is 2 are -2 and 2
Domain of definition:   x ∈ ℝ \ { -2, 2 }
2) Let's compute the integral: ∫12 -x2dx
3) Let's factor in ℝ: 2 -x2
For 2 -x2, we recognize a difference of two squares: (2)2 -x2. Apply a2 -b2 = (a -b)·(a + b), with a = 2 and b = x
Factors found: (2 -x)·(x + 2)
4) You can perform a partial fraction decomposition:
1(2 -x)·(x + 2) = A2 -x + Bx + 2
For the simple factor: 2 -x 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:
5) Let's solve in ℝ: (2 + 2)·A = 1
ⓘ Group like terms by adding their coefficients: 2 + 2 = 22
22·A = 1
ⓘ Both sides are divided by 22
A = 122
The conventional preference is to have numerical square roots in the numerator rather than in the denominator:
ⓘ 122 = 22·2
A = 22·2
ⓘ 2·2 = 4
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:
6) Let's solve in ℝ: (2 + 2)·B = 1
ⓘ Group like terms by adding their coefficients: 2 + 2 = 22
22·B = 1
ⓘ Both sides are divided by 22
B = 122
The conventional preference is to have numerical square roots in the numerator rather than in the denominator:
ⓘ 122 = 22·2
B = 22·2
ⓘ 2·2 = 4
Solution obtained: B = 24
7) Finally, substitute the unknowns back into the initial partial fraction decomposition:
1(2 -x)·(x + 2) = 24·(2 -x) + 24·(x + 2)
8) Let's compute the integral: ∫(24·(2 -x) + 24·(x + 2))dx
ⓘ ∫(24·(2 -x) + 24·(x + 2))dx = ∫24·(2 -x)dx + ∫24·(x + 2)dx
∫24·(2 -x)dx + ∫24·(x + 2)dx
Let u = 2 -x. Then du = -dx, so dx = -du
∫24·(2 -x)dx = -24·∫1udu
We apply ∫1udu = ln|u|. The absolute value covers both signs of the denominator, on any interval where 2 -x ≠ 0
Substitute u = 2 -x back into the antiderivative
Let u = x + 2. Then du = dx, so dx = du
∫24·(x + 2)dx = 24·∫1udu
We apply ∫1udu = ln|u|. The absolute value covers both signs of the denominator, on any interval where x + 2 ≠ 0
Substitute u = x + 2 back into the antiderivative
ⓘ Differentiating 24·ln|x + 2| gives 24·(x + 2), so 24·ln|x + 2| is an antiderivative of 24·(x + 2): ∫24·(x + 2)dx = 24·ln|x + 2|
-24·ln|2 -x| + 24·ln|x + 2|
ⓘ Multiplying a fraction by a term multiplies its numerator: 24·ln|2 -x| = 2·ln|2 -x|4, 24·ln|x + 2| = 2·ln|x + 2|4■Add fractions by using a common denominator and then adding their numerators: -2·ln|2 -x|4 + 2·ln|x + 2|4 = -2·ln|2 -x| + 2·ln|x + 2|4
-2·ln|2 -x| + 2·ln|x + 2|4
ⓘ What the terms have in common is factored out, so that the fraction can be simplified: -2·ln|2 -x| + 2·ln|x + 2|4 = 2·(-ln|2 -x| + ln|x + 2|)4
2·(-ln|2 -x| + ln|x + 2|)4
ⓘ For strictly positive arguments, a sum of logarithms is the logarithm of the product, a difference that of the quotient, ln(a) + ln(b) = ln(ab): -ln|2 -x| + ln|x + 2| = ln(|x + 2||2 -x|)
2·ln(|x + 2||2 -x|)4
ⓘ The absolute value of a quotient is the quotient of the absolute values: |x + 2||2 -x| = |x + 22 -x|■∫12 -x2dx = 2·ln|x + 22 -x|4
2·ln|x + 22 -x|4
▶Indefinite integrals are defined up to an additive constant C, so this yields: ln|x + 22 -x|·24 + C

The 100% free maths solver with steps

100% free

  • Access to every feature and every step
  • Unlimited queries
  • No signup required

Simple

  • Queries in natural language
  • Detailed explanations for every step
  • A simple interface for desktop and mobile

Reliable and lean

  • Fast calculations
  • Reproducible results
  • No AI, low energy use

For everyone

  • Calculation, differentiation, integration, solving, factoring, graphing...
  • Pupils, students, individuals, teachers…
  • Through high school and beyond