Solve for d d^2+d-7=-5