I need to evaluate $\int \frac{dx}{-ax^2 + b}$ while both $a$ and $b$ are positive.
I was blocked while I was trying $ x=\tan\theta $ which turned $ dx=\sec^2\theta\, d\theta $
This method didn't actually work because $-ax^2$ is negative so the substitution didn't return $\int d\theta$ like I was hoping it would.
I'd appreciate any methods or hints!
Case $\#1:$ If $a=0,$ we can solve it easily
Case $\#2:$ else
$$-ax^2+b=-a\left(x^2-\dfrac ba\right)$$
Case $\#2A:$ If $\dfrac ba>0, \dfrac ba=c^2$(say)
Write $\dfrac{2c}{x^2-c^2}=\dfrac1{x-c}-\dfrac1{x+c}$
Case $\#2B:$ If $\dfrac ba<0, \dfrac ba=-c^2$(say)
$\int\dfrac{dx}{x^2+c^2}=\dfrac1c\arctan \dfrac xc+K$
Case $\#2C:$ If $b=0$