Problem 192
Easy Hyperbolic Integrals and Integration by Parts

Evaluate the integral: I = integral dx/(3+x-x²)

Evaluate the integral: $$ I = \int \frac{dx}{3+x-x^2}. $$

Explanation of Method

Since $x^2-x-3$ has irrational roots (its discriminant $1+12=13$ is not a perfect square), the denominator does not factor over the rationals. Completing the square instead reduces the integral to the standard $\int du/(a^2-u^2)$ form.

  1. Complete the square for $3+x-x^2$.
  2. Substitute $u=x-\tfrac12$.
  3. Apply the standard formula $\int du/(a^2-u^2)=\tfrac{1}{2a}\ln\left|\tfrac{a+u}{a-u}\right|$.
  4. Substitute back and simplify.

Step 1 · Complete the square

$$ 3+x-x^2 = -\left(x^2-x-3\right) = -\left[\left(x-\frac12\right)^2 - \frac14 - 3\right] = \frac{13}{4} - \left(x-\frac12\right)^2. $$

Step 2 · Substitute

Let $u=x-\tfrac12$, $du=dx$, and $a=\dfrac{\sqrt{13}}{2}$:

$$ I = \int \frac{du}{a^2-u^2}. $$

Step 3 · Apply the standard formula

$$ I = \frac{1}{2a}\ln\left|\frac{a+u}{a-u}\right| + C = \frac{1}{\sqrt{13}}\ln\left|\frac{\sqrt{13}/2+u}{\sqrt{13}/2-u}\right| + C. $$

Step 4 · Substitute back

With $u=x-\tfrac12$, multiply numerator and denominator inside the log by $2$:

$$ I = \frac{1}{\sqrt{13}}\ln\left|\frac{\sqrt{13}+2x-1}{\sqrt{13}-2x+1}\right| + C = \frac{\sqrt{13}}{13}\ln\left|\frac{2x-1+\sqrt{13}}{1-2x+\sqrt{13}}\right| + C. $$


Summary Table

Quantity Value
Completed square$\tfrac{13}{4}-(x-\tfrac12)^2$
$a$$\sqrt{13}/2$
$1/(2a)$$1/\sqrt{13}$

Additional Notes

Result

The solution to the integral is:

$$ I = \frac{\sqrt{13}}{13}\ln\left|\frac{2x-1+\sqrt{13}}{1-2x+\sqrt{13}}\right| + C. $$