mas151: civil engineering mathematics · 2020. 1. 30. · mas151: civil engineering mathematics dr...

94
MAS151: Civil Engineering Mathematics Dr James Cranch [email protected] Friday 25th October 2019, 12noon Hicks Building LT1

Upload: others

Post on 23-Feb-2021

8 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

MAS151: Civil EngineeringMathematics

Dr James [email protected]

Friday 25th October 2019, 12noonHicks Building LT1

Page 2: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

Course matters

Page 3: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

Your comments

Page 4: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

We are interested to know your opinions about this course:

usethe discussion board and the end of semester questionnaire.

If you have comments about your class tutor, please mentionthem by name.

Page 5: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

We are interested to know your opinions about this course: usethe discussion board and the end of semester questionnaire.

If you have comments about your class tutor, please mentionthem by name.

Page 6: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

We are interested to know your opinions about this course: usethe discussion board and the end of semester questionnaire.

If you have comments about your class tutor, please mentionthem by name.

Page 7: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

Reading week

Page 8: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

Week 7 (November 11–15) is a reading week.

There will be no classes or new videos released in readingweek: the videos released late in week 6 will be due in early inweek 8.

You should use the time to revise or catch up with thematerial so far, e.g by working on exercises.

Page 9: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

Week 7 (November 11–15) is a reading week.

There will be no classes or new videos released in readingweek: the videos released late in week 6 will be due in early inweek 8.

You should use the time to revise or catch up with thematerial so far, e.g by working on exercises.

Page 10: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

Week 7 (November 11–15) is a reading week.

There will be no classes or new videos released in readingweek: the videos released late in week 6 will be due in early inweek 8.

You should use the time to revise or catch up with thematerial so far, e.g by working on exercises.

Page 11: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

Matrices

Page 12: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

Later in this course (Semester 2) we will spend a good amountof time studying matrices.

However, they are so fundamentalto engineering mathematics that they may have alreadyappeared elsewhere in your course or could come up before weget to them. To help you to get comfortable in their use, wewill cover some of the basics today.

Page 13: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

Later in this course (Semester 2) we will spend a good amountof time studying matrices. However, they are so fundamentalto engineering mathematics that they may have alreadyappeared elsewhere in your course or could come up before weget to them.

To help you to get comfortable in their use, wewill cover some of the basics today.

Page 14: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

Later in this course (Semester 2) we will spend a good amountof time studying matrices. However, they are so fundamentalto engineering mathematics that they may have alreadyappeared elsewhere in your course or could come up before weget to them. To help you to get comfortable in their use, wewill cover some of the basics today.

Page 15: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

Why matrices?

Page 16: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

Matrices to model systems

A certain city consists of an urban area and suburbs.

Eachyear 5% of those living in the urban area move to the suburbsand 3% of those living in the suburbs move to the urban area.If there are initially 600, 000 people in the urban area and400, 000 in the suburbs, how many are in each 25 years later?

Page 17: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

Matrices to model systems

A certain city consists of an urban area and suburbs. Eachyear 5% of those living in the urban area move to the suburbs

and 3% of those living in the suburbs move to the urban area.If there are initially 600, 000 people in the urban area and400, 000 in the suburbs, how many are in each 25 years later?

Page 18: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

Matrices to model systems

A certain city consists of an urban area and suburbs. Eachyear 5% of those living in the urban area move to the suburbsand 3% of those living in the suburbs move to the urban area.

If there are initially 600, 000 people in the urban area and400, 000 in the suburbs, how many are in each 25 years later?

Page 19: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

Matrices to model systems

A certain city consists of an urban area and suburbs. Eachyear 5% of those living in the urban area move to the suburbsand 3% of those living in the suburbs move to the urban area.If there are initially 600, 000 people in the urban area and400, 000 in the suburbs, how many are in each 25 years later?

Page 20: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

Definitions

Page 21: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

Let m and n be positive integers.

Then an m× n matrix A isan array of real numbers, with m rows and n columns; that is

A =

a11 a12 . . . a1na21 a22 . . . a2n

......

. . ....

am1 am2 . . . amn

We sometimes write A = (aij) for the above matrix.

Page 22: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

Let m and n be positive integers. Then an m× n matrix A isan array of real numbers, with m rows and n columns;

that is

A =

a11 a12 . . . a1na21 a22 . . . a2n

......

. . ....

am1 am2 . . . amn

We sometimes write A = (aij) for the above matrix.

Page 23: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

Let m and n be positive integers. Then an m× n matrix A isan array of real numbers, with m rows and n columns; that is

A =

a11 a12 . . . a1na21 a22 . . . a2n

......

. . ....

am1 am2 . . . amn

We sometimes write A = (aij) for the above matrix.

Page 24: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

Let m and n be positive integers. Then an m× n matrix A isan array of real numbers, with m rows and n columns; that is

A =

a11 a12 . . . a1na21 a22 . . . a2n

......

. . ....

am1 am2 . . . amn

We sometimes write A = (aij) for the above matrix.

Page 25: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

Let m and n be positive integers. Then an m× n matrix A isan array of real numbers, with m rows and n columns; that is

A =

a11 a12 . . . a1na21 a22 . . . a2n

......

. . ....

am1 am2 . . . amn

We sometimes write A = (aij) for the above matrix.

Page 26: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

For example,

(3 1 20 2 1

)is a 2× 3 matrix, and

2√2 7

0 1

3 4−√2

7 7

is a 4× 2 matrix.

Page 27: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

For example,(3 1 20 2 1

)

is a 2× 3 matrix, and

2√2 7

0 1

3 4−√2

7 7

is a 4× 2 matrix.

Page 28: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

For example,(3 1 20 2 1

)is a 2× 3 matrix,

and

2√2 7

0 1

3 4−√2

7 7

is a 4× 2 matrix.

Page 29: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

For example,(3 1 20 2 1

)is a 2× 3 matrix, and

2√2 7

0 1

3 4−√2

7 7

is a 4× 2 matrix.

Page 30: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

For example,(3 1 20 2 1

)is a 2× 3 matrix, and

2√2 7

0 1

3 4−√2

7 7

is a 4× 2 matrix.

Page 31: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

For example,(3 1 20 2 1

)is a 2× 3 matrix, and

2√2 7

0 1

3 4−√2

7 7

is a 4× 2 matrix.

Page 32: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

Identity matrices

Let n be a positive integer.

Then the n× n matrix In given by

In =

1 0 . . . 00 1 . . . 0...

.... . .

...0 0 . . . 1

is called the identity matrix of size n.

Page 33: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

Identity matrices

Let n be a positive integer. Then the n× n matrix In given by

In =

1 0 . . . 00 1 . . . 0...

.... . .

...0 0 . . . 1

is called the identity matrix of size n.

Page 34: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

Identity matrices

Let n be a positive integer. Then the n× n matrix In given by

In =

1 0 . . . 00 1 . . . 0...

.... . .

...0 0 . . . 1

is called the identity matrix of size n.

Page 35: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

Identity matrices

Let n be a positive integer. Then the n× n matrix In given by

In =

1 0 . . . 00 1 . . . 0...

.... . .

...0 0 . . . 1

is called the identity matrix of size n.

Page 36: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

For example,

I2 =

(1 00 1

)and I3 =

1 0 00 1 00 0 1

.

The identity matrix In is always square. That is, it has thesame number of rows and columns.

Page 37: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

For example,

I2 =

(1 00 1

)

and I3 =

1 0 00 1 00 0 1

.

The identity matrix In is always square. That is, it has thesame number of rows and columns.

Page 38: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

For example,

I2 =

(1 00 1

)and I3 =

1 0 00 1 00 0 1

.

The identity matrix In is always square. That is, it has thesame number of rows and columns.

Page 39: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

For example,

I2 =

(1 00 1

)and I3 =

1 0 00 1 00 0 1

.

The identity matrix In is always square.

That is, it has thesame number of rows and columns.

Page 40: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

For example,

I2 =

(1 00 1

)and I3 =

1 0 00 1 00 0 1

.

The identity matrix In is always square. That is, it has thesame number of rows and columns.

Page 41: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

Matrix operations

Page 42: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

To use matrices we have to define some basic mathematicaloperations.

Two basic operations are matrix addition andmatrix multiplication.

Page 43: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

To use matrices we have to define some basic mathematicaloperations. Two basic operations are matrix addition

andmatrix multiplication.

Page 44: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

To use matrices we have to define some basic mathematicaloperations. Two basic operations are matrix addition andmatrix multiplication.

Page 45: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

Matrix addition

Let A = (aij) and B = (bij) both be m× n matrices.

Thenwe define the sum of A and B by

A+B =

a11 + b11 a12 + b12 . . . a1n + b1na21 + b21 a22 + b22 . . . a2n + b2n

......

. . ....

am1 + bm1 am2 + bm2 . . . amn + bmn

.

In other words, to add two matrices of the same dimensionssimply add their entries componentwise.

Page 46: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

Matrix addition

Let A = (aij) and B = (bij) both be m× n matrices. Thenwe define the sum of A and B by

A+B =

a11 + b11 a12 + b12 . . . a1n + b1na21 + b21 a22 + b22 . . . a2n + b2n

......

. . ....

am1 + bm1 am2 + bm2 . . . amn + bmn

.

In other words, to add two matrices of the same dimensionssimply add their entries componentwise.

Page 47: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

Matrix addition

Let A = (aij) and B = (bij) both be m× n matrices. Thenwe define the sum of A and B by

A+B =

a11 + b11 a12 + b12 . . . a1n + b1na21 + b21 a22 + b22 . . . a2n + b2n

......

. . ....

am1 + bm1 am2 + bm2 . . . amn + bmn

.

In other words, to add two matrices of the same dimensionssimply add their entries componentwise.

Page 48: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

Matrix addition

Let A = (aij) and B = (bij) both be m× n matrices. Thenwe define the sum of A and B by

A+B =

a11 + b11 a12 + b12 . . . a1n + b1na21 + b21 a22 + b22 . . . a2n + b2n

......

. . ....

am1 + bm1 am2 + bm2 . . . amn + bmn

.

In other words, to add two matrices of the same dimensions

simply add their entries componentwise.

Page 49: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

Matrix addition

Let A = (aij) and B = (bij) both be m× n matrices. Thenwe define the sum of A and B by

A+B =

a11 + b11 a12 + b12 . . . a1n + b1na21 + b21 a22 + b22 . . . a2n + b2n

......

. . ....

am1 + bm1 am2 + bm2 . . . amn + bmn

.

In other words, to add two matrices of the same dimensionssimply add their entries componentwise.

Page 50: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

For example,(1 0 00 1 0

)+

(2 0 34 2 0

)=

(3 0 34 3 0

).

Page 51: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

For example,(1 0 00 1 0

)+

(2 0 34 2 0

)=

(3 0 34 3 0

).

Page 52: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

Warning!

It is not possible to add two matrices if their dimensions aredifferent, so take care!

Page 53: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

Matrix multiplication

Page 54: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

A big reason why matrices are so useful comes down to therule for how they multiply.

Matrices can only be multiplied when the dimensions matchup in the right way.

The thing to remember is that thenumber of columns of the first matrix must be the same as thenumber of rows of the second one.

That is, if A is p× q and B is q × r, then we can find theirproduct. The result, AB, is a p× r matrix.

Page 55: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

A big reason why matrices are so useful comes down to therule for how they multiply.

Matrices can only be multiplied when the dimensions matchup in the right way. The thing to remember is that thenumber of columns of the first matrix must be the same as thenumber of rows of the second one.

That is, if A is p× q and B is q × r, then we can find theirproduct. The result, AB, is a p× r matrix.

Page 56: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

A big reason why matrices are so useful comes down to therule for how they multiply.

Matrices can only be multiplied when the dimensions matchup in the right way. The thing to remember is that thenumber of columns of the first matrix must be the same as thenumber of rows of the second one.

That is, if A is p× q and B is q × r,

then we can find theirproduct. The result, AB, is a p× r matrix.

Page 57: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

A big reason why matrices are so useful comes down to therule for how they multiply.

Matrices can only be multiplied when the dimensions matchup in the right way. The thing to remember is that thenumber of columns of the first matrix must be the same as thenumber of rows of the second one.

That is, if A is p× q and B is q × r, then we can find theirproduct.

The result, AB, is a p× r matrix.

Page 58: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

A big reason why matrices are so useful comes down to therule for how they multiply.

Matrices can only be multiplied when the dimensions matchup in the right way. The thing to remember is that thenumber of columns of the first matrix must be the same as thenumber of rows of the second one.

That is, if A is p× q and B is q × r, then we can find theirproduct. The result, AB, is a p× r matrix.

Page 59: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

We illustrate the procedure with an example.

Let

A =

(1 2 30 1 1

)and B =

2 03 42 0

To find AB, we take each row from A (starting from the top)and ‘multiply it’ by each column from B (starting from theleft) in the following way:

AB =

(1.2 + 2.3 + 3.2 1.0 + 2.4 + 3.00.2 + 1.3 + 1.2 0.0 + 1.4 + 1.0

)=

(14 85 4

).

Page 60: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

We illustrate the procedure with an example. Let

A =

(1 2 30 1 1

)and B =

2 03 42 0

To find AB, we take each row from A (starting from the top)and ‘multiply it’ by each column from B (starting from theleft) in the following way:

AB =

(1.2 + 2.3 + 3.2 1.0 + 2.4 + 3.00.2 + 1.3 + 1.2 0.0 + 1.4 + 1.0

)=

(14 85 4

).

Page 61: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

We illustrate the procedure with an example. Let

A =

(1 2 30 1 1

)and B =

2 03 42 0

To find AB, we take each row from A

(starting from the top)and ‘multiply it’ by each column from B (starting from theleft) in the following way:

AB =

(1.2 + 2.3 + 3.2 1.0 + 2.4 + 3.00.2 + 1.3 + 1.2 0.0 + 1.4 + 1.0

)=

(14 85 4

).

Page 62: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

We illustrate the procedure with an example. Let

A =

(1 2 30 1 1

)and B =

2 03 42 0

To find AB, we take each row from A (starting from the top)

and ‘multiply it’ by each column from B (starting from theleft) in the following way:

AB =

(1.2 + 2.3 + 3.2 1.0 + 2.4 + 3.00.2 + 1.3 + 1.2 0.0 + 1.4 + 1.0

)=

(14 85 4

).

Page 63: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

We illustrate the procedure with an example. Let

A =

(1 2 30 1 1

)and B =

2 03 42 0

To find AB, we take each row from A (starting from the top)and ‘multiply it’ by each column from B

(starting from theleft) in the following way:

AB =

(1.2 + 2.3 + 3.2 1.0 + 2.4 + 3.00.2 + 1.3 + 1.2 0.0 + 1.4 + 1.0

)=

(14 85 4

).

Page 64: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

We illustrate the procedure with an example. Let

A =

(1 2 30 1 1

)and B =

2 03 42 0

To find AB, we take each row from A (starting from the top)and ‘multiply it’ by each column from B (starting from theleft)

in the following way:

AB =

(1.2 + 2.3 + 3.2 1.0 + 2.4 + 3.00.2 + 1.3 + 1.2 0.0 + 1.4 + 1.0

)=

(14 85 4

).

Page 65: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

We illustrate the procedure with an example. Let

A =

(1 2 30 1 1

)and B =

2 03 42 0

To find AB, we take each row from A (starting from the top)and ‘multiply it’ by each column from B (starting from theleft) in the following way:

AB =

(1.2 + 2.3 + 3.2 1.0 + 2.4 + 3.00.2 + 1.3 + 1.2 0.0 + 1.4 + 1.0

)=

(14 85 4

).

Page 66: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

We illustrate the procedure with an example. Let

A =

(1 2 30 1 1

)and B =

2 03 42 0

To find AB, we take each row from A (starting from the top)and ‘multiply it’ by each column from B (starting from theleft) in the following way:

AB =

(1.2 + 2.3 + 3.2 1.0 + 2.4 + 3.00.2 + 1.3 + 1.2 0.0 + 1.4 + 1.0

)=

(14 85 4

).

Page 67: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

We illustrate the procedure with an example. Let

A =

(1 2 30 1 1

)and B =

2 03 42 0

To find AB, we take each row from A (starting from the top)and ‘multiply it’ by each column from B (starting from theleft) in the following way:

AB =

(1.2 + 2.3 + 3.2

1.0 + 2.4 + 3.00.2 + 1.3 + 1.2 0.0 + 1.4 + 1.0

)=

(14 85 4

).

Page 68: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

We illustrate the procedure with an example. Let

A =

(1 2 30 1 1

)and B =

2 03 42 0

To find AB, we take each row from A (starting from the top)and ‘multiply it’ by each column from B (starting from theleft) in the following way:

AB =

(1.2 + 2.3 + 3.2 1.0 + 2.4 + 3.0

0.2 + 1.3 + 1.2 0.0 + 1.4 + 1.0

)=

(14 85 4

).

Page 69: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

We illustrate the procedure with an example. Let

A =

(1 2 30 1 1

)and B =

2 03 42 0

To find AB, we take each row from A (starting from the top)and ‘multiply it’ by each column from B (starting from theleft) in the following way:

AB =

(1.2 + 2.3 + 3.2 1.0 + 2.4 + 3.00.2 + 1.3 + 1.2

0.0 + 1.4 + 1.0

)=

(14 85 4

).

Page 70: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

We illustrate the procedure with an example. Let

A =

(1 2 30 1 1

)and B =

2 03 42 0

To find AB, we take each row from A (starting from the top)and ‘multiply it’ by each column from B (starting from theleft) in the following way:

AB =

(1.2 + 2.3 + 3.2 1.0 + 2.4 + 3.00.2 + 1.3 + 1.2 0.0 + 1.4 + 1.0

)=

(14 85 4

).

Page 71: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

We illustrate the procedure with an example. Let

A =

(1 2 30 1 1

)and B =

2 03 42 0

To find AB, we take each row from A (starting from the top)and ‘multiply it’ by each column from B (starting from theleft) in the following way:

AB =

(1.2 + 2.3 + 3.2 1.0 + 2.4 + 3.00.2 + 1.3 + 1.2 0.0 + 1.4 + 1.0

)=

(14 85 4

).

Page 72: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

In the previous example, A is 2× 3 and B is 3× 2

and theresult is 2× 2. Of course, BA will not be the same matrix, asthe result will be 3× 3.

Page 73: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

In the previous example, A is 2× 3 and B is 3× 2 and theresult is 2× 2.

Of course, BA will not be the same matrix, asthe result will be 3× 3.

Page 74: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

In the previous example, A is 2× 3 and B is 3× 2 and theresult is 2× 2. Of course, BA will not be the same matrix,

asthe result will be 3× 3.

Page 75: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

In the previous example, A is 2× 3 and B is 3× 2 and theresult is 2× 2. Of course, BA will not be the same matrix, asthe result will be 3× 3.

Page 76: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

Column vectors

One case that occurs frequently is when the second matrix is acolumn vector (i.e. an n× 1 matrix) of a suitable length.

Forexample,

(1 3 12 0 −1

) 322

=

(1.3 + 3.2 + 1.2

2.3 + 0.2 + (−1).2

)=

(114

).

The result will always be a column vector, although not ingeneral with the same length.

Page 77: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

Column vectors

One case that occurs frequently is when the second matrix is acolumn vector (i.e. an n× 1 matrix) of a suitable length. Forexample,

(1 3 12 0 −1

) 322

=

(1.3 + 3.2 + 1.2

2.3 + 0.2 + (−1).2

)=

(114

).

The result will always be a column vector, although not ingeneral with the same length.

Page 78: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

Column vectors

One case that occurs frequently is when the second matrix is acolumn vector (i.e. an n× 1 matrix) of a suitable length. Forexample,

(1 3 12 0 −1

) 322

=

(1.3 + 3.2 + 1.2

2.3 + 0.2 + (−1).2

)=

(114

).

The result will always be a column vector, although not ingeneral with the same length.

Page 79: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

Column vectors

One case that occurs frequently is when the second matrix is acolumn vector (i.e. an n× 1 matrix) of a suitable length. Forexample,

(1 3 12 0 −1

) 322

=

(1.3 + 3.2 + 1.2

2.3 + 0.2 + (−1).2

)=

(114

).

The result will always be a column vector, although not ingeneral with the same length.

Page 80: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

Column vectors

One case that occurs frequently is when the second matrix is acolumn vector (i.e. an n× 1 matrix) of a suitable length. Forexample,

(1 3 12 0 −1

) 322

=

(1.3 + 3.2 + 1.2

2.3 + 0.2 + (−1).2

)=

(114

).

The result will always be a column vector, although not ingeneral with the same length.

Page 81: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

Column vectors

One case that occurs frequently is when the second matrix is acolumn vector (i.e. an n× 1 matrix) of a suitable length. Forexample,

(1 3 12 0 −1

) 322

=

(1.3 + 3.2 + 1.2

2.3 + 0.2 + (−1).2

)=

(114

).

The result will always be a column vector,

although not ingeneral with the same length.

Page 82: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

Column vectors

One case that occurs frequently is when the second matrix is acolumn vector (i.e. an n× 1 matrix) of a suitable length. Forexample,

(1 3 12 0 −1

) 322

=

(1.3 + 3.2 + 1.2

2.3 + 0.2 + (−1).2

)=

(114

).

The result will always be a column vector, although not ingeneral with the same length.

Page 83: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

Another thing to notice is that multiplication by the identitymatrix

(of the correct size) will leave the other matrixunchanged. For example,(

1 00 1

)(1 3 12 0 −1

)=

(1.1 + 0.2 1.3 + 0.0 1.1 + 0.(−1)0.1 + 1.2 0.3 + 1.0 0.1 + 1.(−1)

)=

(1 3 12 0 −1

).

Page 84: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

Another thing to notice is that multiplication by the identitymatrix (of the correct size)

will leave the other matrixunchanged. For example,(

1 00 1

)(1 3 12 0 −1

)=

(1.1 + 0.2 1.3 + 0.0 1.1 + 0.(−1)0.1 + 1.2 0.3 + 1.0 0.1 + 1.(−1)

)=

(1 3 12 0 −1

).

Page 85: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

Another thing to notice is that multiplication by the identitymatrix (of the correct size) will leave the other matrixunchanged.

For example,(1 00 1

)(1 3 12 0 −1

)=

(1.1 + 0.2 1.3 + 0.0 1.1 + 0.(−1)0.1 + 1.2 0.3 + 1.0 0.1 + 1.(−1)

)=

(1 3 12 0 −1

).

Page 86: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

Another thing to notice is that multiplication by the identitymatrix (of the correct size) will leave the other matrixunchanged. For example,

(1 00 1

)(1 3 12 0 −1

)=

(1.1 + 0.2 1.3 + 0.0 1.1 + 0.(−1)0.1 + 1.2 0.3 + 1.0 0.1 + 1.(−1)

)=

(1 3 12 0 −1

).

Page 87: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

Another thing to notice is that multiplication by the identitymatrix (of the correct size) will leave the other matrixunchanged. For example,(

1 00 1

)(1 3 12 0 −1

)=

(1.1 + 0.2 1.3 + 0.0 1.1 + 0.(−1)0.1 + 1.2 0.3 + 1.0 0.1 + 1.(−1)

)

=

(1 3 12 0 −1

).

Page 88: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

Another thing to notice is that multiplication by the identitymatrix (of the correct size) will leave the other matrixunchanged. For example,(

1 00 1

)(1 3 12 0 −1

)=

(1.1 + 0.2 1.3 + 0.0 1.1 + 0.(−1)0.1 + 1.2 0.3 + 1.0 0.1 + 1.(−1)

)=

(1 3 12 0 −1

).

Page 89: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

Activity. Working in groups of two or three, find a matrix Asuch that

A

(xurban

xsuburban

)=

(0.95xurban + 0.03xsuburban

0.05xurban + 0.97xsuburban

).

Page 90: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

A =

(0.95 0.030.05 0.97

).

In the example at the beginning of the lecture,

A

(600, 000400, 000

)will give the number of people in the urban and suburbanareas after one year. Multiplying by A repeatedly means thepopulations after 25 years will be given by

A25

(600, 000400, 000

).

Page 91: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

A =

(0.95 0.030.05 0.97

).

In the example at the beginning of the lecture,

A

(600, 000400, 000

)will give the number of people in the urban and suburbanareas after one year.

Multiplying by A repeatedly means thepopulations after 25 years will be given by

A25

(600, 000400, 000

).

Page 92: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

A =

(0.95 0.030.05 0.97

).

In the example at the beginning of the lecture,

A

(600, 000400, 000

)will give the number of people in the urban and suburbanareas after one year. Multiplying by A repeatedly means thepopulations after 25 years will be given by

A25

(600, 000400, 000

).

Page 93: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

And finally. . .

Page 94: MAS151: Civil Engineering Mathematics · 2020. 1. 30. · MAS151: Civil Engineering Mathematics Dr James Cranch mas-engineering@sheffield.ac.uk Friday 25th October 2019, 12noon Hicks

Reminders:

• email address [email protected]

• website http://engmaths.group.shef.ac.uk/mas151

(also accessible through MOLE).