solve the equation ax^4 + bx^2 + c = 0 for a=2, b=4, c=4, use z=x^2 as a substitution in matlab
main.m
% Define the coefficients a, b, ca = 2;
b = 4;
c = 4;
% Solve for z using the substitution z = x^2syms z
eqn = a*z^2 + b*z + c == 0;
sol = solve(eqn, z);
% Find corresponding x valuesx1 = sqrt(sol(1));
x2 = -sqrt(sol(1));
x3 = sqrt(sol(2));
x4 = -sqrt(sol(2));