Question

In: Advanced Math

Given the function f(x) on the right solve the following root finding questions: a) Find a...

Given the function f(x) on the right solve the following root finding questions: a) Find a positive root (x > 0) of f(x) using the Bisection Method

. b) Find a negative root (x < 0) of f(x) using the Bisection Method.

c) Find a positive root (x > 0) of f(x) using the False Position Method.

d) Find a negative root (x < 0) of f(x) using the False Position Method. Find your initial Bracket via Trial-and-Error. Use | fM | < 0.0001 as the Stopping Criteria. Calculate and present all quantities with at least 4 decimal digits. Examine function f(x) whose plot given below. Major grid lines correspond to whole units and minor grid lines correspond to quarter units. Let f'(x) be the derivative of f(x) and F(x) be the indefinite integral of f(x).

f(x) = 0.5*x² + 10*x - 50 / x² - x + 10

Solutions

Expert Solution

Part-a

Code:

clc;

a=1;

b=2;

k=0;

while k==0

c=(a+b)/2;

val= 0.5*c*c + 10*c - 50/(c*c) - c +10;

if val>0

b=c;

else

a=c;

end

if abs(val)<0.00001

k=1;

end

end

fprintf('Positive root (Bisection Method) = %0.4f',c);

Output:

Positive root (Bisection Method) = 1.4426

Part-b

Code:

clc;

a=-16.5;

b=-17;

k=0;

while k==0

c=(a+b)/2;

val= 0.5*c*c + 10*c - 50/(c*c) - c +10;

if val>0

b=c;

else

a=c;

end

if abs(val)<0.00001

k=1;

end

end

fprintf('Negative root (Bisection Method) = %0.4f',c);

Output:

Negative root (Bisection Method) = -16.8328


Part-c

Code:

clc;

x1=1;

x2=2;

k=0;

while k==0

y1= 0.5*x1*x1 + 10*x1 - 50/(x1*x1) - x1 +10;

y2= 0.5*x2*x2 + 10*x2 - 50/(x2*x2) - x2 +10;

x3=x1 - ((x2-x1)*y1)/(y2-y1);

val= 0.5*x3*x3 + 10*x3 - 50/(x3*x3) - x3 +10;

if val>0

x2=x3;

else

x1=x3;

end

if abs(val)<0.00001

k=1;

end

end

fprintf('Positive root (False Position Method) = %0.4f',x3);

Output:

Positive root (False Position Method) = 1.4426

Part-d

Code:

clc;

x1=-16.5;

x2=-17;

k=0;

while k==0

y1= 0.5*x1*x1 + 10*x1 - 50/(x1*x1) - x1 +10;

y2= 0.5*x2*x2 + 10*x2 - 50/(x2*x2) - x2 +10;

x3=x1 - ((x2-x1)*y1)/(y2-y1);

val= 0.5*x3*x3 + 10*x3 - 50/(x3*x3) - x3 +10;

if val>0

x2=x3;

else

x1=x3;

end

if abs(val)<0.00001

k=1;

end

end

fprintf('Negative root (False Position Method) = %0.4f',x3);

Output:

Negative root (False Position Method) = -16.8328


Related Solutions

Write a Matlab function for: 1. Root Finding: Calculate the root of the equation f(x)=x^3 −5x^2...
Write a Matlab function for: 1. Root Finding: Calculate the root of the equation f(x)=x^3 −5x^2 +3x−7 Calculate the accuracy of the solution to 1 × 10−10. Find the number of iterations required to achieve this accuracy. Compute the root of the equation with the bisection method. Your program should output the following lines: • Bisection Method: Method converged to root X after Y iterations with a relative error of Z.
Find the root of the function f(x) = 8 - 4.5 ( x - sin x...
Find the root of the function f(x) = 8 - 4.5 ( x - sin x ) in the interval [2,3]. Exhibit a numerical solution using Newton method.
Use the secant Method to find a root for the function: f(x) = x^3 + 2x^2...
Use the secant Method to find a root for the function: f(x) = x^3 + 2x^2 + 10x -20, with x_0 = 2, and x_1 = 1.
Given that h(x) = x.sinx . Find the root of the function h(x) = 1, where...
Given that h(x) = x.sinx . Find the root of the function h(x) = 1, where x is between [0, 2] using substitution method.
Consider the root of function f(x) = x 3 − 2x − 5. The function can...
Consider the root of function f(x) = x 3 − 2x − 5. The function can be rearranged in the form x = g(x) in the following three ways: (a) x = g(x) = x3 − x − 5 (b) x = g(x) = (x 3 − 5)/2 (c) x = g(x) = thirdroot(2x + 5) For each form, apply fixed-point method with an initial guess x0 = 0.5 to approximate the root. Use the error tolerance = 10-5 to...
For each of the following, find the linear to linear function f(x) satisfying the given requirements....
For each of the following, find the linear to linear function f(x) satisfying the given requirements. (a)    f(0) = 0, f(10) = 15, f(20) = 20 (b)    f(0) = 15, f(5) = 6, f(20) = 5 (c)     f(10) = 8, f(30) = 12,and the graph of f(x) has y = 20 as its horizontal asymptote
Transformation: Given the function f(x) = 4x3 - 2x + 7, find each of the following....
Transformation: Given the function f(x) = 4x3 - 2x + 7, find each of the following. Then discuss how each expression differs from the other. a) f(x) + 2 b) f (x + 2) c) f(x) + f (2) Unit 6 DQ Follow-up #1: Variation Unit 6 DQ Follow-up # 1 question: If y varies directly as , explain why doubling x would not cause y to be doubled as well. Unit 6 DQ Follow-up #2: Variation Unit 6 DQ1...
Find f(x) if f is a linear function that has given properties. f(-1)=1, f(3)=9 f(x)=
Find f(x) if f is a linear function that has given properties. f(-1)=1, f(3)=9 f(x)=
Estimate the area A between the graph of the function f(x)= square root of x and...
Estimate the area A between the graph of the function f(x)= square root of x and the interval [0,49]. Use an approximation scheme with n=2,5, and 10 rectangles. Use the right endpoints. Round your answers to three decimal places. A2= A5= A10= Click
Consider the function f(x) = x - xcosx, which has a root at x = 0....
Consider the function f(x) = x - xcosx, which has a root at x = 0. Write a program to compare the rates of convergence of the bisection method (starting with a = -1, b = 1) and Newton’s method (starting with x = 1). Which method converges faster? Why?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT