I am solving the following question on quadratic equation and I always get $p = -6$ as answer but the answer in book is $p = 3$.
Question
What am I missing in my solution or is the answer mentioned in book incorrect?
Problem
For the equation $3x^{2}+ px + 3 = 0$, $p > 0$, if one of the roots is square of the other, then what is the value of p?
My Solution
Let $x_{1}$ and $x_{2}$ be the roots of this equation.
So, $x_{1} + x_{2} = -\frac{p}{3}$
Also, $x_{1}. x_{2} = 1 =>x_{1}^{3} = 1 => x_{1} = 1$
Therefore, substituting in first equation we get
$1 + 1^{2} = -\frac{p}{3} => p = -6$