0% found this document useful (0 votes)
97 views1 page

1000 Solved Problem in Modern Physics-102

The document discusses two numerical integration methods: the trapezoidal rule and Simpson's rule. The trapezoidal rule approximates the area under a curve by dividing it into trapezoids, while Simpson's rule uses a weighted average of function values at evenly spaced points. As an example, the document applies the trapezoidal rule to evaluate the integral from 1 to 10 of x^2 dx by dividing the interval into 9 subintervals, obtaining an approximate value of 334.5 with 0.45% error compared to the exact value. It also explains how to apply Simpson's rule to the same integral by dividing the interval into 10 subintervals.

Uploaded by

Sano Manjiro
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)
97 views1 page

1000 Solved Problem in Modern Physics-102

The document discusses two numerical integration methods: the trapezoidal rule and Simpson's rule. The trapezoidal rule approximates the area under a curve by dividing it into trapezoids, while Simpson's rule uses a weighted average of function values at evenly spaced points. As an example, the document applies the trapezoidal rule to evaluate the integral from 1 to 10 of x^2 dx by dividing the interval into 9 subintervals, obtaining an approximate value of 334.5 with 0.45% error compared to the exact value. It also explains how to apply Simpson's rule to the same integral by dividing the interval into 10 subintervals.

Uploaded by

Sano Manjiro
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/ 1

1.

3 Solutions 85

1.103
 ∞  ∞
<x >= x f (x)dx/ f (x)dx
0 0
 ∞  ∞
x 2 e− λ dx/ xe− λ dx
x x
=
0 0
3

= = 2λ
λ2
Most probable value of x is obtained by maximizing the function xe−x/λ

d
(xe−x/λ ) = 0
dx
x
e− λ 1 −
x
=0
λ
∴x =λ
x(most probable) = λ

1.3.14 Numerical Integration


1.104 The trapezoidal rule is
 
1 1
Area = y0 + y1 + y2 + · · · + yn−1 + yn Δx
2 2
 10 2
Given integral is 1 x dx. Divide x = 1 to x = 10 into 9 intervals.
Thus b−an
= 10−1 9
= 1 = Δx
Substituting the abscissas in the equation y = x 2 , we get the ordinates y =
1, 4, 9, 16, · · · 100.
 
1 1
area = + 4 + 9 + 25 + 36 + 49 + 64 + 81 + × 100 = 334.5
2 2
This may be compared with the value obtained from direct integration,
* 3 +10
x
3 1
= 333.
The error is 0.45%.
1.105 For Simpson’s rule
take 10 intervals
Here b−a
n
= 10−0
10
= 1 = Δx
The area under the curve y = x 2 is given by
Δx
(y0 + 4y1 + 2y2 + 4y3 + 2y4 + · · · + 4yn−1 + yn )
3

You might also like