Solve quadratic equations in a function of the unknown (#297)

Solve quadratic equations in a function of the unknown (#297)

Solve the quadratic that arises from substitution.