Complete the square first $$\frac{b}{2}X^2-a X-1=\frac{b}{2}\Big(X^2-\frac{2a}{b}X-\frac{2}{b}\Big)=\frac{b}{2}\Big((X-\frac ab)^2-(\frac {a^2}{b^2}+\frac 2b)\Big)$$ In the most general case, the change of variable becomes clear.
I am sure that you can take from here.
0
Bumbble Comm
On
HINT: If $b=0$, then (moved and scaled) logaritm, if $a^2+2b<0$, then (moved and scaled) arctan, if $a^2+2b=0$, then (moved and scaled) $1/x$, if $a^2+2b>0$, then sum of two (moved and scaled) logarithms.
Hint
Complete the square first $$\frac{b}{2}X^2-a X-1=\frac{b}{2}\Big(X^2-\frac{2a}{b}X-\frac{2}{b}\Big)=\frac{b}{2}\Big((X-\frac ab)^2-(\frac {a^2}{b^2}+\frac 2b)\Big)$$ In the most general case, the change of variable becomes clear.
I am sure that you can take from here.