Question

In: Advanced Math

Use Newton's method to find all solutions of the equation correct to eight decimal places. Start...

Use Newton's method to find all solutions of the equation correct to eight decimal places. Start by drawing a graph to find initial approximations. (Enter your answers as a comma-separated list.)

−2x7 − 4x4 + 8x3 + 6 = 0

Solutions

Expert Solution

MATLAB Script:

close all
clear
clc

syms x
f = -2*x.^7 - 4*x.^4 + 8*x.^3 + 6; % f(x)
df = diff(f, x); % f'(x)
x_vals = -2:0.001:2;
plot(x_vals, subs(f,x_vals)), xlabel('x'), ylabel('f(x)'), grid on
disp('Approximate Solutions (From Graph) are: -1.593, -0.833 and 1.293')
title('f(x) = -2x^7 - 4x^4 + 8x^3 + 6')

fprintf('Solutions (Newton''s Method) are:\n\t')
tol = 1e-8; % Error tolerance

% Initial Condition, x0 = -2
xc = newton(f, df, -2, tol); fprintf('%.8f\n\t', xc)

% Initial Condition, x0 = -0.8
xc = newton(f, df, -0.8, tol); fprintf('%.8f\n\t', xc)

% Initial Condition, x0 = 1.5
xc = newton(f, df, 1.5, tol); fprintf('%.8f\n', xc)

function xc = newton(f, df, x0, tol)
xc = x0;
while true
xc_prev = xc; % Save previous iteration's result
xc = double(xc - subs(f,xc)/subs(df,xc)); % Newton update
if abs(xc - xc_prev) < tol % Termination condition
break;
end
end
end

Plot:

Output:

Approximate Solutions (From Graph) are: -1.593, -0.833 and 1.293
Solutions (Newton's Method) are:
   -1.59333009
   -0.83331079
   1.29348432


Related Solutions

Use Newton's method to find all solutions of the equation correct to eight decimal places. Start...
Use Newton's method to find all solutions of the equation correct to eight decimal places. Start by drawing a graph to find initial approximations. (Enter your answers as a comma-separated list.) 6e−x2 sin(x) = x2 − x + 1
Use Newton's method to find all solutions of the equation correct to eight decimal places. Start...
Use Newton's method to find all solutions of the equation correct to eight decimal places. Start by drawing a graph to find initial approximations. (Enter your answers as a comma-separated list.) 4e-x2 sin(x) = x2 − x + 1
Use Newton's method to find all solutions of the equation correct to six decimal places. (Enter...
Use Newton's method to find all solutions of the equation correct to six decimal places. (Enter your answers as a comma-separated list.) sqrt(x + 1) = x^2 − x What does x equal?
1.Use Newton's method to find all solutions of the equation correct to six decimal places. (Enter...
1.Use Newton's method to find all solutions of the equation correct to six decimal places. (Enter your answers as a comma-separated list.) ln(x) = 1/(x-3) 2. Use Newton's method to find all solutions of the equation correct to eight decimal places. Start by drawing a graph to find initial approximations. (Enter your answers as a comma-separated list.) 6e−x2 sin(x) = x2 − x + 1
Use Newton's method to find all real roots of the equation correct to six decimal places....
Use Newton's method to find all real roots of the equation correct to six decimal places. (Enter your answers as a comma-separated list.) 8/x = 1 + x^3
Use Newton's method to approximate the indicated root of the equation correct to six decimal places....
Use Newton's method to approximate the indicated root of the equation correct to six decimal places. The root of x4 − 2x3 + 4x2 − 8 = 0 in the interval [1, 2] x = ?
Use Newton's method to find a solution for the equation in the given interval. Round your...
Use Newton's method to find a solution for the equation in the given interval. Round your answer to the nearest thousandths. ? 3 ? −? = −? + 4; [2, 3] [5 marks] Answer 2.680 Q6. Use the Taylor Polynomial of degree 4 for ln(1 − 4?)to approximate the value of ln(2). Answer: −4? − 8?2 − 64 3 ? 3 − [6 marks] Q7. Consider the curve defined by the equation 2(x2 + y2 ) 2 = 25(x2 −...
Use​ Newton's method to estimate the solutions of the equation 5 x squared plus x minus...
Use​ Newton's method to estimate the solutions of the equation 5 x squared plus x minus 1=0. Start with x 0 equals negative 1x0=−1 for the left solution and x 0 equals 1x0=1 for the right solution. Find x 2x2 in each case.
Using newton's method, estimate the value of 5^1/7 accurately to 6 decimal places.
Using newton's method, estimate the value of 5^1/7 accurately to 6 decimal places.
Find the area of the surface correct to four decimal places by expressing the area in...
Find the area of the surface correct to four decimal places by expressing the area in terms of a single integral and using your calculator to estimate the integral. The part of the surface z = e^{-x^2 - y^2} that lies above the disk x2 + y2 ≤ 49 Please write clearly and show work. I am having trouble the the rdr integral.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT