I want MATLAB to express k1 k2 and k3 in terms of r through the following code but I can't get any useful result. The equations are pretty nonlinear. Is that the reason?
eqns = [2*r*k3 + r*k2+r*k1 == 6, 7*r*k1 + 6*r*k2+2*r^2*k2*k3-r*k3 == 48, 8*r*k1-r*k2-r*k3-2*r^2*k1*k2+5*r^2*k1*k3+2*r^3*k1*k2*k3==63];
S = solve(eqns,[k1 k2 k3])
S =
k1: [4×1 sym]
k2: [4×1 sym]
k3: [4×1 sym]
S.k1
ans =

S.k2
ans =

S.k3
ans =

[SL: formatted code as code and executed it. I also displayed each field of S.]