I don't understand completing the square at all

Please teach me completing the square to solve quadratic equations.
And also show me how to use completing the sqaure for integration (this is very important)
(if something like 1 over x^2 ......) then completing the square is used to change the form ( i also wanted to know that)