Professional Documents
Culture Documents
(MATH F241)
BITS Pilani Dr. Amit Setia (Assistant Professor)
Department of Mathematics
K K Birla Goa Campus
Rayleigh-Ritz Method to find
Approximate solution
I y x F x, y, y ' dx 1
x2
Let min
y x C x1 , x2
1 x1
y x x1
i 0 i 0
under the boundary conditions
y x1 y1 & y x2 y2
Our aim is to find the approximate
n n
min I y x F x, cii x , cii ' x dx 3
x2
y x x1
i 0 i 0 BITS Pilani, K K Birla Goa Campus
1 x , 2 x ,..., n x are known basis functions,
the only unknowns are c1 ,......, cn
3
n n
min I c1 ,......, cn F x, cii x , cii ' x dx 4
x2
c1 ,......,cn x1
i 0 i 0
Using classical calculus,
I
0, i 1, 2,......, n
ci
we are having n equations in n knowns.
y '' y x y dx 0
1
y '2 y 2
1
xy dx 0
0
2 2
1
y '2 y 2 2 xy dx 0
0
BITS Pilani, K K Birla Goa Campus
By Rayleigh-Ritz method,
let 0 x 0
1 x x 1 x
2 x x 2 1 x
.........................
n x x n 1 x
y x 0 x c11 x ....... cnn x
let n 1 y x 0 x c11 x c1 x 1 x
y ' x c1 x 1 c1 1 x c1 1 2 x
1 c1 1 2 x c1 x 1 x 2 x c1 x 1 x dx 0
1 2 2
0
11 1
c12 c1 0
30 6
BITS Pilani, K K Birla Goa Campus
11 2 1
c1 c1 0
30 6
11 1
2c1 c1 c1 0
30 6
11 1
c1 c1 0
15 6
5
c1
22
5
y x x 1 x
22
The exact solution is
e x e x
y x x
e e 1
BITS Pilani, K K Birla Goa Campus
5
y x x 1 x
22
The exact solution is
e x e x
y x x
e e 1
where I y x py '2 qy 2 dx
x2
x1
J y x ry 2 dx k
x2
x1
with y x1 0 and y x2 0
where I y x py '2 qy 2 dx 2
x2
x1
x1
with y x1 y1 and y x2 y2 4
are the solutions of the Strum-Liouville's equations
py ' ' qy ry 0 5
with y x1 y1 and y x2 y2
where p, q, r are functions of x BITS Pilani, K K Birla Goa Campus
i.e. extremals of 1 are eigenfunctions
I y x py ' qy dx
x2
2 2
K y x 7
x1
J y x x2
2
ry dx
x1
1 x1
py ' ' y dx
x2
x1
7 becomes
K y x
x1
x2 3
ry dx
2
x1
Replacing y x k x in 3 , we get
p ' ' q
x2 x2
K y x
x1 k k k dx
x1
k rk 2 dx
k
x2 x2
r dx rk 2 dx
2
x1 k x1
K k x k , k 1, 2,3,........
BITS Pilani, K K Birla Goa Campus