Use the trapezoid rule to approximate the following integrals: (using n = 4 subintervals) a. (x²-1)dx

Elementary Linear Algebra (MindTap Course List)
8th Edition
ISBN:9781305658004
Author:Ron Larson
Publisher:Ron Larson
Chapter1: Systems Of Linear Equations
Section1.3: Applications Of Systems Of Linear Equations
Problem 13E: Use sin0=0, sin2=1, and sin=0 to estimate sin3.
icon
Related questions
Question

Numerical Analysis Sub, kindly answer ff questions

Use the trapezoid rule to approximate the following integrals: (using n = 4 subintervals)
a. (x²-1)dx
b. 2² (2x³+/-1)dx
c. Calculate the relative error for (a) and (b).
Use Simpson's rule to approximate the following integrals: (using n = 8 subintervals)
a. ¹, cos x³ dx
b. cos (3x) sin5 (3x) dx
c. Calculate the relative error for (a) and (b).
(By pair): Provide a Matlab code which can approximate the integrals using trapezoidal rule and
Simpson's rule.
Transcribed Image Text:Use the trapezoid rule to approximate the following integrals: (using n = 4 subintervals) a. (x²-1)dx b. 2² (2x³+/-1)dx c. Calculate the relative error for (a) and (b). Use Simpson's rule to approximate the following integrals: (using n = 8 subintervals) a. ¹, cos x³ dx b. cos (3x) sin5 (3x) dx c. Calculate the relative error for (a) and (b). (By pair): Provide a Matlab code which can approximate the integrals using trapezoidal rule and Simpson's rule.
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer