The city was named after Queen Charlotte Amalie (1650-1714), consort of King Christian V of Denmark.
... the square" is to add a constant (i.e., in this case, a quantity that does not depend on x) to the expression to the left of "=", that will make it a perfect square ...