Re: symbolic polynomial
Dear friend
You have 7 unknown variables in your equation, so the roots can not have very simple terms.
In this program:
syms g1 g2 w a1 a2 a3 a4 ;
R = solve('(((s-i*w)^2+g1)*((s-i*w)^2+g2)+(a1+a2*(s-i*w))+(a3+a4*(s-i*w))*((s-i*w)^2+g1))','s');
R : ( size= 4x1 and Bytes=2141680).
Using expand function:
K = expand(R);
K : ( size= 4x1 and Bytes=1397784).
I think to simplify more, you should substitute some of unknown variables with known values. For example:
N=subs(K,{a1,a2,a3,a4},{'1', '2', '3', '4'});
L=simplify(N);
H=expand(L);
H : ( size= 4x1 and Bytes=96568).
Best