Consider the 3x3 Vandermonde matrix:

V=[1 x1 x1^2; 1 x2 x2^2; 1 x3 x3^2]

Show that the det(V) = (x2-x1)(x3-x1)(x3-x2)

Sorry for the format. I did R2-R1 and R3-R1 then found the det to be (x2-x1)(x3^2-x1)-(x2^2-x1^2)(x3-x1)

Is this just an algebraic nightmare or did I do something wrong? Thank you!