Find the x* that minimizes the function f(x) = (x-2)^4 + 1,| by finding the root of the function's first derivative. Use the method of Newton-Raphson, with initial guess x0 = 0. Output • the values of the function and its first derivative at x = 0, i.e. f(0) and f(0). · the estimate of x* after 2 Newton-Raphson iteration. the estimate of x* after 3 Newton-Raphson iterations. the approximate absolute percent relative error in x* after 3 Newton-Raphson iterations (e.g., for 5% error, output 5.)
Find the x* that minimizes the function f(x) = (x-2)^4 + 1,| by finding the root of the function's first derivative. Use the method of Newton-Raphson, with initial guess x0 = 0. Output • the values of the function and its first derivative at x = 0, i.e. f(0) and f(0). · the estimate of x* after 2 Newton-Raphson iteration. the estimate of x* after 3 Newton-Raphson iterations. the approximate absolute percent relative error in x* after 3 Newton-Raphson iterations (e.g., for 5% error, output 5.)
Elements Of Electromagnetics
7th Edition
ISBN:9780190698614
Author:Sadiku, Matthew N. O.
Publisher:Sadiku, Matthew N. O.
ChapterMA: Math Assessment
Section: Chapter Questions
Problem 1.1MA
Related questions
Question
Please follow the instructions and the requirements according to the pictures above and I kinda need the solution quickly. The language of the code is in Matlab, thank you in advance.

Transcribed Image Text:Find the x* that minimizes the function
f(x) = (x-2)^4 + 1,
by finding the root of the function's first derivative. Use the method of Newton-Raphson, with initial guess x0 = 0.
Output:
• the values of the function and its first derivative at x = 0, i.e. f(0) and f(0).
· the estimate of x* after 2 Newton-Raphson iteration.
· the estimate of x* after 3 Newton-Raphson iterations.
· the approximate absolute percent relative error in x* after 3 Newton-Raphson iterations (e.g., for 5% error, output 5.)
![1 function [fe, dfe, x2, x3, e3] = NewtonMinimization()
2 % Input:
3 % None
4 % Output:
5 % fe, dfe: the values of the given function and its 1st derivative at x = 0;
6 % x2: the estimate of minimizer x* after 2 Newton-Raphson iterations.
7 % x3: the estimate of minimizer x* after 3 Newton-Raphson iterations.
8 % e3: the approximate absolute percent relative error in x* after 3 Newton-Raphson iterations (e.g., for 5% error, output 5)
9
10 % Write your code here
11
12
13 end
14](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Ffaf661c2-e12d-4674-9b42-5f8910350049%2Fa6b27736-c8e0-4c97-9e77-151dc88707fe%2Fjq2e1lo_processed.png&w=3840&q=75)
Transcribed Image Text:1 function [fe, dfe, x2, x3, e3] = NewtonMinimization()
2 % Input:
3 % None
4 % Output:
5 % fe, dfe: the values of the given function and its 1st derivative at x = 0;
6 % x2: the estimate of minimizer x* after 2 Newton-Raphson iterations.
7 % x3: the estimate of minimizer x* after 3 Newton-Raphson iterations.
8 % e3: the approximate absolute percent relative error in x* after 3 Newton-Raphson iterations (e.g., for 5% error, output 5)
9
10 % Write your code here
11
12
13 end
14
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, mechanical-engineering and related others by exploring similar questions and additional content below.Recommended textbooks for you

Elements Of Electromagnetics
Mechanical Engineering
ISBN:
9780190698614
Author:
Sadiku, Matthew N. O.
Publisher:
Oxford University Press

Mechanics of Materials (10th Edition)
Mechanical Engineering
ISBN:
9780134319650
Author:
Russell C. Hibbeler
Publisher:
PEARSON

Thermodynamics: An Engineering Approach
Mechanical Engineering
ISBN:
9781259822674
Author:
Yunus A. Cengel Dr., Michael A. Boles
Publisher:
McGraw-Hill Education

Elements Of Electromagnetics
Mechanical Engineering
ISBN:
9780190698614
Author:
Sadiku, Matthew N. O.
Publisher:
Oxford University Press

Mechanics of Materials (10th Edition)
Mechanical Engineering
ISBN:
9780134319650
Author:
Russell C. Hibbeler
Publisher:
PEARSON

Thermodynamics: An Engineering Approach
Mechanical Engineering
ISBN:
9781259822674
Author:
Yunus A. Cengel Dr., Michael A. Boles
Publisher:
McGraw-Hill Education

Control Systems Engineering
Mechanical Engineering
ISBN:
9781118170519
Author:
Norman S. Nise
Publisher:
WILEY

Mechanics of Materials (MindTap Course List)
Mechanical Engineering
ISBN:
9781337093347
Author:
Barry J. Goodno, James M. Gere
Publisher:
Cengage Learning

Engineering Mechanics: Statics
Mechanical Engineering
ISBN:
9781118807330
Author:
James L. Meriam, L. G. Kraige, J. N. Bolton
Publisher:
WILEY