I'm new to Mathematica and trying to learn it on my own from various internet resources. I have the following question. How do I simplify the expression $$X=\frac{-b\pm\sqrt{b^2-4ac}}{2a}\tag{1}$$ where $a,b,c$ are real, known expressions in terms of other parameters (say, $x,y,z$). Again $x,y,z$ are in turn real, known functions of yet another set of real parameters (say, $p,q,r$).
How do I simplify the algebraic expression $X=\frac{-b\pm\sqrt{b^2-4ac}}{2a}$ to obtain $X$ in terms of $p,q,r$. Thank you.
An example For an example, consider $a=-x+y+z, b=x-y+z, c=x+y-z$. Then $x=p^2+q^2$, $y=q^2+r^2$ and $z=p^2+r^2$.
Simplify
or theFullSimplify
commands? It is better to make a MWE to illustrate the issue. $\endgroup$Simplify[expr /. {a -> a[x, y, z], b -> b[x, y, z], c -> c[x, y, z]}]
(and analogously forp, q, r
) ought to work. We can't give more helpful feedback unless you show your actual expressions. $\endgroup$