$$ ax^2+2hxy+by^2 = a\left(x+ \frac{h}{a}y \right)^2 + \frac{ab-h^2}{a}y^2 $$
How do I go from the equation on the LHS to the equation on the right hand side? My study material mentions "completing the square", which I know but I can't understand how it applies to this particular equation.