First time here? Check out the FAQ!
answered 11 years ago
var('y') P = x^18 eqn = x^2 == y + 1 soln = solve(eqn,x) P = P.subs(x=soln[0].rhs()) P.expand().subs(y=x)
updated 11 years ago