MATLAB: Unable to solve symbolic equation> Error Warning: Explicit solution could not be found. > In solve at 81

equationExtended Symbolic Math Toolboxsolversymbolic

Hi Pals,
I am not able to find solution to an equation in symbolic Matlab. I would greatly appreciate any help.
syms a1 a2 a3 p c F;
F=sqrt(1-a1*p)+sqrt(1-a2*p)+sqrt((1-a1*p)*(1-a2*p))+c;
Psol = solve(F,p) >> Gives error here
Many Thanks PK

Best Answer

Two branches of solutions:
(1-RootOf(a2*z^4-2*a2*z^3+(2*a2-2*a1-2*c*a1)*z+a1-c^2*a1-a2,z)^2)/a1
(1-RootOf(a2*z^4+2*a2*z^3+(-2*a2+2*a1-2*c*a1)*z+a1-c^2*a1-a2,z)^2)/a1
Each RootOf(f(z),z) represents the set of values z such that f(z) is 0 -- the roots of the quartics.
The roots of quartics can be represented in closed algebraic form, but they are quite messy.
Related Question