Solve for A b=f^2A+2HA