We know $x$ and $y$ are roots of $$ax^2+ bx + c= 0$$ and $$P = xy , S = x + y $$ How we can calculate $A$ versus $S$ and $P$ ?
$A = x^3 + {1\over x^3}$
My try : I found a complex and long relation by this equation $$x^2-Sx+p=0$$ but I want a simply relation.
Let $e$ and $f$ be the roots of $ax^2+bx+c=0$. This implies that: $$P = ef \, \text{ and } \, S = e+ f$$ Also, $$e-f = \sqrt{(e+f)^2-4ef} = \sqrt{ S^2-4P}$$ $$\implies e = \frac{1}{2}[S + \sqrt{S^2-4P}]\, \text{ and } \, f = \frac12[S - \sqrt{S^2-4P}]$$
We want $A = x^3 + \frac{1}{x^3}$. To do this, note that we can write: $$ax^2+bx + c = (x-e)(x-f)$$ Hence, $$A = e^3 + \frac{1}{e^3} \, \text{ or } \, f^3 + \frac{1}{f^3}$$ because $x = e \, \text{ or } \, f$ satisfies the quadratic.
Hence, $$A = \frac{(S \pm \sqrt{S^2-4P})^3}{8} + \frac{8}{(S \pm \sqrt{S^2-4P})^3}$$ incorporating the $(+)$ sign for $e$ and the $(-)$ sign for $f$.
Hence, we have: $$\boxed{ A = \frac{(S \pm \sqrt{S^2-4P})^6 + 2^6}{(2S \pm 2\sqrt{S^2-4P})^3}}$$