Given equation is
\
Integrate the sum terms by terms and factor out constants
\
Complete the square
\
For integrand u = -2+x and du = dx
\




Integrate the sum terms by terms and factor out constants
\
For integral of cos2s substitute p=2s and dp =2ds
\
The integral of cos(p) is sin(p)
\
The integral of 1 is s
\


Substitute back for p=2s
\



Substituite back u = -2+x
\
That equal to
\
Therefore the integration of the given equation is
\
\
\