Docsity

Numerical methods here, Exercises of Numerical Methods in Engineering

Toggle sidebar
bg1
MATH3650
HW No.2 Solution
(non-Matlab problems)
1. Prob. 2
1 1 2 : 2
4 3 0 : 5
0 2 2 : 6
R2←R2+(−4)R1
1 1 2 : 2
0−1−8 : −3
0 2 2 : 6
R3←R3+(2)R2
1 1 2 : 2
0−1−8 : −3
0 0 −14 : 0
The reduced augmented matrix gives the upper triangular system
1 1 2
0−1−8
0 0 −14
x1
x2
x3
=
2
−3
0
The solution is computed by back substitution:
x3= 0
−x2−8x3=−3→x2= 3
x1+x2+ 2x3= 2 →x1=−1
Hence,
x=
−1
3
0
A=LU, where L=
1 0 0
4 1 0
0−2 1
,U =
1 1 2
0−1−8
0 0 −14
2. Prob. 4
a.
1 2 2 : 3
4 4 2 6
4 6 4 : 10
R2←R2 + (−4)R1
R3←R3 + (−4)R1
1 1 2 : 3
0−4−6 : −6
0−2−4 : −2
R3←R3+(−1/2)R2
1 1 2 : 2
0−4−6 : −6
0 0 −1 : 1
The reduced augmented matrix gives the upper triangular system
1 1 2
0−4−6
0 0 −1
x1
x2
x3
=
3
−6
1
pf3

Partial preview of the text

Download Numerical methods here and more Exercises Numerical Methods in Engineering in PDF only on Docsity!

MATH

HW No.2 Solution

(non-Matlab problems)

  1. Prob. 2

R 2 ← R 2+(−4) R

1

R 3 ← R 3+(2) R

2

The reduced augmented matrix gives the upper triangular system

x 1

x 2

x 3

The solution is computed by back substitution:

x 3

− x 2

− 8 x 3

= − 3 → x 2

x 1

  • x 2

  • 2 x 3

= 2 → x 1

Hence,

x =

A = LU , where L =

, U =

  1. Prob. 4

a.

R 2 ← R 2 + (−4) R

1

R 3 ← R 3 + (−4) R

1

R 3 ← R 3+(− 1 / 2) R

2

The reduced augmented matrix gives the upper triangular system

x 1

x 2

x

The solution is computed by back substitution:

x 3

− 4 x 2

− 6 x 3

= − 6 → x 2

x 1

  • 2 x 2

  • 2 x 3

= 3 → x 1

Hence,

x =

b. L =

1

2

, U =

c. Solve Ly = b for y by forward substitution.

y 1

4 y 1

  • y 2

= 6 → y 2

4 y 1

y 2

  • y 3

= 10 → y 3

Solve U x = y for y by backward substitution.

x 3

− 4 x 2

− 6 x 3

= − 6 → x 2

x 1

  • 2 x 2

  • 2 x 3

= 3 → x 1

  1. Prob. 6

a. Verify that the ij −entry of A ( a ij

, the entry on the i-th row and the j-th column)

is the product of the i − th row of L and the j − th column of U.

b. Let b =

Step 1. Solve Ly = b for y by forward substitution:

y 1

y 2

y 3

y 4

y 1

y 2

− y 1

  • 2 y 2

  • y 3

= 4 → y 3

− 0_._ 5 y

  • y = − 1_._ 5 → y = − 2