Given that
Integrate the sum terms by terms and factor out constants
Complete the square
In thhis integral u = -2+x and du = dx