Find the least degree polynomial equation with rational coefficients whose roots is given $\sqrt2-1$
My book has given the solution as
$x=(\sqrt2-1)$
$(x+1)^2 = 2$
I don't understand how this became the required polynomial equation.......I can't even determine if this has $(\sqrt2-1)$ even as a solution by looking at it. They have done the similar for obtaining $1+\sqrt2+\sqrt3$ as a root. For another polynomial least degree