You are on page 1of 7

UNIVERSITY OF ELECTRONIC SCIENCE AND TECHNOLOGY OF CHINA (UESTC) SEMESTER TWO ASSIGNMENT TWO

SUBJECT: MATRIX THEORY NAME: EDWIN OKOAMPA BOADU STUDENT NUMBER: 201113030101 COURSE LECTURER: DR. LIANG LI PROGRAMME: MICROELECTRONICS

Solution to question 1 a) [ Using 4-digit arithmetic with partial pivoting and no scaling to compute
5 5]

Checking with the absolute values, we interchange with the bigger value [ =[
5 5

]
5 5

2 = [

5 5

5 5

5 5

Using the back substitution


5 5

b)

5 5 5

(b) [

5]

1 1 105 1 5 1+2 10

1|Page

4
5

5
5

]=[

4 4

[ x= , x=2

4 4

1 2 10

y=

(c) [

5]

10

10

4]

4]

10 10

[ ]

[ ]

2|Page

(d)

5]

Swap rows [

(a) [ ] = [ ] (b) [ ]= [ ] (c) [ ]= [ ] (d) [ ]= [ ]

b,c and d have almost same answer for x and y whereas as result is far from the answer y =1 but x = o I think that probably b, c, d are better methods for finding the values of x and y unlike the method used in a which breakdown because one of the variables is zero(0)

3|Page

Solution to question 2 Given the equation [


i 0 0.2
10 5 1 +1 2

0.4

0.6

0.8

1.0

Where

21

2+1

31

3+1

41

4+1

51

5+1

Forming the matrix using the coefficient of the generated equations


1 1 1 1 1 2 2 2 2 2 3 3 3 3 3 4 4 4 4 4 5 5 5 5 5

4|Page

1 2 1

2 +1

1 3 2

2 5

= [ ]

1 4 1

4 +3

2 5

2 5

1 5 4

1 6 5

1 2

2 3

3 4

4 5

1 2 5 3 14 4

[ Back substitution
5 4 6 5 5 3 4
2

(-11) =

5 3

5|Page

1 2 3

[ 5]

For the
1 1 1 1 2 2 2 2 3 3 3 3 4 4 4 4

1 2 1

1 2
1 3 1

1 2
2

1
5

1 2
1 4 3
2

1
5

1 5 3

1 2
2

1
5

= [

Using the back substitution to solve


4

6|Page

Comparing the four and five


1 1 2 3

[ 2]
3 4

] and

the difference is about 1 on y1 , 2 on y2, 3 on y3 and 4 on [ ]

[ 5]

y4

7|Page

You might also like