the goal of this assignment is to investigate the rate of convergence
The goal of this assignment is to investigate the rate of convergence of this rule depending on the
functions we want to integrate. To do this, first download from Canvas the MATLAB function
that implements the trapezoidal rule. It has the following inputs: lower and upper bounds of the
interval, number of points in the partition, and the function you want to integrate. To test the
function, compute the integral of the function f(x)=³ over [0, 1] with N = 100 points. What is
the value you get?
Consider the intervals I₁ = [0,] and 1₂ := [0, 2x]. Approximate the integrals over both I₁ and 1₂
of the functions fi(r) = sin(r), f2(2):= |sin(2x)], and fa(z) := cos(x) by using the Trapezoidal
rule. Then plot the absolute error of the computed integral and its corresponding true value. Note
that the true values can be easily computed by hand. Also, find the rate of convergence at which
each error is going to zero. Which one is the fastest? Note that one error plot is always close to
machine epsilon, what do you think is causing this extreme accuracy? This last question is difficult
- you should use an internet search to try and get some information on what is happening and
Your conclusions should be explained in a one-page report. Your report must include the following:
(a) Output (value of the integral) of your test case f(x) = 2³ on [0, 1] with N = 100 points.
(b) Two loglog plots of the absolute errors, one for I and one for I₂.
(c) Rate of convergence of each error (6 in total). Why is one of the plots around machine epsilon
for almost any values of N?
(d) Make sure you answer all the questions in the document.
*The amount will be in form of wallet points that you can redeem to pay upto 10% of the price for any assignment. **Use of solution provided by us for unfair practice like cheating will result in action from our end which may include permanent termination of the defaulter’s account.Disclaimer:The website contains certain images which are not owned by the company/ website. Such images are used for indicative purposes only and is a third-party content. All credits go to its rightful owner including its copyright owner. It is also clarified that the use of any photograph on the website including the use of any photograph of any educational institute/ university is not intended to suggest any association, relationship, or sponsorship whatsoever between the company and the said educational institute/ university. Any such use is for representative purposes only and all intellectual property rights belong to the respective owners.