Find an orthogonal change of variables X=PY such that:

–2x1^2 + 2x1x2 - 2x2^2

takes the form:

Ay1^2 + By2^2

Sorry if this may be confusing. The numbers next to the variables should be subscripts. For instance x1^2 should be x subscript 1 to the power of 2.