Question

Question 1: Numerically integrate function f(x) given on the right from x=0 to x=10. Use the f(x)= x2 - 6x + 16 Trapezoidal R
0 0
Add a comment Improve this question Transcribed image text
Answer #1

\int_{a}^{b}f(x)dx:\textbf{Trapezoidal Rule}

Tn = AC f(20) 2 + f(21) + f(22) + ... + f(2n-1) + 2

\textup{where }~x_{0}=a,~~x_{n}=b,~~\Delta x=\frac{b-a}{n}

\int_{a}^{b}f(x)dx:\mathbf{Simpson's~\frac{1}{3}~ Rule}~~(n\textup{ must be even)}

Sn (f(20) + 4f(21) +2f(12) + 4f(13) + ... +2f(In-2) + 4f(In-1) + f(In) 3

\textup{where }~x_{0}=a,~~x_{n}=b,~~\Delta x=\frac{b-a}{n}

(a)~\textup{Question is wrong, Simpson's rule cannot be applied for }n=5

f(x)=\frac{x^{2}-6x+16}{50+15x-x^{2}}

n=5:~x_{0}=0,~~x_{5}=10,~~\Delta x=\frac{10-0}{5}=2

T_{5}=2\left \{ \frac{f(x_{0})}{2}+f(x_{1})+f(x_{2})+f(x_{3})+f(x_{4})+\frac{f(x_{5})}{2} \right \}

NOX 4 Trapezoidal Rule: n = 5 f(x) Trapezoidal Sum 0.32 0.32 0.105263158 0.210526316 0.085106383 0.170212766 0.153846154 0.30

T_{5}\approx 2.1722

(b)~n=10:~ x_{0}=0,~~x_{5}=10,~~\Delta x=\frac{10-0}{10}=1

T_{10}= \frac{f(x_{0})}{2}+f(x_{1})+f(x_{2})+...+f(x_{9})+\frac{f(x_{10})}{2}

XO 1 N 3 4 Trapezoidal Rule: n = 10 f(x) Trapezoidal Sum 0.32 0.16 0.171875 0.171875 0.105263158 0.105263158 0.081395349 0.08

T_{10}\approx 2.0798

S_{10}=\frac{1}{3}\left ( f(x_{0})+4f(x_{1})+2f(x_{2})+4f(x_{3})+...+2f(x_{8})+4f(x_{9})+f(x_{10}) \right )

1591861619816_blob.png

S_{10}\approx 2.049

Excel Link: https://drive.google.com/file/d/1IC3wMHbkyVRKyzj9onu8kXR6VB548Q16/view?usp=sharing

Add a comment
Know the answer?
Add Answer to:
Question 1: Numerically integrate function f(x) given on the right from x=0 to x=10. Use the...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Numerically integrate the below integral doubling the number of intervals until the relative true...

    Please write a VBA program for 1b and for 2. I am lost. Thank you. Numerically integrate the below integral doubling the number of intervals until the relative true error falls below 0.01%. Where 1. Using multiple application of the a. Trapezoidal Rule b. Simpson's 1/3 Rule 2. Using Romberg Integration with the Trapezoidal Rule 4 2N 3 3 and a table listing as coluns: number of intervas, approximate integral value, relative true error. That is, for part 1(a) and...

  • Show work by hand and also using MATLAB code. Model 1 Given a polynomial f(x) Write a first-order approximation of f(x), given the value of f(x) at two points Plot the polynomial and the first-or...

    Show work by hand and also using MATLAB code. Model 1 Given a polynomial f(x) Write a first-order approximation of f(x), given the value of f(x) at two points Plot the polynomial and the first-order approximation on a graph Write a second-order approximation of f(x), given the value at three points. Plot the polynomial, the first-order and second-order approximations on a graph Find the integral Exactly Using trapezoidal rule Using composite trapezoidal rule Using Simpson's 1/3 rule . Calculate the...

  • 2. Use the Trapezoidal Rule to numerically integrate the following polynomial from a tob 1.5 f(x)...

    2. Use the Trapezoidal Rule to numerically integrate the following polynomial from a tob 1.5 f(x) = 0.2 + 25x-200x' + 675xs_ 900x. + 400x5 Use three different numbers of segments (n- 2, n 3, and n 4) and show the effect of the number of segments on relative error considering the exact value of the integral which is 48.7719. (Note: Show the steps of calculation).

  • 1. Use the Trapezoidal Rule to numerically integrate the following polynomial from a = 0.5 to...

    1. Use the Trapezoidal Rule to numerically integrate the following polynomial from a = 0.5 to b = 1.5 f(x) = 0.2 + 25x – 200x2 +675x3 – 900x4 + 400x5 Use three different number of segments and show that higher number of segments give lesser relative error considering the exact value of the integral, which is 49.3667. 2. Write a MATLAB or OCTAVE code to solve the above problem numerically and verify your result. Copy/paste the code and answers...

  • 4) (25 pts) Evaluate the integral d: +5 Using the following methods: a) Analytically b) Trapezoidal...

    4) (25 pts) Evaluate the integral d: +5 Using the following methods: a) Analytically b) Trapezoidal rule. Divide the whole interval into four subintervals (n 4) c) Simpson's 1/3 rule. Divide the whole interval into four subintervals (n 4). d) Simpson's 3/8 rule. Divide the whole interval into three subintervals (n 3) Compare the results in b), c), and d) with the true value obtained in a). 4) (25 pts) Evaluate the integral d: +5 Using the following methods: a)...

  • Numerically compute the integral of (x) = 5 + sin2(x) on the interval [0,지 for n-2,...

    Numerically compute the integral of (x) = 5 + sin2(x) on the interval [0,지 for n-2, 4, 8, 16, 32, and 64 equally spaced subintervals using the midpoint, trapezoidal, and Simpson 1/3 rule. Compare the results with the exact value of the integral, and determine the order of accuracy for each method based on the n = 32 and n 64 results Perform hand calculations for the n = 2 cases, but develop MATLAB programs to perform the rest of...

  • 1. The natural logarithm of (x > 0) can be computed using In(x) dt. Use (a)...

    1. The natural logarithm of (x > 0) can be computed using In(x) dt. Use (a) the mid-point rule, (b) trapezoidal rule, and (c) Simpson's Rule with N 6 subdivisions to approximate In(7) To aid the computation process it might be useful to set up a table containing values for xư x-f(x), f(x), and the weightings for the each of the numerical techniques. For example, i | zi | f(zi) | ที่ | f(r) | midpoint | trapezoidal Simpson's 1...

  • Use the Trapezoidal Rule, the Midpoint Rule, and Simpson's Rule to approximate the given integral with...

    Use the Trapezoidal Rule, the Midpoint Rule, and Simpson's Rule to approximate the given integral with the specified value of n. (Round your answers to six decimal places.) 5 3 cos(6x) n = 8 dx, X 1 (a) the Trapezoidal Rule (b) the Midpoint Rule (c) Simpson's Rule

  • 4 Compare these results with the approximation of the Approximate the definite integral using the Trapezoidal...

    4 Compare these results with the approximation of the Approximate the definite integral using the Trapezoidal Rule and Simpson's Rule with integral using a graphing utility. (Round your answers to four decimal places.) 1/2 sin(x) dx Trapezoidal Simpson's graphing utility Need Help? Read Watch T alk to a Tutor Submit Answer Practice Another Version -/3 POINTS LARCALC11 8.6.505.XP.MI. MY NOTES | ASK YOUR TEACHER Approximate the definite integral using the Trapezoidal Rule and Simpson's Rule with n=4. Compare these results...

  • Use Matlab code Consider the following function sin(x) Using the following parameters in your functions: -func:...

    Use Matlab code Consider the following function sin(x) Using the following parameters in your functions: -func: the function/equation that you are required to integrate -a, b: the integration limits n: the number of points to be used for the integration I:Integral estimate a) Write a function capable of performing numerical integration of h(x) using the composite trapezoidal rule. Use your function to integration the equation with 9 points. Write a function capable of performing numerical integration of h(x) using the...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT