Case 1: [itex]b^2 - 4ac = 0[/itex] in which case the quadratic term is a perfect square of a linear term, so the integral is simply the log of that term.
Case 2: If [itex]b^2- 4ac > 0[/itex], then completing the square and a simple linear shift will make the integrand of the form [itex]\frac{1}{\sqrt{x^2 - a^2}}[/itex], and x= a cosh t makes that one come out immediately.
Case 3: If [itex]b^2-4ac < 0[/itex], completing the square and a linear shift makes the integrand of the form [itex]\frac{1}{\sqrt{x^2 + a^2}}[/itex], and x= a sinh t makes that one come out immediately.
Of course the appropriate circular trigonometric substitutions would work as well, but don't come out as quickly. For both of these integrals, the substitutions lead straight to [itex]\int dt[/itex]