I have the following integral

Now I know there is a "trick" to finding part of the denominator as long as the roots are negative. You just take 1/2 of B^2.

So in this example it would be . But I also know that you need to tack a +5 to the end. How was this +5 found, is there some kind of trick?