0% found this document useful (0 votes)
13 views

Chapter-3 Assignment Numerical Differentiation and Integration

This document contains a numerical methods assignment with 6 questions. The questions involve using techniques like trapezoidal rule, Simpson's rule, Romberg's method, and Gaussian quadrature to approximate definite integrals. Some integrals involve functions like e^x, ln(x), sin(x), and 1/(1+x^2).
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views

Chapter-3 Assignment Numerical Differentiation and Integration

This document contains a numerical methods assignment with 6 questions. The questions involve using techniques like trapezoidal rule, Simpson's rule, Romberg's method, and Gaussian quadrature to approximate definite integrals. Some integrals involve functions like e^x, ln(x), sin(x), and 1/(1+x^2).
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Chapter-3 Numerical Differentiation and integration

Assignment:
1. Use trapezoidal rule to approximate the following and also compare
the absolute error in each case:
2 2
a. ∫0 𝑒 𝑥 dx, taking n=10.
5.2
b. ∫4 ln 𝑥 𝑑𝑥 ,taking n= 6 .
1.5
c. ∫0 sin 𝑥 𝑑𝑥 , taking n=6.
2. Use the Simpson’s 1/3 rule to approximate the following:
7
a. ∫3 𝑥 2 ln 𝑥 𝑑𝑥 , with h=1.
1
b. ∫0 √1 − 𝑥 2 𝑑𝑥 , taking n=10.
𝜋/2
c. ∫0 𝑒 𝑠𝑖𝑛𝑥 𝑑𝑥 , with h=𝜋/6.
3. Use the Simpson’s 3/8 rule to approximate the following:
6 1
a. ∫0 𝑑𝑥, taking n=6 .
1+𝑥 2
𝜋
b. ∫0 𝑒 𝑠𝑖𝑛𝑥 𝑑𝑥 , with h=𝜋/6.
2

2
c. ∫0 𝑥 2 𝑑𝑥, with h=0.5.
4. Evaluate the following integral using Romberg’s integration method:
1 1
a. ∫0 𝑑𝑥 correct to three decimal places.
(1+𝑥)
2 1
b. ∫0 𝑑𝑥 correct to three decimal places.
(4+𝑥 2 )
5. Using Gaussian quadrature for two point and 3 point (Gaussian
integration for n=2 and n=3) evaluate the following:
5 1
a. ∫1 𝑑𝑥
𝑥
1.5 2
b. ∫0 𝑒 −𝑥 𝑑𝑥
2 1
c. ∫1 𝑑𝑥
1+𝑥 3
6 1
6. Approximate ∫0 𝑑𝑥 using Newton-cotes quadrature formula
1+𝑥 2
for (i) n=1, (ii) n=2 and (iii) n=3 and take h=1.
Hint for Solution:
Newton-cotes quadrature formula for:
n=1 (Apply trapezoidal rule),
n=2 (Apply Simpson’s 1/3 rule) and
n=3 (Apply Simpson’s 3/8 rule).

Assignment:
Numerical Methods 5th semester
(BE Computer and BE IT)
Prepared by: Santosh Paudel

You might also like