Question

In: Mechanical Engineering

Use MuPAD to solve the polynomial equation x3 + 8x2 + ax + 10 = 0 for x in terms of the parameter a,

Use MuPAD to solve the polynomial equation x3 + 8x2 + ax + 10 = 0 for x in terms of the parameter a, and evaluate your solution for the case a = 17. Use MuPAD to check the answer.

Solutions

Expert Solution

The polynomial equation given to us is

x3 = 8x2 + ax + 10 = 0

 

It is required to solve the above equation for x in terms of a. This can be done in MATLAB using the command solve. Then solution for the case a = 17 is required.

 

The MATLAB code is given below. The check part is done by calculating the polynomial again using the roots. This can be done using the MATLAB command poly(A) where A is the roots of the polynomial.

 

Input:

syms x a

eq = x^3 + 8*x^2 + a*x + 10;

sol = solve(eq)

% substituting the value of a = 17

roots = subs(sol, a, 17);

roots = double(roots)

% checking in MATLAB

poly(roots)

 

Output:

Sol =

root(z^3 + 8*z^2 + a*z + 10, z, 1)

root(z^3 + 8*z^2 + a*z + 10, z, 2)

root(z^3 + 8*z^2 + a*z + 10, z, 3)

roots =

-5

-2

-1

ans =

          1      8        17        10

 

The roots of equation for a = 17 is

roots = -5, -2, -1.

The polynomial from the roots is made in MATLAB using the command poly. The polynomial equation thus obtained is same as given. 
Hence, our answer is verified.

The polynomial from the roots is made in MATLAB using the command poly. The polynomial equation thus obtained is same as given. 
Hence, our answer is verified.

Related Solutions

Use ten iterations of the appropriate MATLAB function, with x^(0)=[0,...,0]', to solve Ax=b (approximately). A)use Jacobi...
Use ten iterations of the appropriate MATLAB function, with x^(0)=[0,...,0]', to solve Ax=b (approximately). A)use Jacobi iteration. B) use Gauss-siedel iteration. 1) make sure to use SOR with w=1.25, w=1.5, w=1.75,w=1.9, and optimal value if given. * A=[1,-2,0,0;-2,5,-1,0;0,-1,2,-0.5;0,0,-0.5,1.25]] , B=[-3;5;2;3.5]. , (optimal w is 1.5431.)
Use ten iterations of the appropriate MATLAB function, with x^(0)=[0,...,0]', to solve Ax=b (approximately). B) use...
Use ten iterations of the appropriate MATLAB function, with x^(0)=[0,...,0]', to solve Ax=b (approximately). B) use Gauss-siedel iteration. C)use SOR with w=1.25, w=1.5, w=1.75,w=1.9, and optimal value if given. * A=[4,8,0,0;8,18,2,0;0,2,5,1.5;0,0,1.5,1.75] , B=[8;18;0.5;-1.75]. , (optimal w is 1.634.)
Solve polynomial equation.
Solve the mathematical equation (3x+1)^(3/2) - 24 = 40.
Solve the 4 degree polynomial equation.
Solve the 4 degree polynomial equation \( x^4 − 2x^3 + 4x^2+ 6x − 21 = 0 \), given that the sum of two its roots is zero.
Consider the nonlinear equation f(x) = x3− 2x2 − x + 2 = 0. (a) Verify...
Consider the nonlinear equation f(x) = x3− 2x2 − x + 2 = 0. (a) Verify that x = 1 is a solution. (b) Convert f(x) = 0 to a fixed point equation g(x) = x where this is not the fixed point iteration implied by Newton’s method, and verify that x = 1 is a fixed point of g(x) = x. (c) Convert f(x) = 0 to the fixed point iteration implied by Newton’s method and again verify that...
1. Solve quadratic equation Ax^2+Bx+C=0 using the quadratic formula x = (-B+ and - sqrt(B^2-4ac)) /...
1. Solve quadratic equation Ax^2+Bx+C=0 using the quadratic formula x = (-B+ and - sqrt(B^2-4ac)) / 2a) and output the two solution with clear explanation could you please do it in MATLAB
use Java The two roots of a quadratic equation ax^2 + bx + c = 0...
use Java The two roots of a quadratic equation ax^2 + bx + c = 0 can be obtained using the following formula: r1 = (-b + sqrt(b^2 - 4ac)) / (2a) and r2 = (-b - sqrt(b^2 - 4ac)) / (2a) b^2 - 4ac is called the discriminant of the quadratic equation. If it is positive, the equation has two real roots. If it is zero, the equation has one root. If it is negative, the equation has no...
y'+xy=x3+y2    Solve the differential equation.
y'+xy=x3+y2    Solve the differential equation.
for the system equation of x' = Ax   if Coefficients Matrix A be ? = [...
for the system equation of x' = Ax   if Coefficients Matrix A be ? = [ 5 −5 −5 −1 4 2 3 −5 −3 ] , find the basic matrix
Solve this differential equation using Matlab yy' + xy2 =x , with y(0)=5 for x=0 to...
Solve this differential equation using Matlab yy' + xy2 =x , with y(0)=5 for x=0 to 2.5 with a step size 0.25 (a) Analytical (b) Euler (c) Heun d) 4th order R-K method Display all results on the same graph
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT