lecture1_d3

170
MA 106 - Linear Algebra Neela Nataraj Department of Mathematics, Indian Institute of Technology Bombay, Powai, Mumbai 76 [email protected] January 7, 2013 Neela Nataraj Lecture 1

Upload: aman-chaudhary

Post on 16-Apr-2015

11 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: lecture1_D3

MA 106 - Linear Algebra

Neela Nataraj

Department of Mathematics,Indian Institute of Technology Bombay,

Powai, Mumbai [email protected]

January 7, 2013

Neela Nataraj Lecture 1

Page 2: lecture1_D3

Outline of the lecture

Matrices (A revision) & Gauss Elimination

MatrixAddition of MatricesMultiplication of MatricesProperties of Addition & MultiplicationTranspose & PropertiesSpecial MatricesInverse of a MatrixLinear SystemsGauss Elimination Method

Neela Nataraj Lecture 1

Page 3: lecture1_D3

Linear Algebra

One of the most important basic areas in Mathematics, havingat least as great an impact as Calculus.Provides a vital arena where the interaction of Mathematicsand machine computation is seen.Many of the problems studied in Linear Algebra are amenableto systematic and even algorithmic solutions, and this makesthem implementable on computers.Many geometric topics are studied making use of conceptsfrom Linear Algebra.Applications to Physics, Engineering, Probability & Statistics,Economics and Biology.

Neela Nataraj Lecture 1

Page 4: lecture1_D3

Matrix

A matrix is a rectangular array of numbers (or functions) enclosedin brackets with the numbers (or functions) called as entries orelements of the matrix.

Matrices are denoted by capital letters A, B, C , · · · .For integers m,n≥ 1, an m×n matrix is an array given by

a11 a12 . . . a1na21 a22 . . . a2n...

... . . ....

am1 am2 . . . amn

Denoting the matrix above as A= (aij)1≤i≤m, 1≤j≤n, (aij), i = 1, . . . ,mcorrespond to the m rows of the matrix and and (aij), j = 1, . . . ,ncorrespond to the n columns of the matrix.aij is called as the ij-th entry (or component) of the matrix.

Neela Nataraj Lecture 1

Page 5: lecture1_D3

Matrix

A matrix is a rectangular array of numbers (or functions) enclosedin brackets with the numbers (or functions) called as entries orelements of the matrix.Matrices are denoted by capital letters A, B, C , · · · .

For integers m,n≥ 1, an m×n matrix is an array given by

a11 a12 . . . a1na21 a22 . . . a2n...

... . . ....

am1 am2 . . . amn

Denoting the matrix above as A= (aij)1≤i≤m, 1≤j≤n, (aij), i = 1, . . . ,mcorrespond to the m rows of the matrix and and (aij), j = 1, . . . ,ncorrespond to the n columns of the matrix.aij is called as the ij-th entry (or component) of the matrix.

Neela Nataraj Lecture 1

Page 6: lecture1_D3

Matrix

A matrix is a rectangular array of numbers (or functions) enclosedin brackets with the numbers (or functions) called as entries orelements of the matrix.Matrices are denoted by capital letters A, B, C , · · · .For integers m,n≥ 1, an m×n matrix is an array given by

a11 a12 . . . a1na21 a22 . . . a2n...

... . . ....

am1 am2 . . . amn

Denoting the matrix above as A= (aij)1≤i≤m, 1≤j≤n, (aij), i = 1, . . . ,mcorrespond to the m rows of the matrix and and (aij), j = 1, . . . ,ncorrespond to the n columns of the matrix.aij is called as the ij-th entry (or component) of the matrix.

Neela Nataraj Lecture 1

Page 7: lecture1_D3

Matrix

A matrix is a rectangular array of numbers (or functions) enclosedin brackets with the numbers (or functions) called as entries orelements of the matrix.Matrices are denoted by capital letters A, B, C , · · · .For integers m,n≥ 1, an m×n matrix is an array given by

a11 a12 . . . a1na21 a22 . . . a2n...

... . . ....

am1 am2 . . . amn

Denoting the matrix above as A= (aij)1≤i≤m, 1≤j≤n, (aij), i = 1, . . . ,mcorrespond to the m rows of the matrix and and (aij), j = 1, . . . ,ncorrespond to the n columns of the matrix.

aij is called as the ij-th entry (or component) of the matrix.

Neela Nataraj Lecture 1

Page 8: lecture1_D3

Matrix

A matrix is a rectangular array of numbers (or functions) enclosedin brackets with the numbers (or functions) called as entries orelements of the matrix.Matrices are denoted by capital letters A, B, C , · · · .For integers m,n≥ 1, an m×n matrix is an array given by

a11 a12 . . . a1na21 a22 . . . a2n...

... . . ....

am1 am2 . . . amn

Denoting the matrix above as A= (aij)1≤i≤m, 1≤j≤n, (aij), i = 1, . . . ,mcorrespond to the m rows of the matrix and and (aij), j = 1, . . . ,ncorrespond to the n columns of the matrix.aij is called as the ij-th entry (or component) of the matrix.

Neela Nataraj Lecture 1

Page 9: lecture1_D3

Row and Column vectors

A matrix consisting of a single row is called a row vector.

A row vector (x1, . . . ,xn) is a 1×n matrix.A matrix consisting of a single column is called a column vector.

A column vector

x1...xn

is an n×1 matrix.

Row and column vectors are denoted using lower case letters suchas a, b, and so on.A square matrix is a matrix with the same number of rows andcolumns.For n≥ 1, an n×n matrix is called a square matrix of order n.A matrix (aij) is called the zero matrix if all its entries are zeroesand is, denoted by O.The size of the zero matrix should be clear from the context.

Neela Nataraj Lecture 1

Page 10: lecture1_D3

Row and Column vectors

A matrix consisting of a single row is called a row vector.A row vector (x1, . . . ,xn) is a 1×n matrix.

A matrix consisting of a single column is called a column vector.

A column vector

x1...xn

is an n×1 matrix.

Row and column vectors are denoted using lower case letters suchas a, b, and so on.A square matrix is a matrix with the same number of rows andcolumns.For n≥ 1, an n×n matrix is called a square matrix of order n.A matrix (aij) is called the zero matrix if all its entries are zeroesand is, denoted by O.The size of the zero matrix should be clear from the context.

Neela Nataraj Lecture 1

Page 11: lecture1_D3

Row and Column vectors

A matrix consisting of a single row is called a row vector.A row vector (x1, . . . ,xn) is a 1×n matrix.

A matrix consisting of a single column is called a column vector.

A column vector

x1...xn

is an n×1 matrix.

Row and column vectors are denoted using lower case letters suchas a, b, and so on.A square matrix is a matrix with the same number of rows andcolumns.For n≥ 1, an n×n matrix is called a square matrix of order n.A matrix (aij) is called the zero matrix if all its entries are zeroesand is, denoted by O.The size of the zero matrix should be clear from the context.

Neela Nataraj Lecture 1

Page 12: lecture1_D3

Row and Column vectors

A matrix consisting of a single row is called a row vector.A row vector (x1, . . . ,xn) is a 1×n matrix.A matrix consisting of a single column is called a column vector.

A column vector

x1...xn

is an n×1 matrix.

Row and column vectors are denoted using lower case letters suchas a, b, and so on.A square matrix is a matrix with the same number of rows andcolumns.For n≥ 1, an n×n matrix is called a square matrix of order n.A matrix (aij) is called the zero matrix if all its entries are zeroesand is, denoted by O.The size of the zero matrix should be clear from the context.

Neela Nataraj Lecture 1

Page 13: lecture1_D3

Row and Column vectors

A matrix consisting of a single row is called a row vector.A row vector (x1, . . . ,xn) is a 1×n matrix.A matrix consisting of a single column is called a column vector.

A column vector

x1...xn

is an n×1 matrix.

Row and column vectors are denoted using lower case letters suchas a, b, and so on.A square matrix is a matrix with the same number of rows andcolumns.For n≥ 1, an n×n matrix is called a square matrix of order n.A matrix (aij) is called the zero matrix if all its entries are zeroesand is, denoted by O.The size of the zero matrix should be clear from the context.

Neela Nataraj Lecture 1

Page 14: lecture1_D3

Row and Column vectors

A matrix consisting of a single row is called a row vector.A row vector (x1, . . . ,xn) is a 1×n matrix.A matrix consisting of a single column is called a column vector.

A column vector

x1...xn

is an n×1 matrix.

Row and column vectors are denoted using lower case letters suchas a, b, and so on.

A square matrix is a matrix with the same number of rows andcolumns.For n≥ 1, an n×n matrix is called a square matrix of order n.A matrix (aij) is called the zero matrix if all its entries are zeroesand is, denoted by O.The size of the zero matrix should be clear from the context.

Neela Nataraj Lecture 1

Page 15: lecture1_D3

Row and Column vectors

A matrix consisting of a single row is called a row vector.A row vector (x1, . . . ,xn) is a 1×n matrix.A matrix consisting of a single column is called a column vector.

A column vector

x1...xn

is an n×1 matrix.

Row and column vectors are denoted using lower case letters suchas a, b, and so on.A square matrix is a matrix with the same number of rows andcolumns.

For n≥ 1, an n×n matrix is called a square matrix of order n.A matrix (aij) is called the zero matrix if all its entries are zeroesand is, denoted by O.The size of the zero matrix should be clear from the context.

Neela Nataraj Lecture 1

Page 16: lecture1_D3

Row and Column vectors

A matrix consisting of a single row is called a row vector.A row vector (x1, . . . ,xn) is a 1×n matrix.A matrix consisting of a single column is called a column vector.

A column vector

x1...xn

is an n×1 matrix.

Row and column vectors are denoted using lower case letters suchas a, b, and so on.A square matrix is a matrix with the same number of rows andcolumns.For n≥ 1, an n×n matrix is called a square matrix of order n.

A matrix (aij) is called the zero matrix if all its entries are zeroesand is, denoted by O.The size of the zero matrix should be clear from the context.

Neela Nataraj Lecture 1

Page 17: lecture1_D3

Row and Column vectors

A matrix consisting of a single row is called a row vector.A row vector (x1, . . . ,xn) is a 1×n matrix.A matrix consisting of a single column is called a column vector.

A column vector

x1...xn

is an n×1 matrix.

Row and column vectors are denoted using lower case letters suchas a, b, and so on.A square matrix is a matrix with the same number of rows andcolumns.For n≥ 1, an n×n matrix is called a square matrix of order n.A matrix (aij) is called the zero matrix if all its entries are zeroesand is, denoted by O.

The size of the zero matrix should be clear from the context.

Neela Nataraj Lecture 1

Page 18: lecture1_D3

Row and Column vectors

A matrix consisting of a single row is called a row vector.A row vector (x1, . . . ,xn) is a 1×n matrix.A matrix consisting of a single column is called a column vector.

A column vector

x1...xn

is an n×1 matrix.

Row and column vectors are denoted using lower case letters suchas a, b, and so on.A square matrix is a matrix with the same number of rows andcolumns.For n≥ 1, an n×n matrix is called a square matrix of order n.A matrix (aij) is called the zero matrix if all its entries are zeroesand is, denoted by O.The size of the zero matrix should be clear from the context.

Neela Nataraj Lecture 1

Page 19: lecture1_D3

(Addition of Matrices)

If A= (aij)1≤i≤m,1≤j≤n and B = (bij)1≤i≤m,1≤j≤n are two m×nmatrices, their sum, written as A+B, is obtained by adding thecorresponding entries.

That is, A+B = (aij +bij)1≤i≤m,1≤j≤n.

For any matrix A, O+A=A+O=A.

(Scalar multiplication)

The product of an m×n matrix A= (aij)1≤i≤m,1≤j≤n and any scalarc, written as cA, is the m×n matrix obtained by multiplying eachentry of A by c.That is, c(aij)1≤i≤m,1≤j≤n := (caij)1≤i≤m,1≤j≤n.

Write (−1)A=−A. Then A+ (−A)=O. The matrix −A is calledthe additive inverse of A.(−k)A is written as −kA, A+ (−B) is written as A−B and is calledthe difference of A and B .

Neela Nataraj Lecture 1

Page 20: lecture1_D3

(Addition of Matrices)

If A= (aij)1≤i≤m,1≤j≤n and B = (bij)1≤i≤m,1≤j≤n are two m×nmatrices, their sum, written as A+B, is obtained by adding thecorresponding entries. That is, A+B = (aij +bij)1≤i≤m,1≤j≤n.

For any matrix A, O+A=A+O=A.

(Scalar multiplication)

The product of an m×n matrix A= (aij)1≤i≤m,1≤j≤n and any scalarc, written as cA, is the m×n matrix obtained by multiplying eachentry of A by c.That is, c(aij)1≤i≤m,1≤j≤n := (caij)1≤i≤m,1≤j≤n.

Write (−1)A=−A. Then A+ (−A)=O. The matrix −A is calledthe additive inverse of A.(−k)A is written as −kA, A+ (−B) is written as A−B and is calledthe difference of A and B .

Neela Nataraj Lecture 1

Page 21: lecture1_D3

(Addition of Matrices)

If A= (aij)1≤i≤m,1≤j≤n and B = (bij)1≤i≤m,1≤j≤n are two m×nmatrices, their sum, written as A+B, is obtained by adding thecorresponding entries. That is, A+B = (aij +bij)1≤i≤m,1≤j≤n.

For any matrix A, O+A=A+O=A.

(Scalar multiplication)

The product of an m×n matrix A= (aij)1≤i≤m,1≤j≤n and any scalarc, written as cA, is the m×n matrix obtained by multiplying eachentry of A by c.That is, c(aij)1≤i≤m,1≤j≤n := (caij)1≤i≤m,1≤j≤n.

Write (−1)A=−A. Then A+ (−A)=O. The matrix −A is calledthe additive inverse of A.(−k)A is written as −kA, A+ (−B) is written as A−B and is calledthe difference of A and B .

Neela Nataraj Lecture 1

Page 22: lecture1_D3

(Addition of Matrices)

If A= (aij)1≤i≤m,1≤j≤n and B = (bij)1≤i≤m,1≤j≤n are two m×nmatrices, their sum, written as A+B, is obtained by adding thecorresponding entries. That is, A+B = (aij +bij)1≤i≤m,1≤j≤n.

For any matrix A, O+A=A+O=A.

(Scalar multiplication)

The product of an m×n matrix A= (aij)1≤i≤m,1≤j≤n and any scalarc, written as cA, is the m×n matrix obtained by multiplying eachentry of A by c.

That is, c(aij)1≤i≤m,1≤j≤n := (caij)1≤i≤m,1≤j≤n.

Write (−1)A=−A. Then A+ (−A)=O. The matrix −A is calledthe additive inverse of A.(−k)A is written as −kA, A+ (−B) is written as A−B and is calledthe difference of A and B .

Neela Nataraj Lecture 1

Page 23: lecture1_D3

(Addition of Matrices)

If A= (aij)1≤i≤m,1≤j≤n and B = (bij)1≤i≤m,1≤j≤n are two m×nmatrices, their sum, written as A+B, is obtained by adding thecorresponding entries. That is, A+B = (aij +bij)1≤i≤m,1≤j≤n.

For any matrix A, O+A=A+O=A.

(Scalar multiplication)

The product of an m×n matrix A= (aij)1≤i≤m,1≤j≤n and any scalarc, written as cA, is the m×n matrix obtained by multiplying eachentry of A by c.That is, c(aij)1≤i≤m,1≤j≤n := (caij)1≤i≤m,1≤j≤n.

Write (−1)A=−A.

Then A+ (−A)=O. The matrix −A is calledthe additive inverse of A.(−k)A is written as −kA, A+ (−B) is written as A−B and is calledthe difference of A and B .

Neela Nataraj Lecture 1

Page 24: lecture1_D3

(Addition of Matrices)

If A= (aij)1≤i≤m,1≤j≤n and B = (bij)1≤i≤m,1≤j≤n are two m×nmatrices, their sum, written as A+B, is obtained by adding thecorresponding entries. That is, A+B = (aij +bij)1≤i≤m,1≤j≤n.

For any matrix A, O+A=A+O=A.

(Scalar multiplication)

The product of an m×n matrix A= (aij)1≤i≤m,1≤j≤n and any scalarc, written as cA, is the m×n matrix obtained by multiplying eachentry of A by c.That is, c(aij)1≤i≤m,1≤j≤n := (caij)1≤i≤m,1≤j≤n.

Write (−1)A=−A. Then A+ (−A)=O.

The matrix −A is calledthe additive inverse of A.(−k)A is written as −kA, A+ (−B) is written as A−B and is calledthe difference of A and B .

Neela Nataraj Lecture 1

Page 25: lecture1_D3

(Addition of Matrices)

If A= (aij)1≤i≤m,1≤j≤n and B = (bij)1≤i≤m,1≤j≤n are two m×nmatrices, their sum, written as A+B, is obtained by adding thecorresponding entries. That is, A+B = (aij +bij)1≤i≤m,1≤j≤n.

For any matrix A, O+A=A+O=A.

(Scalar multiplication)

The product of an m×n matrix A= (aij)1≤i≤m,1≤j≤n and any scalarc, written as cA, is the m×n matrix obtained by multiplying eachentry of A by c.That is, c(aij)1≤i≤m,1≤j≤n := (caij)1≤i≤m,1≤j≤n.

Write (−1)A=−A. Then A+ (−A)=O. The matrix −A is calledthe additive inverse of A.

(−k)A is written as −kA, A+ (−B) is written as A−B and is calledthe difference of A and B .

Neela Nataraj Lecture 1

Page 26: lecture1_D3

(Addition of Matrices)

If A= (aij)1≤i≤m,1≤j≤n and B = (bij)1≤i≤m,1≤j≤n are two m×nmatrices, their sum, written as A+B, is obtained by adding thecorresponding entries. That is, A+B = (aij +bij)1≤i≤m,1≤j≤n.

For any matrix A, O+A=A+O=A.

(Scalar multiplication)

The product of an m×n matrix A= (aij)1≤i≤m,1≤j≤n and any scalarc, written as cA, is the m×n matrix obtained by multiplying eachentry of A by c.That is, c(aij)1≤i≤m,1≤j≤n := (caij)1≤i≤m,1≤j≤n.

Write (−1)A=−A. Then A+ (−A)=O. The matrix −A is calledthe additive inverse of A.(−k)A is written as −kA,

A+ (−B) is written as A−B and is calledthe difference of A and B .

Neela Nataraj Lecture 1

Page 27: lecture1_D3

(Addition of Matrices)

If A= (aij)1≤i≤m,1≤j≤n and B = (bij)1≤i≤m,1≤j≤n are two m×nmatrices, their sum, written as A+B, is obtained by adding thecorresponding entries. That is, A+B = (aij +bij)1≤i≤m,1≤j≤n.

For any matrix A, O+A=A+O=A.

(Scalar multiplication)

The product of an m×n matrix A= (aij)1≤i≤m,1≤j≤n and any scalarc, written as cA, is the m×n matrix obtained by multiplying eachentry of A by c.That is, c(aij)1≤i≤m,1≤j≤n := (caij)1≤i≤m,1≤j≤n.

Write (−1)A=−A. Then A+ (−A)=O. The matrix −A is calledthe additive inverse of A.(−k)A is written as −kA, A+ (−B) is written as A−B and is calledthe difference of A and B .

Neela Nataraj Lecture 1

Page 28: lecture1_D3

Matrix Addition Laws

If A, B and C are matrices of the same size m×n, 0 is the matrixof size m×n with all entries as zeroes, then

1 A+B =B +A (Commutative Law)

2 (A+B)+C =A+ (B +C ) (Associative Law)3 A+0=A (Existence of Identity)4 A+−A= 0 (Existence of additive inverse)

Neela Nataraj Lecture 1

Page 29: lecture1_D3

Matrix Addition Laws

If A, B and C are matrices of the same size m×n, 0 is the matrixof size m×n with all entries as zeroes, then

1 A+B =B +A (Commutative Law)2 (A+B)+C =A+ (B +C ) (Associative Law)

3 A+0=A (Existence of Identity)4 A+−A= 0 (Existence of additive inverse)

Neela Nataraj Lecture 1

Page 30: lecture1_D3

Matrix Addition Laws

If A, B and C are matrices of the same size m×n, 0 is the matrixof size m×n with all entries as zeroes, then

1 A+B =B +A (Commutative Law)2 (A+B)+C =A+ (B +C ) (Associative Law)3 A+0=A (Existence of Identity)

4 A+−A= 0 (Existence of additive inverse)

Neela Nataraj Lecture 1

Page 31: lecture1_D3

Matrix Addition Laws

If A, B and C are matrices of the same size m×n, 0 is the matrixof size m×n with all entries as zeroes, then

1 A+B =B +A (Commutative Law)2 (A+B)+C =A+ (B +C ) (Associative Law)3 A+0=A (Existence of Identity)4 A+−A= 0 (Existence of additive inverse)

Neela Nataraj Lecture 1

Page 32: lecture1_D3

Scalar Multiplication Laws

If A and B are matrices of the same size m×n, c , k are scalars,then

1 c(A+B)= cA+cB

2 (c +k)A= cA+kA3 c(kA)= (ck)A= ckA4 1 ·A=A

Neela Nataraj Lecture 1

Page 33: lecture1_D3

Scalar Multiplication Laws

If A and B are matrices of the same size m×n, c , k are scalars,then

1 c(A+B)= cA+cB2 (c +k)A= cA+kA

3 c(kA)= (ck)A= ckA4 1 ·A=A

Neela Nataraj Lecture 1

Page 34: lecture1_D3

Scalar Multiplication Laws

If A and B are matrices of the same size m×n, c , k are scalars,then

1 c(A+B)= cA+cB2 (c +k)A= cA+kA3 c(kA)= (ck)A= ckA

4 1 ·A=A

Neela Nataraj Lecture 1

Page 35: lecture1_D3

Scalar Multiplication Laws

If A and B are matrices of the same size m×n, c , k are scalars,then

1 c(A+B)= cA+cB2 (c +k)A= cA+kA3 c(kA)= (ck)A= ckA4 1 ·A=A

Neela Nataraj Lecture 1

Page 36: lecture1_D3

Multiplication of matrices

(Multiplication of Matrices)

Let A= (aij) be an m×n matrix and B = (bjk) be an n× s matrix.Define the product AB to be the m× s matrix (cik), where

cik =n∑

j=1aijbjk .

If A1, . . . ,Am are row vectors of A and B1, . . . ,Bs are column vectorsof B , then ik-th coordinate of the matrix AB is the product AiBk .

Neela Nataraj Lecture 1

Page 37: lecture1_D3

Multiplication of matrices

(Multiplication of Matrices)

Let A= (aij) be an m×n matrix

and B = (bjk) be an n× s matrix.Define the product AB to be the m× s matrix (cik), where

cik =n∑

j=1aijbjk .

If A1, . . . ,Am are row vectors of A and B1, . . . ,Bs are column vectorsof B , then ik-th coordinate of the matrix AB is the product AiBk .

Neela Nataraj Lecture 1

Page 38: lecture1_D3

Multiplication of matrices

(Multiplication of Matrices)

Let A= (aij) be an m×n matrix and B = (bjk) be an n× s matrix.

Define the product AB to be the m× s matrix (cik), where

cik =n∑

j=1aijbjk .

If A1, . . . ,Am are row vectors of A and B1, . . . ,Bs are column vectorsof B , then ik-th coordinate of the matrix AB is the product AiBk .

Neela Nataraj Lecture 1

Page 39: lecture1_D3

Multiplication of matrices

(Multiplication of Matrices)

Let A= (aij) be an m×n matrix and B = (bjk) be an n× s matrix.Define the product AB to be the m× s matrix (cik), where

cik =

n∑

j=1aijbjk .

If A1, . . . ,Am are row vectors of A and B1, . . . ,Bs are column vectorsof B , then ik-th coordinate of the matrix AB is the product AiBk .

Neela Nataraj Lecture 1

Page 40: lecture1_D3

Multiplication of matrices

(Multiplication of Matrices)

Let A= (aij) be an m×n matrix and B = (bjk) be an n× s matrix.Define the product AB to be the m× s matrix (cik), where

cik =n∑

j=1aijbjk .

If A1, . . . ,Am are row vectors of A and B1, . . . ,Bs are column vectorsof B , then ik-th coordinate of the matrix AB is the product AiBk .

Neela Nataraj Lecture 1

Page 41: lecture1_D3

Multiplication of matrices

(Multiplication of Matrices)

Let A= (aij) be an m×n matrix and B = (bjk) be an n× s matrix.Define the product AB to be the m× s matrix (cik), where

cik =n∑

j=1aijbjk .

If A1, . . . ,Am

are row vectors of A and B1, . . . ,Bs are column vectorsof B , then ik-th coordinate of the matrix AB is the product AiBk .

Neela Nataraj Lecture 1

Page 42: lecture1_D3

Multiplication of matrices

(Multiplication of Matrices)

Let A= (aij) be an m×n matrix and B = (bjk) be an n× s matrix.Define the product AB to be the m× s matrix (cik), where

cik =n∑

j=1aijbjk .

If A1, . . . ,Am are row vectors of A

and B1, . . . ,Bs are column vectorsof B , then ik-th coordinate of the matrix AB is the product AiBk .

Neela Nataraj Lecture 1

Page 43: lecture1_D3

Multiplication of matrices

(Multiplication of Matrices)

Let A= (aij) be an m×n matrix and B = (bjk) be an n× s matrix.Define the product AB to be the m× s matrix (cik), where

cik =n∑

j=1aijbjk .

If A1, . . . ,Am are row vectors of A and B1, . . . ,Bs

are column vectorsof B , then ik-th coordinate of the matrix AB is the product AiBk .

Neela Nataraj Lecture 1

Page 44: lecture1_D3

Multiplication of matrices

(Multiplication of Matrices)

Let A= (aij) be an m×n matrix and B = (bjk) be an n× s matrix.Define the product AB to be the m× s matrix (cik), where

cik =n∑

j=1aijbjk .

If A1, . . . ,Am are row vectors of A and B1, . . . ,Bs are column vectorsof B ,

then ik-th coordinate of the matrix AB is the product AiBk .

Neela Nataraj Lecture 1

Page 45: lecture1_D3

Multiplication of matrices

(Multiplication of Matrices)

Let A= (aij) be an m×n matrix and B = (bjk) be an n× s matrix.Define the product AB to be the m× s matrix (cik), where

cik =n∑

j=1aijbjk .

If A1, . . . ,Am are row vectors of A and B1, . . . ,Bs are column vectorsof B , then ik-th coordinate of the matrix AB is the product AiBk .

Neela Nataraj Lecture 1

Page 46: lecture1_D3

a11 . . . a1k . . . a1p

.... . .

......

...

ai 1 . . . ai k . . . ai p

......

.... . .

...

an1 . . . ank . . . anp

A : n rows p columns

b11 . . . b1 j . . . b1q

.... . .

......

...

bk1 . . . bk j . . . bkq

......

.... . .

...

bp1 . . . bp j . . . bpq

B : p rows q columns

c11 . . . c1 j . . . c1q

.... . .

......

...

ci 1 . . . ci j . . . ci q

......

.... . .

...

cn1 . . . cnk . . . cnq

C = A×B : n rows q columns

a i1×b 1 j

a ik×b k j

a i p×b p j

+ . . .+

+ . . .+

Page 47: lecture1_D3

Illustrations

Example

Let A=(2 1 −10 3 1

)

2×3

and B =1 6 0 22 −1 1 −22 0 −1 1

3×4

. Then

AB =(2 11 2 18 −3 2 −5

)

2×4.

ExampleConsider a system of two linear equations in three unknowns

3x −2y +3z = 1; −x +7y −4z =−5.

Let A=(3 −2 3−1 7 −4

); B =

(1−5

); and X =

xyz

. Then the system

of two equations can be written in the form AX =B .

Neela Nataraj Lecture 1

Page 48: lecture1_D3

Illustrations

Example

Let A=(2 1 −10 3 1

)

2×3and B =

1 6 0 22 −1 1 −22 0 −1 1

3×4

.

Then

AB =(2 11 2 18 −3 2 −5

)

2×4.

ExampleConsider a system of two linear equations in three unknowns

3x −2y +3z = 1; −x +7y −4z =−5.

Let A=(3 −2 3−1 7 −4

); B =

(1−5

); and X =

xyz

. Then the system

of two equations can be written in the form AX =B .

Neela Nataraj Lecture 1

Page 49: lecture1_D3

Illustrations

Example

Let A=(2 1 −10 3 1

)

2×3and B =

1 6 0 22 −1 1 −22 0 −1 1

3×4

. Then

AB =

(2 11 2 18 −3 2 −5

)

2×4.

ExampleConsider a system of two linear equations in three unknowns

3x −2y +3z = 1; −x +7y −4z =−5.

Let A=(3 −2 3−1 7 −4

); B =

(1−5

); and X =

xyz

. Then the system

of two equations can be written in the form AX =B .

Neela Nataraj Lecture 1

Page 50: lecture1_D3

Illustrations

Example

Let A=(2 1 −10 3 1

)

2×3and B =

1 6 0 22 −1 1 −22 0 −1 1

3×4

. Then

AB =(2

11 2 18 −3 2 −5

)

2×4.

ExampleConsider a system of two linear equations in three unknowns

3x −2y +3z = 1; −x +7y −4z =−5.

Let A=(3 −2 3−1 7 −4

); B =

(1−5

); and X =

xyz

. Then the system

of two equations can be written in the form AX =B .

Neela Nataraj Lecture 1

Page 51: lecture1_D3

Illustrations

Example

Let A=(2 1 −10 3 1

)

2×3and B =

1 6 0 22 −1 1 −22 0 −1 1

3×4

. Then

AB =(2 11

2 18 −3 2 −5

)

2×4.

ExampleConsider a system of two linear equations in three unknowns

3x −2y +3z = 1; −x +7y −4z =−5.

Let A=(3 −2 3−1 7 −4

); B =

(1−5

); and X =

xyz

. Then the system

of two equations can be written in the form AX =B .

Neela Nataraj Lecture 1

Page 52: lecture1_D3

Illustrations

Example

Let A=(2 1 −10 3 1

)

2×3and B =

1 6 0 22 −1 1 −22 0 −1 1

3×4

. Then

AB =(2 11 2

18 −3 2 −5

)

2×4.

ExampleConsider a system of two linear equations in three unknowns

3x −2y +3z = 1; −x +7y −4z =−5.

Let A=(3 −2 3−1 7 −4

); B =

(1−5

); and X =

xyz

. Then the system

of two equations can be written in the form AX =B .

Neela Nataraj Lecture 1

Page 53: lecture1_D3

Illustrations

Example

Let A=(2 1 −10 3 1

)

2×3and B =

1 6 0 22 −1 1 −22 0 −1 1

3×4

. Then

AB =(2 11 2 1

8 −3 2 −5)

2×4.

ExampleConsider a system of two linear equations in three unknowns

3x −2y +3z = 1; −x +7y −4z =−5.

Let A=(3 −2 3−1 7 −4

); B =

(1−5

); and X =

xyz

. Then the system

of two equations can be written in the form AX =B .

Neela Nataraj Lecture 1

Page 54: lecture1_D3

Illustrations

Example

Let A=(2 1 −10 3 1

)

2×3and B =

1 6 0 22 −1 1 −22 0 −1 1

3×4

. Then

AB =(2 11 2 18 −3 2 −5

)

2×4.

ExampleConsider a system of two linear equations in three unknowns

3x −2y +3z = 1; −x +7y −4z =−5.

Let A=(3 −2 3−1 7 −4

); B =

(1−5

); and X =

xyz

. Then the system

of two equations can be written in the form AX =B .

Neela Nataraj Lecture 1

Page 55: lecture1_D3

Illustrations

Example

Let A=(2 1 −10 3 1

)

2×3and B =

1 6 0 22 −1 1 −22 0 −1 1

3×4

. Then

AB =(2 11 2 18 −3 2 −5

)

2×4.

ExampleConsider a system of two linear equations in three unknowns

3x −2y +3z = 1; −x +7y −4z =−5.

Let A=(3 −2 3−1 7 −4

); B =

(1−5

); and X =

xyz

. Then the system

of two equations can be written in the form AX =B .

Neela Nataraj Lecture 1

Page 56: lecture1_D3

Illustrations

Example

Let A=(2 1 −10 3 1

)

2×3and B =

1 6 0 22 −1 1 −22 0 −1 1

3×4

. Then

AB =(2 11 2 18 −3 2 −5

)

2×4.

ExampleConsider a system of two linear equations in three unknowns

3x −2y +3z = 1; −x +7y −4z =−5.

Let A=(3 −2 3−1 7 −4

); B =

(1−5

); and X =

xyz

. Then the system

of two equations can be written in the form AX =B .

Neela Nataraj Lecture 1

Page 57: lecture1_D3

Illustrations

Example

Let A=(2 1 −10 3 1

)

2×3and B =

1 6 0 22 −1 1 −22 0 −1 1

3×4

. Then

AB =(2 11 2 18 −3 2 −5

)

2×4.

ExampleConsider a system of two linear equations in three unknowns

3x −2y +3z = 1; −x +7y −4z =−5.

Let A=(3 −2 3−1 7 −4

); B =

(1−5

); and X =

xyz

. Then the system

of two equations can be written in the form AX =B .

Neela Nataraj Lecture 1

Page 58: lecture1_D3

Illustrations

Example

Let A=(2 1 −10 3 1

)

2×3and B =

1 6 0 22 −1 1 −22 0 −1 1

3×4

. Then

AB =(2 11 2 18 −3 2 −5

)

2×4.

ExampleConsider a system of two linear equations in three unknowns

3x −2y +3z = 1; −x +7y −4z =−5.

Let A=(3 −2 3−1 7 −4

);

B =(1−5

); and X =

xyz

. Then the system

of two equations can be written in the form AX =B .

Neela Nataraj Lecture 1

Page 59: lecture1_D3

Illustrations

Example

Let A=(2 1 −10 3 1

)

2×3and B =

1 6 0 22 −1 1 −22 0 −1 1

3×4

. Then

AB =(2 11 2 18 −3 2 −5

)

2×4.

ExampleConsider a system of two linear equations in three unknowns

3x −2y +3z = 1; −x +7y −4z =−5.

Let A=(3 −2 3−1 7 −4

); B =

(1−5

)

; and X =xyz

. Then the system

of two equations can be written in the form AX =B .

Neela Nataraj Lecture 1

Page 60: lecture1_D3

Illustrations

Example

Let A=(2 1 −10 3 1

)

2×3and B =

1 6 0 22 −1 1 −22 0 −1 1

3×4

. Then

AB =(2 11 2 18 −3 2 −5

)

2×4.

ExampleConsider a system of two linear equations in three unknowns

3x −2y +3z = 1; −x +7y −4z =−5.

Let A=(3 −2 3−1 7 −4

); B =

(1−5

); and X =

xyz

.

Then the system

of two equations can be written in the form AX =B .

Neela Nataraj Lecture 1

Page 61: lecture1_D3

Illustrations

Example

Let A=(2 1 −10 3 1

)

2×3and B =

1 6 0 22 −1 1 −22 0 −1 1

3×4

. Then

AB =(2 11 2 18 −3 2 −5

)

2×4.

ExampleConsider a system of two linear equations in three unknowns

3x −2y +3z = 1; −x +7y −4z =−5.

Let A=(3 −2 3−1 7 −4

); B =

(1−5

); and X =

xyz

. Then the system

of two equations can be written in the form

AX =B .

Neela Nataraj Lecture 1

Page 62: lecture1_D3

Illustrations

Example

Let A=(2 1 −10 3 1

)

2×3and B =

1 6 0 22 −1 1 −22 0 −1 1

3×4

. Then

AB =(2 11 2 18 −3 2 −5

)

2×4.

ExampleConsider a system of two linear equations in three unknowns

3x −2y +3z = 1; −x +7y −4z =−5.

Let A=(3 −2 3−1 7 −4

); B =

(1−5

); and X =

xyz

. Then the system

of two equations can be written in the form AX =B .

Neela Nataraj Lecture 1

Page 63: lecture1_D3

Matrix Multiplication - 3 ways

Example

Let A=(2 −2 41 3 5

)

and B =2 −14 −26 3

.

Then, AB =(20 1444 8

).

(i) Each entry of AB is the product of a row of A with a column ofB .ij th entry of AB = the product of i th row of A & j th column of B .

(ii) Each column of AB is the product of a matrix and a column.Column j of AB is A times column j of B .(iii) Each row of AB is the product of a row and a matrix.Row i of AB is row i of A times B .

Neela Nataraj Lecture 1

Page 64: lecture1_D3

Matrix Multiplication - 3 ways

Example

Let A=(2 −2 41 3 5

)and B =

2 −14 −26 3

.

Then, AB =(20 1444 8

).

(i) Each entry of AB is the product of a row of A with a column ofB .ij th entry of AB = the product of i th row of A & j th column of B .

(ii) Each column of AB is the product of a matrix and a column.Column j of AB is A times column j of B .(iii) Each row of AB is the product of a row and a matrix.Row i of AB is row i of A times B .

Neela Nataraj Lecture 1

Page 65: lecture1_D3

Matrix Multiplication - 3 ways

Example

Let A=(2 −2 41 3 5

)and B =

2 −14 −26 3

.

Then, AB =(20 1444 8

).

(i) Each entry of AB is the product of a row of A with a column ofB .ij th entry of AB = the product of i th row of A & j th column of B .

(ii) Each column of AB is the product of a matrix and a column.Column j of AB is A times column j of B .(iii) Each row of AB is the product of a row and a matrix.Row i of AB is row i of A times B .

Neela Nataraj Lecture 1

Page 66: lecture1_D3

Matrix Multiplication - 3 ways

Example

Let A=(2 −2 41 3 5

)and B =

2 −14 −26 3

.

Then, AB =(20 1444 8

).

(i) Each entry of AB is the product of a row of A with a column ofB .

ij th entry of AB = the product of i th row of A & j th column of B .(ii) Each column of AB is the product of a matrix and a column.Column j of AB is A times column j of B .(iii) Each row of AB is the product of a row and a matrix.Row i of AB is row i of A times B .

Neela Nataraj Lecture 1

Page 67: lecture1_D3

Matrix Multiplication - 3 ways

Example

Let A=(2 −2 41 3 5

)and B =

2 −14 −26 3

.

Then, AB =(20 1444 8

).

(i) Each entry of AB is the product of a row of A with a column ofB .ij th entry of AB = the product of i th row of A & j th column of B .

(ii) Each column of AB is the product of a matrix and a column.Column j of AB is A times column j of B .(iii) Each row of AB is the product of a row and a matrix.Row i of AB is row i of A times B .

Neela Nataraj Lecture 1

Page 68: lecture1_D3

Matrix Multiplication - 3 ways

Example

Let A=(2 −2 41 3 5

)and B =

2 −14 −26 3

.

Then, AB =(20 1444 8

).

(i) Each entry of AB is the product of a row of A with a column ofB .ij th entry of AB = the product of i th row of A & j th column of B .

(ii) Each column of AB is the product of a matrix and a column.

Column j of AB is A times column j of B .(iii) Each row of AB is the product of a row and a matrix.Row i of AB is row i of A times B .

Neela Nataraj Lecture 1

Page 69: lecture1_D3

Matrix Multiplication - 3 ways

Example

Let A=(2 −2 41 3 5

)and B =

2 −14 −26 3

.

Then, AB =(20 1444 8

).

(i) Each entry of AB is the product of a row of A with a column ofB .ij th entry of AB = the product of i th row of A & j th column of B .

(ii) Each column of AB is the product of a matrix and a column.Column j of AB is A times column j of B .(iii) Each row of AB is the product of a row and a matrix.Row i of AB is row i of A times B .

Neela Nataraj Lecture 1

Page 70: lecture1_D3

Properties of Matrix Multiplication

Let A,B ,C be matrices;

B ,C of same size, such that AB isdefined. ThenA(B +C )=AB +AC . (Distributive Law)(kA)B = k(AB)=A(kB), where k is a scalar.Let A,B ,C be matrices such that AB and BC is defined.Then, A(BC )= (AB)C . (Associative Law)

AB 6=BA (Commutative law doesn’t hold true in general)AB = 0 doesn’t necessarily imply that A= 0 or B = 0 or BA= 0.AC =AD doesn’t necessarily imply that C =D.

Neela Nataraj Lecture 1

Page 71: lecture1_D3

Properties of Matrix Multiplication

Let A,B ,C be matrices; B ,C of same size, such that AB isdefined.

ThenA(B +C )=AB +AC . (Distributive Law)(kA)B = k(AB)=A(kB), where k is a scalar.Let A,B ,C be matrices such that AB and BC is defined.Then, A(BC )= (AB)C . (Associative Law)

AB 6=BA (Commutative law doesn’t hold true in general)AB = 0 doesn’t necessarily imply that A= 0 or B = 0 or BA= 0.AC =AD doesn’t necessarily imply that C =D.

Neela Nataraj Lecture 1

Page 72: lecture1_D3

Properties of Matrix Multiplication

Let A,B ,C be matrices; B ,C of same size, such that AB isdefined. ThenA(B +C )=AB +AC . (Distributive Law)

(kA)B = k(AB)=A(kB), where k is a scalar.Let A,B ,C be matrices such that AB and BC is defined.Then, A(BC )= (AB)C . (Associative Law)

AB 6=BA (Commutative law doesn’t hold true in general)AB = 0 doesn’t necessarily imply that A= 0 or B = 0 or BA= 0.AC =AD doesn’t necessarily imply that C =D.

Neela Nataraj Lecture 1

Page 73: lecture1_D3

Properties of Matrix Multiplication

Let A,B ,C be matrices; B ,C of same size, such that AB isdefined. ThenA(B +C )=AB +AC . (Distributive Law)(kA)B = k(AB)=A(kB), where k is a scalar.

Let A,B ,C be matrices such that AB and BC is defined.Then, A(BC )= (AB)C . (Associative Law)

AB 6=BA (Commutative law doesn’t hold true in general)AB = 0 doesn’t necessarily imply that A= 0 or B = 0 or BA= 0.AC =AD doesn’t necessarily imply that C =D.

Neela Nataraj Lecture 1

Page 74: lecture1_D3

Properties of Matrix Multiplication

Let A,B ,C be matrices; B ,C of same size, such that AB isdefined. ThenA(B +C )=AB +AC . (Distributive Law)(kA)B = k(AB)=A(kB), where k is a scalar.Let A,B ,C be matrices such that AB and BC is defined.

Then, A(BC )= (AB)C . (Associative Law)

AB 6=BA (Commutative law doesn’t hold true in general)AB = 0 doesn’t necessarily imply that A= 0 or B = 0 or BA= 0.AC =AD doesn’t necessarily imply that C =D.

Neela Nataraj Lecture 1

Page 75: lecture1_D3

Properties of Matrix Multiplication

Let A,B ,C be matrices; B ,C of same size, such that AB isdefined. ThenA(B +C )=AB +AC . (Distributive Law)(kA)B = k(AB)=A(kB), where k is a scalar.Let A,B ,C be matrices such that AB and BC is defined.Then, A(BC )= (AB)C . (Associative Law)

AB 6=BA (Commutative law doesn’t hold true in general)

AB = 0 doesn’t necessarily imply that A= 0 or B = 0 or BA= 0.AC =AD doesn’t necessarily imply that C =D.

Neela Nataraj Lecture 1

Page 76: lecture1_D3

Properties of Matrix Multiplication

Let A,B ,C be matrices; B ,C of same size, such that AB isdefined. ThenA(B +C )=AB +AC . (Distributive Law)(kA)B = k(AB)=A(kB), where k is a scalar.Let A,B ,C be matrices such that AB and BC is defined.Then, A(BC )= (AB)C . (Associative Law)

AB 6=BA (Commutative law doesn’t hold true in general)AB = 0 doesn’t necessarily imply that A= 0 or B = 0 or BA= 0.

AC =AD doesn’t necessarily imply that C =D.

Neela Nataraj Lecture 1

Page 77: lecture1_D3

Properties of Matrix Multiplication

Let A,B ,C be matrices; B ,C of same size, such that AB isdefined. ThenA(B +C )=AB +AC . (Distributive Law)(kA)B = k(AB)=A(kB), where k is a scalar.Let A,B ,C be matrices such that AB and BC is defined.Then, A(BC )= (AB)C . (Associative Law)

AB 6=BA (Commutative law doesn’t hold true in general)AB = 0 doesn’t necessarily imply that A= 0 or B = 0 or BA= 0.AC =AD doesn’t necessarily imply that C =D.

Neela Nataraj Lecture 1

Page 78: lecture1_D3

Transpose of a matrix

(Transpose of a matrix)

Let A= (aij)1≤i≤m,1≤j≤n be a m×n matrix. The n×m matrix(bji )1≤j≤n,1≤i≤m, where bji = aij is called the transpose of A and isdenoted by AT .

Taking transpose of a matrix amounts to changing rows intocolumns and vice versa.

Example

Let A=(1 2 −2−3 0 1

). Then AT =

1 −32 0−2 1

.

Neela Nataraj Lecture 1

Page 79: lecture1_D3

Transpose of a matrix

(Transpose of a matrix)

Let A= (aij)1≤i≤m,1≤j≤n be a m×n matrix. The n×m matrix(bji )1≤j≤n,1≤i≤m,

where bji = aij is called the transpose of A and isdenoted by AT .

Taking transpose of a matrix amounts to changing rows intocolumns and vice versa.

Example

Let A=(1 2 −2−3 0 1

). Then AT =

1 −32 0−2 1

.

Neela Nataraj Lecture 1

Page 80: lecture1_D3

Transpose of a matrix

(Transpose of a matrix)

Let A= (aij)1≤i≤m,1≤j≤n be a m×n matrix. The n×m matrix(bji )1≤j≤n,1≤i≤m, where bji = aij is called the transpose of A and isdenoted by AT .

Taking transpose of a matrix amounts to changing rows intocolumns and vice versa.

Example

Let A=(1 2 −2−3 0 1

). Then AT =

1 −32 0−2 1

.

Neela Nataraj Lecture 1

Page 81: lecture1_D3

Transpose of a matrix

(Transpose of a matrix)

Let A= (aij)1≤i≤m,1≤j≤n be a m×n matrix. The n×m matrix(bji )1≤j≤n,1≤i≤m, where bji = aij is called the transpose of A and isdenoted by AT .

Taking transpose of a matrix amounts to changing rows intocolumns and vice versa.

Example

Let A=(1 2 −2−3 0 1

). Then AT =

1 −32 0−2 1

.

Neela Nataraj Lecture 1

Page 82: lecture1_D3

Transpose of a matrix

(Transpose of a matrix)

Let A= (aij)1≤i≤m,1≤j≤n be a m×n matrix. The n×m matrix(bji )1≤j≤n,1≤i≤m, where bji = aij is called the transpose of A and isdenoted by AT .

Taking transpose of a matrix amounts to changing rows intocolumns and vice versa.

Example

Let A=(1 2 −2−3 0 1

).

Then AT =1 −32 0−2 1

.

Neela Nataraj Lecture 1

Page 83: lecture1_D3

Transpose of a matrix

(Transpose of a matrix)

Let A= (aij)1≤i≤m,1≤j≤n be a m×n matrix. The n×m matrix(bji )1≤j≤n,1≤i≤m, where bji = aij is called the transpose of A and isdenoted by AT .

Taking transpose of a matrix amounts to changing rows intocolumns and vice versa.

Example

Let A=(1 2 −2−3 0 1

). Then AT =

1 −32 0−2 1

.

Neela Nataraj Lecture 1

Page 84: lecture1_D3

Properties of transpose

1 (A+B)T =AT +BT (A and B are matrices of the same size).

2 (AT )T =A3 (kA)T = kAT (k is a scalar).4 (AB)T =BTAT (A and B are compatible for multiplication).

If A= AT , then A is called a symmetric matrix.Note: A symmetric matrix is always a square matrix.

Neela Nataraj Lecture 1

Page 85: lecture1_D3

Properties of transpose

1 (A+B)T =AT +BT (A and B are matrices of the same size).2 (AT )T =A

3 (kA)T = kAT (k is a scalar).4 (AB)T =BTAT (A and B are compatible for multiplication).

If A= AT , then A is called a symmetric matrix.Note: A symmetric matrix is always a square matrix.

Neela Nataraj Lecture 1

Page 86: lecture1_D3

Properties of transpose

1 (A+B)T =AT +BT (A and B are matrices of the same size).2 (AT )T =A3 (kA)T = kAT (k is a scalar).

4 (AB)T =BTAT (A and B are compatible for multiplication).

If A= AT , then A is called a symmetric matrix.Note: A symmetric matrix is always a square matrix.

Neela Nataraj Lecture 1

Page 87: lecture1_D3

Properties of transpose

1 (A+B)T =AT +BT (A and B are matrices of the same size).2 (AT )T =A3 (kA)T = kAT (k is a scalar).4 (AB)T =BTAT (A and B are compatible for multiplication).

If A= AT , then A is called a symmetric matrix.Note: A symmetric matrix is always a square matrix.

Neela Nataraj Lecture 1

Page 88: lecture1_D3

Properties of transpose

1 (A+B)T =AT +BT (A and B are matrices of the same size).2 (AT )T =A3 (kA)T = kAT (k is a scalar).4 (AB)T =BTAT (A and B are compatible for multiplication).

If A= AT , then A is called a

symmetric matrix.Note: A symmetric matrix is always a square matrix.

Neela Nataraj Lecture 1

Page 89: lecture1_D3

Properties of transpose

1 (A+B)T =AT +BT (A and B are matrices of the same size).2 (AT )T =A3 (kA)T = kAT (k is a scalar).4 (AB)T =BTAT (A and B are compatible for multiplication).

If A= AT , then A is called a symmetric matrix.

Note: A symmetric matrix is always a square matrix.

Neela Nataraj Lecture 1

Page 90: lecture1_D3

Properties of transpose

1 (A+B)T =AT +BT (A and B are matrices of the same size).2 (AT )T =A3 (kA)T = kAT (k is a scalar).4 (AB)T =BTAT (A and B are compatible for multiplication).

If A= AT , then A is called a symmetric matrix.Note: A symmetric matrix is always a square matrix.

Neela Nataraj Lecture 1

Page 91: lecture1_D3

Special Matrices

(Upper triangular Matrices)

Upper triangular matrices are square matrices that can havenon-zero entries only on and above the main diagonal,

whereas anyentry below the main diagonal must be zero.

Example

A=(1 30 2

), B =

1 4 20 3 20 0 6

, C =

4 2 2 00 3 −5 10 0 0 −60 0 0 5

are examples of

upper triangular matrices.

Neela Nataraj Lecture 1

Page 92: lecture1_D3

Special Matrices

(Upper triangular Matrices)

Upper triangular matrices are square matrices that can havenon-zero entries only on and above the main diagonal, whereas anyentry below the main diagonal must be zero.

Example

A=(1 30 2

), B =

1 4 20 3 20 0 6

, C =

4 2 2 00 3 −5 10 0 0 −60 0 0 5

are examples of

upper triangular matrices.

Neela Nataraj Lecture 1

Page 93: lecture1_D3

Special Matrices

(Upper triangular Matrices)

Upper triangular matrices are square matrices that can havenon-zero entries only on and above the main diagonal, whereas anyentry below the main diagonal must be zero.

Example

A=(1 30 2

),

B =1 4 20 3 20 0 6

, C =

4 2 2 00 3 −5 10 0 0 −60 0 0 5

are examples of

upper triangular matrices.

Neela Nataraj Lecture 1

Page 94: lecture1_D3

Special Matrices

(Upper triangular Matrices)

Upper triangular matrices are square matrices that can havenon-zero entries only on and above the main diagonal, whereas anyentry below the main diagonal must be zero.

Example

A=(1 30 2

), B =

1 4 20 3 20 0 6

,

C =

4 2 2 00 3 −5 10 0 0 −60 0 0 5

are examples of

upper triangular matrices.

Neela Nataraj Lecture 1

Page 95: lecture1_D3

Special Matrices

(Upper triangular Matrices)

Upper triangular matrices are square matrices that can havenon-zero entries only on and above the main diagonal, whereas anyentry below the main diagonal must be zero.

Example

A=(1 30 2

), B =

1 4 20 3 20 0 6

, C =

4 2 2 00 3 −5 10 0 0 −60 0 0 5

are examples of

upper triangular matrices.

Neela Nataraj Lecture 1

Page 96: lecture1_D3

Special Matrices (Contd..)

(Lower Triangular Matrices)

These are square matrices that can have non-zero entries only onand below the main diagonal.

Example

A=(5 02 3

), B =

2 0 08 −1 07 6 8

, C =

3 0 0 09 −3 0 01 0 2 01 9 3 6

are examples of

lower triangular matrices.

Neela Nataraj Lecture 1

Page 97: lecture1_D3

Special Matrices (Contd..)

(Lower Triangular Matrices)

These are square matrices that can have non-zero entries only onand below the main diagonal.

Example

A=(5 02 3

),

B =2 0 08 −1 07 6 8

, C =

3 0 0 09 −3 0 01 0 2 01 9 3 6

are examples of

lower triangular matrices.

Neela Nataraj Lecture 1

Page 98: lecture1_D3

Special Matrices (Contd..)

(Lower Triangular Matrices)

These are square matrices that can have non-zero entries only onand below the main diagonal.

Example

A=(5 02 3

), B =

2 0 08 −1 07 6 8

,

C =

3 0 0 09 −3 0 01 0 2 01 9 3 6

are examples of

lower triangular matrices.

Neela Nataraj Lecture 1

Page 99: lecture1_D3

Special Matrices (Contd..)

(Lower Triangular Matrices)

These are square matrices that can have non-zero entries only onand below the main diagonal.

Example

A=(5 02 3

), B =

2 0 08 −1 07 6 8

, C =

3 0 0 09 −3 0 01 0 2 01 9 3 6

are examples of

lower triangular matrices.

Neela Nataraj Lecture 1

Page 100: lecture1_D3

Special Matrices (Contd..)

(Lower Triangular Matrices)

These are square matrices that can have non-zero entries only onand below the main diagonal.

Example

A=(5 02 3

), B =

2 0 08 −1 07 6 8

, C =

3 0 0 09 −3 0 01 0 2 01 9 3 6

are examples of

lower triangular matrices.

Neela Nataraj Lecture 1

Page 101: lecture1_D3

Special Matrices (Contd..)

(Diagonal Matrices)

These are square matrices than can have non-zero entries only onthe main diagonal.

Any entry below or above the main diagonalmust be zero.

Example

A=2 0 00 −3 00 0 2

is an example of a diagonal matrix.

Neela Nataraj Lecture 1

Page 102: lecture1_D3

Special Matrices (Contd..)

(Diagonal Matrices)

These are square matrices than can have non-zero entries only onthe main diagonal. Any entry below or above the main diagonalmust be zero.

Example

A=2 0 00 −3 00 0 2

is an example of a diagonal matrix.

Neela Nataraj Lecture 1

Page 103: lecture1_D3

Special Matrices (Contd..)

(Diagonal Matrices)

These are square matrices than can have non-zero entries only onthe main diagonal. Any entry below or above the main diagonalmust be zero.

Example

A=2 0 00 −3 00 0 2

is an example of a diagonal matrix.

Neela Nataraj Lecture 1

Page 104: lecture1_D3

Special Matrices (Contd..)

(Diagonal Matrices)

These are square matrices than can have non-zero entries only onthe main diagonal. Any entry below or above the main diagonalmust be zero.

Example

A=2 0 00 −3 00 0 2

is an example of a diagonal matrix.

Neela Nataraj Lecture 1

Page 105: lecture1_D3

Special Matrices (Contd..)

(Scalar Matrices)

Scalar matrices are diagonal matrices with diagonal entries, allequal, say c.

Examplec 0 00 c 00 0 c

is an example of a scalar matrix.

It is called as scalar matrix because multiplication of any squarematrix A by a scalar matrix S of the same size has the same effectas multiplication by a scalar.That is, AS = SA= cA .

Neela Nataraj Lecture 1

Page 106: lecture1_D3

Special Matrices (Contd..)

(Scalar Matrices)

Scalar matrices are diagonal matrices with diagonal entries, allequal, say c.

Examplec 0 00 c 00 0 c

is an example of a scalar matrix.

It is called as scalar matrix because multiplication of any squarematrix A by a scalar matrix S of the same size has the same effectas multiplication by a scalar.That is, AS = SA= cA .

Neela Nataraj Lecture 1

Page 107: lecture1_D3

Special Matrices (Contd..)

(Scalar Matrices)

Scalar matrices are diagonal matrices with diagonal entries, allequal, say c.

Examplec 0 00 c 00 0 c

is an example of a scalar matrix.

It is called as scalar matrix because multiplication of any squarematrix A by a scalar matrix S of the same size has the same effectas multiplication by a scalar.

That is, AS = SA= cA .

Neela Nataraj Lecture 1

Page 108: lecture1_D3

Special Matrices (Contd..)

(Scalar Matrices)

Scalar matrices are diagonal matrices with diagonal entries, allequal, say c.

Examplec 0 00 c 00 0 c

is an example of a scalar matrix.

It is called as scalar matrix because multiplication of any squarematrix A by a scalar matrix S of the same size has the same effectas multiplication by a scalar.That is, AS = SA= cA .

Neela Nataraj Lecture 1

Page 109: lecture1_D3

Special Matrices (Contd..)

(Identity Matrix (Unit Matrix))

Identity matrices are scalar matrices whose entries in the maindiagonal are all equal to 1.

Example

I2 =(1 00 1

)is the identity matrix of size 2×2.

I3 =1 0 00 1 00 0 1

is the identity matrix of size 3×3.

Neela Nataraj Lecture 1

Page 110: lecture1_D3

Special Matrices (Contd..)

(Identity Matrix (Unit Matrix))

Identity matrices are scalar matrices whose entries in the maindiagonal are all equal to 1.

Example

I2 =(1 00 1

)is the identity matrix of size 2×2.

I3 =1 0 00 1 00 0 1

is the identity matrix of size 3×3.

Neela Nataraj Lecture 1

Page 111: lecture1_D3

Special Matrices (Contd..)

(Identity Matrix (Unit Matrix))

Identity matrices are scalar matrices whose entries in the maindiagonal are all equal to 1.

Example

I2 =(1 00 1

)is the identity matrix of size 2×2.

I3 =1 0 00 1 00 0 1

is the identity matrix of size 3×3.

Neela Nataraj Lecture 1

Page 112: lecture1_D3

Special Matrices (Contd..)

(Identity Matrix (Unit Matrix))

Identity matrices are scalar matrices whose entries in the maindiagonal are all equal to 1.

Example

I2 =(1 00 1

)is the identity matrix of size 2×2.

I3 =1 0 00 1 00 0 1

is the identity matrix of size 3×3.

Neela Nataraj Lecture 1

Page 113: lecture1_D3

Inverse of a Matrix

(Inverse of a matrix)

Let A be a square matrix of size n×n. The inverse of A (if itexists), is a matrix B (of the same size) such that AB =BA= In.

Remark : Inverse of a square matrix need not exist always.

TheoremIf the inverse of a matrix exists, it is unique.

Proof : If possible, let B and C be inverses of A.Then, AB =BA= I and AC =CA= I . Hence,B =BI =B(AC )= (BA)C = IC =C . ä• The inverse of A (if exists) is denoted by A−1.

Exercise : The transpose of an inverse is the inverse of thetranspose, i.e. (A−1)T = (AT )−1.EXERCISE : TUTORIAL SHEET 1.

Neela Nataraj Lecture 1

Page 114: lecture1_D3

Inverse of a Matrix

(Inverse of a matrix)

Let A be a square matrix of size n×n.

The inverse of A (if itexists), is a matrix B (of the same size) such that AB =BA= In.

Remark : Inverse of a square matrix need not exist always.

TheoremIf the inverse of a matrix exists, it is unique.

Proof : If possible, let B and C be inverses of A.Then, AB =BA= I and AC =CA= I . Hence,B =BI =B(AC )= (BA)C = IC =C . ä• The inverse of A (if exists) is denoted by A−1.

Exercise : The transpose of an inverse is the inverse of thetranspose, i.e. (A−1)T = (AT )−1.EXERCISE : TUTORIAL SHEET 1.

Neela Nataraj Lecture 1

Page 115: lecture1_D3

Inverse of a Matrix

(Inverse of a matrix)

Let A be a square matrix of size n×n. The inverse of A (if itexists), is a matrix B (of the same size) such that AB =BA= In.

Remark : Inverse of a square matrix need not exist always.

TheoremIf the inverse of a matrix exists, it is unique.

Proof : If possible, let B and C be inverses of A.Then, AB =BA= I and AC =CA= I . Hence,B =BI =B(AC )= (BA)C = IC =C . ä• The inverse of A (if exists) is denoted by A−1.

Exercise : The transpose of an inverse is the inverse of thetranspose, i.e. (A−1)T = (AT )−1.EXERCISE : TUTORIAL SHEET 1.

Neela Nataraj Lecture 1

Page 116: lecture1_D3

Inverse of a Matrix

(Inverse of a matrix)

Let A be a square matrix of size n×n. The inverse of A (if itexists), is a matrix B (of the same size) such that AB =BA= In.

Remark : Inverse of a square matrix need not exist always.

TheoremIf the inverse of a matrix exists, it is unique.

Proof : If possible, let B and C be inverses of A.Then, AB =BA= I and AC =CA= I . Hence,B =BI =B(AC )= (BA)C = IC =C . ä• The inverse of A (if exists) is denoted by A−1.

Exercise : The transpose of an inverse is the inverse of thetranspose, i.e. (A−1)T = (AT )−1.EXERCISE : TUTORIAL SHEET 1.

Neela Nataraj Lecture 1

Page 117: lecture1_D3

Inverse of a Matrix

(Inverse of a matrix)

Let A be a square matrix of size n×n. The inverse of A (if itexists), is a matrix B (of the same size) such that AB =BA= In.

Remark : Inverse of a square matrix need not exist always.

TheoremIf the inverse of a matrix exists, it is unique.

Proof : If possible, let B and C be inverses of A.Then, AB =BA= I and AC =CA= I . Hence,B =BI =B(AC )= (BA)C = IC =C . ä• The inverse of A (if exists) is denoted by A−1.

Exercise : The transpose of an inverse is the inverse of thetranspose, i.e. (A−1)T = (AT )−1.EXERCISE : TUTORIAL SHEET 1.

Neela Nataraj Lecture 1

Page 118: lecture1_D3

Inverse of a Matrix

(Inverse of a matrix)

Let A be a square matrix of size n×n. The inverse of A (if itexists), is a matrix B (of the same size) such that AB =BA= In.

Remark : Inverse of a square matrix need not exist always.

TheoremIf the inverse of a matrix exists, it is unique.

Proof : If possible, let B and C be inverses of A.

Then, AB =BA= I and AC =CA= I . Hence,B =BI =B(AC )= (BA)C = IC =C . ä• The inverse of A (if exists) is denoted by A−1.

Exercise : The transpose of an inverse is the inverse of thetranspose, i.e. (A−1)T = (AT )−1.EXERCISE : TUTORIAL SHEET 1.

Neela Nataraj Lecture 1

Page 119: lecture1_D3

Inverse of a Matrix

(Inverse of a matrix)

Let A be a square matrix of size n×n. The inverse of A (if itexists), is a matrix B (of the same size) such that AB =BA= In.

Remark : Inverse of a square matrix need not exist always.

TheoremIf the inverse of a matrix exists, it is unique.

Proof : If possible, let B and C be inverses of A.Then, AB =BA= I

and AC =CA= I . Hence,B =BI =B(AC )= (BA)C = IC =C . ä• The inverse of A (if exists) is denoted by A−1.

Exercise : The transpose of an inverse is the inverse of thetranspose, i.e. (A−1)T = (AT )−1.EXERCISE : TUTORIAL SHEET 1.

Neela Nataraj Lecture 1

Page 120: lecture1_D3

Inverse of a Matrix

(Inverse of a matrix)

Let A be a square matrix of size n×n. The inverse of A (if itexists), is a matrix B (of the same size) such that AB =BA= In.

Remark : Inverse of a square matrix need not exist always.

TheoremIf the inverse of a matrix exists, it is unique.

Proof : If possible, let B and C be inverses of A.Then, AB =BA= I and AC =CA= I .

Hence,B =BI =B(AC )= (BA)C = IC =C . ä• The inverse of A (if exists) is denoted by A−1.

Exercise : The transpose of an inverse is the inverse of thetranspose, i.e. (A−1)T = (AT )−1.EXERCISE : TUTORIAL SHEET 1.

Neela Nataraj Lecture 1

Page 121: lecture1_D3

Inverse of a Matrix

(Inverse of a matrix)

Let A be a square matrix of size n×n. The inverse of A (if itexists), is a matrix B (of the same size) such that AB =BA= In.

Remark : Inverse of a square matrix need not exist always.

TheoremIf the inverse of a matrix exists, it is unique.

Proof : If possible, let B and C be inverses of A.Then, AB =BA= I and AC =CA= I . Hence,B =BI

=B(AC )= (BA)C = IC =C . ä• The inverse of A (if exists) is denoted by A−1.

Exercise : The transpose of an inverse is the inverse of thetranspose, i.e. (A−1)T = (AT )−1.EXERCISE : TUTORIAL SHEET 1.

Neela Nataraj Lecture 1

Page 122: lecture1_D3

Inverse of a Matrix

(Inverse of a matrix)

Let A be a square matrix of size n×n. The inverse of A (if itexists), is a matrix B (of the same size) such that AB =BA= In.

Remark : Inverse of a square matrix need not exist always.

TheoremIf the inverse of a matrix exists, it is unique.

Proof : If possible, let B and C be inverses of A.Then, AB =BA= I and AC =CA= I . Hence,B =BI =B(AC )

= (BA)C = IC =C . ä• The inverse of A (if exists) is denoted by A−1.

Exercise : The transpose of an inverse is the inverse of thetranspose, i.e. (A−1)T = (AT )−1.EXERCISE : TUTORIAL SHEET 1.

Neela Nataraj Lecture 1

Page 123: lecture1_D3

Inverse of a Matrix

(Inverse of a matrix)

Let A be a square matrix of size n×n. The inverse of A (if itexists), is a matrix B (of the same size) such that AB =BA= In.

Remark : Inverse of a square matrix need not exist always.

TheoremIf the inverse of a matrix exists, it is unique.

Proof : If possible, let B and C be inverses of A.Then, AB =BA= I and AC =CA= I . Hence,B =BI =B(AC )= (BA)C

= IC =C . ä• The inverse of A (if exists) is denoted by A−1.

Exercise : The transpose of an inverse is the inverse of thetranspose, i.e. (A−1)T = (AT )−1.EXERCISE : TUTORIAL SHEET 1.

Neela Nataraj Lecture 1

Page 124: lecture1_D3

Inverse of a Matrix

(Inverse of a matrix)

Let A be a square matrix of size n×n. The inverse of A (if itexists), is a matrix B (of the same size) such that AB =BA= In.

Remark : Inverse of a square matrix need not exist always.

TheoremIf the inverse of a matrix exists, it is unique.

Proof : If possible, let B and C be inverses of A.Then, AB =BA= I and AC =CA= I . Hence,B =BI =B(AC )= (BA)C = IC

=C . ä• The inverse of A (if exists) is denoted by A−1.

Exercise : The transpose of an inverse is the inverse of thetranspose, i.e. (A−1)T = (AT )−1.EXERCISE : TUTORIAL SHEET 1.

Neela Nataraj Lecture 1

Page 125: lecture1_D3

Inverse of a Matrix

(Inverse of a matrix)

Let A be a square matrix of size n×n. The inverse of A (if itexists), is a matrix B (of the same size) such that AB =BA= In.

Remark : Inverse of a square matrix need not exist always.

TheoremIf the inverse of a matrix exists, it is unique.

Proof : If possible, let B and C be inverses of A.Then, AB =BA= I and AC =CA= I . Hence,B =BI =B(AC )= (BA)C = IC =C . ä

• The inverse of A (if exists) is denoted by A−1.

Exercise : The transpose of an inverse is the inverse of thetranspose, i.e. (A−1)T = (AT )−1.EXERCISE : TUTORIAL SHEET 1.

Neela Nataraj Lecture 1

Page 126: lecture1_D3

Inverse of a Matrix

(Inverse of a matrix)

Let A be a square matrix of size n×n. The inverse of A (if itexists), is a matrix B (of the same size) such that AB =BA= In.

Remark : Inverse of a square matrix need not exist always.

TheoremIf the inverse of a matrix exists, it is unique.

Proof : If possible, let B and C be inverses of A.Then, AB =BA= I and AC =CA= I . Hence,B =BI =B(AC )= (BA)C = IC =C . ä• The inverse of A (if exists)

is denoted by A−1.

Exercise : The transpose of an inverse is the inverse of thetranspose, i.e. (A−1)T = (AT )−1.EXERCISE : TUTORIAL SHEET 1.

Neela Nataraj Lecture 1

Page 127: lecture1_D3

Inverse of a Matrix

(Inverse of a matrix)

Let A be a square matrix of size n×n. The inverse of A (if itexists), is a matrix B (of the same size) such that AB =BA= In.

Remark : Inverse of a square matrix need not exist always.

TheoremIf the inverse of a matrix exists, it is unique.

Proof : If possible, let B and C be inverses of A.Then, AB =BA= I and AC =CA= I . Hence,B =BI =B(AC )= (BA)C = IC =C . ä• The inverse of A (if exists) is denoted by A−1.

Exercise : The transpose of an inverse is the inverse of thetranspose, i.e. (A−1)T = (AT )−1.EXERCISE : TUTORIAL SHEET 1.

Neela Nataraj Lecture 1

Page 128: lecture1_D3

Inverse of a Matrix

(Inverse of a matrix)

Let A be a square matrix of size n×n. The inverse of A (if itexists), is a matrix B (of the same size) such that AB =BA= In.

Remark : Inverse of a square matrix need not exist always.

TheoremIf the inverse of a matrix exists, it is unique.

Proof : If possible, let B and C be inverses of A.Then, AB =BA= I and AC =CA= I . Hence,B =BI =B(AC )= (BA)C = IC =C . ä• The inverse of A (if exists) is denoted by A−1.

Exercise : The transpose of an inverse is the inverse of thetranspose,

i.e. (A−1)T = (AT )−1.EXERCISE : TUTORIAL SHEET 1.

Neela Nataraj Lecture 1

Page 129: lecture1_D3

Inverse of a Matrix

(Inverse of a matrix)

Let A be a square matrix of size n×n. The inverse of A (if itexists), is a matrix B (of the same size) such that AB =BA= In.

Remark : Inverse of a square matrix need not exist always.

TheoremIf the inverse of a matrix exists, it is unique.

Proof : If possible, let B and C be inverses of A.Then, AB =BA= I and AC =CA= I . Hence,B =BI =B(AC )= (BA)C = IC =C . ä• The inverse of A (if exists) is denoted by A−1.

Exercise : The transpose of an inverse is the inverse of thetranspose, i.e. (A−1)T = (AT )−1.

EXERCISE : TUTORIAL SHEET 1.

Neela Nataraj Lecture 1

Page 130: lecture1_D3

Inverse of a Matrix

(Inverse of a matrix)

Let A be a square matrix of size n×n. The inverse of A (if itexists), is a matrix B (of the same size) such that AB =BA= In.

Remark : Inverse of a square matrix need not exist always.

TheoremIf the inverse of a matrix exists, it is unique.

Proof : If possible, let B and C be inverses of A.Then, AB =BA= I and AC =CA= I . Hence,B =BI =B(AC )= (BA)C = IC =C . ä• The inverse of A (if exists) is denoted by A−1.

Exercise : The transpose of an inverse is the inverse of thetranspose, i.e. (A−1)T = (AT )−1.EXERCISE : TUTORIAL SHEET 1.

Neela Nataraj Lecture 1

Page 131: lecture1_D3

System of linear equations

A system of m linear equations in n variables has the form

a11x1+a12x2+·· ·+a1nxn = b1

a21x1+a22x2+·· ·+a2nxn = b2...

......

......

... = ... (1)am1x1+am2x2+·· ·+amnxn = bm

Here, aij ’s, 1≤ i ≤m, 1≤ j ≤ n are the coefficients;x1,x2, · · · ,xn are the unknown variables,and [b1, b2, , · · ·bn]

t is the right hand side vector.

Neela Nataraj Lecture 1

Page 132: lecture1_D3

Matrix form

The linear system (1) can be written as AX =B , where

A=

a11 a12 . . . a1na21 a22 . . . a2n...

... . . ....

am1 am2 . . . amn

is the coefficient matrix;

B =

b1...bm

is the right hand side vector,

and X =

x1...xn

is a column vector of unknown variables.

Neela Nataraj Lecture 1

Page 133: lecture1_D3

Matrix form

The linear system (1) can be written as AX =B , where

A=

a11 a12 . . . a1na21 a22 . . . a2n...

... . . ....

am1 am2 . . . amn

is the coefficient matrix;

B =

b1...bm

is the right hand side vector,

and X =

x1...xn

is a column vector of unknown variables.

Neela Nataraj Lecture 1

Page 134: lecture1_D3

Matrix form

The linear system (1) can be written as AX =B , where

A=

a11 a12 . . . a1na21 a22 . . . a2n...

... . . ....

am1 am2 . . . amn

is the coefficient matrix;

B =

b1...bm

is the right hand side vector,

and X =

x1...xn

is a column vector of unknown variables.

Neela Nataraj Lecture 1

Page 135: lecture1_D3

Some definitions

(Homogeneous & Non-homogeneous Systems)

The linear system (1) is said to be homogeneous ifbi = 0 ∀i = 1,2, · · · ,m.

If at least one bi 6= 0 for 1≤ i ≤m, then the system is called anon-homogeneous system.

(Solution)

A solution is a set of numbers x1,x2, · · · ,xn that satisfies all the mequations of the system.

(Solution Vector)

A solution vector is a vector x whose components constitute asolution of the system.

Neela Nataraj Lecture 1

Page 136: lecture1_D3

Some definitions

(Homogeneous & Non-homogeneous Systems)

The linear system (1) is said to be homogeneous ifbi = 0 ∀i = 1,2, · · · ,m.If at least one bi 6= 0 for 1≤ i ≤m, then the system is called anon-homogeneous system.

(Solution)

A solution is a set of numbers x1,x2, · · · ,xn that satisfies all the mequations of the system.

(Solution Vector)

A solution vector is a vector x whose components constitute asolution of the system.

Neela Nataraj Lecture 1

Page 137: lecture1_D3

Some definitions

(Homogeneous & Non-homogeneous Systems)

The linear system (1) is said to be homogeneous ifbi = 0 ∀i = 1,2, · · · ,m.If at least one bi 6= 0 for 1≤ i ≤m, then the system is called anon-homogeneous system.

(Solution)

A solution is a set of numbers x1,x2, · · · ,xn that satisfies all the mequations of the system.

(Solution Vector)

A solution vector is a vector x whose components constitute asolution of the system.

Neela Nataraj Lecture 1

Page 138: lecture1_D3

Some definitions

(Homogeneous & Non-homogeneous Systems)

The linear system (1) is said to be homogeneous ifbi = 0 ∀i = 1,2, · · · ,m.If at least one bi 6= 0 for 1≤ i ≤m, then the system is called anon-homogeneous system.

(Solution)

A solution is a set of numbers x1,x2, · · · ,xn that satisfies all the mequations of the system.

(Solution Vector)

A solution vector is a vector x whose components constitute asolution of the system.

Neela Nataraj Lecture 1

Page 139: lecture1_D3

Some definitions

(Homogeneous & Non-homogeneous Systems)

The linear system (1) is said to be homogeneous ifbi = 0 ∀i = 1,2, · · · ,m.If at least one bi 6= 0 for 1≤ i ≤m, then the system is called anon-homogeneous system.

(Solution)

A solution is a set of numbers x1,x2, · · · ,xn that satisfies all the mequations of the system.

(Solution Vector)

A solution vector is a vector x whose components constitute asolution of the system.

Neela Nataraj Lecture 1

Page 140: lecture1_D3

System of linear equations

A homogeneous system of m linear equations in n variables :

a11x1+a12x2+·· ·+a1nxn = 0a21x1+a22x2+·· ·+a2nxn = 0

......

......

...... = 0

am1x1+am2x2+·· ·+amnxn = 0

has at least the trivial solution x1 = 0,x2 = 0, · · ·xn = 0.Any other solution, if it exists, is called a non-zero or non-trivialsolution.

Neela Nataraj Lecture 1

Page 141: lecture1_D3

System of linear equations

A homogeneous system of m linear equations in n variables :

a11x1+a12x2+·· ·+a1nxn = 0a21x1+a22x2+·· ·+a2nxn = 0

......

......

...... = 0

am1x1+am2x2+·· ·+amnxn = 0

has at least the trivial solution x1 = 0,x2 = 0, · · ·xn = 0.

Any other solution, if it exists, is called a non-zero or non-trivialsolution.

Neela Nataraj Lecture 1

Page 142: lecture1_D3

System of linear equations

A homogeneous system of m linear equations in n variables :

a11x1+a12x2+·· ·+a1nxn = 0a21x1+a22x2+·· ·+a2nxn = 0

......

......

...... = 0

am1x1+am2x2+·· ·+amnxn = 0

has at least the trivial solution x1 = 0,x2 = 0, · · ·xn = 0.Any other solution, if it exists, is called a non-zero or non-trivialsolution.

Neela Nataraj Lecture 1

Page 143: lecture1_D3

Consistent & Inconsistent Systems

The linear system (1) may haveNO SOLUTION,

PRECISELY ONE SOLUTIONor INFINITELY MANY SOLUTIONS.

A linear system isCONSISTENT, if it has at least one solution;INCONSISTENT if it has no solution.

How to find the solution(s) of a CONSISTENT system?

Neela Nataraj Lecture 1

Page 144: lecture1_D3

Consistent & Inconsistent Systems

The linear system (1) may haveNO SOLUTION,PRECISELY ONE SOLUTION

or INFINITELY MANY SOLUTIONS.

A linear system isCONSISTENT, if it has at least one solution;INCONSISTENT if it has no solution.

How to find the solution(s) of a CONSISTENT system?

Neela Nataraj Lecture 1

Page 145: lecture1_D3

Consistent & Inconsistent Systems

The linear system (1) may haveNO SOLUTION,PRECISELY ONE SOLUTIONor INFINITELY MANY SOLUTIONS.

A linear system isCONSISTENT, if it has at least one solution;INCONSISTENT if it has no solution.

How to find the solution(s) of a CONSISTENT system?

Neela Nataraj Lecture 1

Page 146: lecture1_D3

Consistent & Inconsistent Systems

The linear system (1) may haveNO SOLUTION,PRECISELY ONE SOLUTIONor INFINITELY MANY SOLUTIONS.

A linear system isCONSISTENT, if it has at least one solution;

INCONSISTENT if it has no solution.How to find the solution(s) of a CONSISTENT system?

Neela Nataraj Lecture 1

Page 147: lecture1_D3

Consistent & Inconsistent Systems

The linear system (1) may haveNO SOLUTION,PRECISELY ONE SOLUTIONor INFINITELY MANY SOLUTIONS.

A linear system isCONSISTENT, if it has at least one solution;INCONSISTENT if it has no solution.

How to find the solution(s) of a CONSISTENT system?

Neela Nataraj Lecture 1

Page 148: lecture1_D3

Consistent & Inconsistent Systems

The linear system (1) may haveNO SOLUTION,PRECISELY ONE SOLUTIONor INFINITELY MANY SOLUTIONS.

A linear system isCONSISTENT, if it has at least one solution;INCONSISTENT if it has no solution.

How to find the solution(s) of a CONSISTENT system?

Neela Nataraj Lecture 1

Page 149: lecture1_D3

Gauss Elimination

Gauss Elimination is a standard method for solving linear systemsof the form AX =B , where

A=

a11 a12 . . . a1na21 a22 . . . a2n...

... . . ....

am1 am2 . . . amn

is the coefficient matrix;

B =

b1...bm

is the right hand side vector,

and X =

x1...xn

is a column vector of unknown variables.

Neela Nataraj Lecture 1

Page 150: lecture1_D3

Gauss Elimination

Gauss Elimination is a standard method for solving linear systemsof the form AX =B , where

A=

a11 a12 . . . a1na21 a22 . . . a2n...

... . . ....

am1 am2 . . . amn

is the coefficient matrix;

B =

b1...bm

is the right hand side vector,

and X =

x1...xn

is a column vector of unknown variables.

Neela Nataraj Lecture 1

Page 151: lecture1_D3

Gauss Elimination

Gauss Elimination is a standard method for solving linear systemsof the form AX =B , where

A=

a11 a12 . . . a1na21 a22 . . . a2n...

... . . ....

am1 am2 . . . amn

is the coefficient matrix;

B =

b1...bm

is the right hand side vector,

and X =

x1...xn

is a column vector of unknown variables.

Neela Nataraj Lecture 1

Page 152: lecture1_D3

Gauss Elimination

Gauss Elimination is a standard method for solving linear systemsof the form AX =B , where

A=

a11 a12 . . . a1na21 a22 . . . a2n...

... . . ....

am1 am2 . . . amn

is the coefficient matrix;

B =

b1...bm

is the right hand side vector,

and X =

x1...xn

is a column vector of unknown variables.

Neela Nataraj Lecture 1

Page 153: lecture1_D3

Basic Strategy

Replace the system of linear equations with an equivalent system

(one with the same solution set) which is easier to solve.

Neela Nataraj Lecture 1

Page 154: lecture1_D3

Basic Strategy

Replace the system of linear equations with an equivalent system(one with the same solution set) which is easier to solve.

Neela Nataraj Lecture 1

Page 155: lecture1_D3

Basic Strategy

Replace the system of linear equations with an equivalent system(one with the same solution set) which is easier to solve.

Neela Nataraj Lecture 1

Page 156: lecture1_D3

How to obtain equivalent systems?

We state the elementary row operations for matrices andequations which yield row-equivalent linear systems.

Elementary Row Operations for Matrices Elementary Row Operations for Equations1 Interchange two rows Interchange two equations

(Ri ↔Rj ) interchange ith and jth rows2 Addition of a constant multiple of Addition of a constant multiple of

one row to another row one equation to another equationRi →Ri +cRj (j 6= i)

3 Multiplication of a row by Multiplication of an equation bya non-zero constant c ( 6= 0) a non-zero constant c (6= 0)Ri → cRi

Definition (Row-equivalent systems)

A linear system S1 is row-equivalent to a linear system S2 (S1 ∼ S2),if S2 can be obtained from S1 by finitely many row operations.

Neela Nataraj Lecture 1

Page 157: lecture1_D3

How to obtain equivalent systems?

We state the elementary row operations for matrices andequations which yield row-equivalent linear systems.

Elementary Row Operations for Matrices Elementary Row Operations for Equations1 Interchange two rows Interchange two equations

(Ri ↔Rj ) interchange ith and jth rows2 Addition of a constant multiple of Addition of a constant multiple of

one row to another row one equation to another equationRi →Ri +cRj (j 6= i)

3 Multiplication of a row by Multiplication of an equation bya non-zero constant c ( 6= 0) a non-zero constant c (6= 0)Ri → cRi

Definition (Row-equivalent systems)

A linear system S1 is row-equivalent to a linear system S2 (S1 ∼ S2),if S2 can be obtained from S1 by finitely many row operations.

Neela Nataraj Lecture 1

Page 158: lecture1_D3

How to obtain equivalent systems?

We state the elementary row operations for matrices andequations which yield row-equivalent linear systems.

Elementary Row Operations for Matrices Elementary Row Operations for Equations1 Interchange two rows Interchange two equations

(Ri ↔Rj ) interchange ith and jth rows

2 Addition of a constant multiple of Addition of a constant multiple ofone row to another row one equation to another equationRi →Ri +cRj (j 6= i)

3 Multiplication of a row by Multiplication of an equation bya non-zero constant c ( 6= 0) a non-zero constant c (6= 0)Ri → cRi

Definition (Row-equivalent systems)

A linear system S1 is row-equivalent to a linear system S2 (S1 ∼ S2),if S2 can be obtained from S1 by finitely many row operations.

Neela Nataraj Lecture 1

Page 159: lecture1_D3

How to obtain equivalent systems?

We state the elementary row operations for matrices andequations which yield row-equivalent linear systems.

Elementary Row Operations for Matrices Elementary Row Operations for Equations1 Interchange two rows Interchange two equations

(Ri ↔Rj ) interchange ith and jth rows2 Addition of a constant multiple of Addition of a constant multiple of

one row to another row one equation to another equation

Ri →Ri +cRj (j 6= i)3 Multiplication of a row by Multiplication of an equation by

a non-zero constant c ( 6= 0) a non-zero constant c (6= 0)Ri → cRi

Definition (Row-equivalent systems)

A linear system S1 is row-equivalent to a linear system S2 (S1 ∼ S2),if S2 can be obtained from S1 by finitely many row operations.

Neela Nataraj Lecture 1

Page 160: lecture1_D3

How to obtain equivalent systems?

We state the elementary row operations for matrices andequations which yield row-equivalent linear systems.

Elementary Row Operations for Matrices Elementary Row Operations for Equations1 Interchange two rows Interchange two equations

(Ri ↔Rj ) interchange ith and jth rows2 Addition of a constant multiple of Addition of a constant multiple of

one row to another row one equation to another equationRi →Ri +cRj (j 6= i)

3 Multiplication of a row by Multiplication of an equation bya non-zero constant c ( 6= 0) a non-zero constant c (6= 0)Ri → cRi

Definition (Row-equivalent systems)

A linear system S1 is row-equivalent to a linear system S2 (S1 ∼ S2),if S2 can be obtained from S1 by finitely many row operations.

Neela Nataraj Lecture 1

Page 161: lecture1_D3

How to obtain equivalent systems?

We state the elementary row operations for matrices andequations which yield row-equivalent linear systems.

Elementary Row Operations for Matrices Elementary Row Operations for Equations1 Interchange two rows Interchange two equations

(Ri ↔Rj ) interchange ith and jth rows2 Addition of a constant multiple of Addition of a constant multiple of

one row to another row one equation to another equationRi →Ri +cRj (j 6= i)

3 Multiplication of a row by Multiplication of an equation bya non-zero constant c ( 6= 0) a non-zero constant c (6= 0)

Ri → cRi

Definition (Row-equivalent systems)

A linear system S1 is row-equivalent to a linear system S2 (S1 ∼ S2),if S2 can be obtained from S1 by finitely many row operations.

Neela Nataraj Lecture 1

Page 162: lecture1_D3

How to obtain equivalent systems?

We state the elementary row operations for matrices andequations which yield row-equivalent linear systems.

Elementary Row Operations for Matrices Elementary Row Operations for Equations1 Interchange two rows Interchange two equations

(Ri ↔Rj ) interchange ith and jth rows2 Addition of a constant multiple of Addition of a constant multiple of

one row to another row one equation to another equationRi →Ri +cRj (j 6= i)

3 Multiplication of a row by Multiplication of an equation bya non-zero constant c ( 6= 0) a non-zero constant c (6= 0)Ri → cRi

Definition (Row-equivalent systems)

A linear system S1 is row-equivalent to a linear system S2 (S1 ∼ S2),if S2 can be obtained from S1 by finitely many row operations.

Neela Nataraj Lecture 1

Page 163: lecture1_D3

How to obtain equivalent systems?

We state the elementary row operations for matrices andequations which yield row-equivalent linear systems.

Elementary Row Operations for Matrices Elementary Row Operations for Equations1 Interchange two rows Interchange two equations

(Ri ↔Rj ) interchange ith and jth rows2 Addition of a constant multiple of Addition of a constant multiple of

one row to another row one equation to another equationRi →Ri +cRj (j 6= i)

3 Multiplication of a row by Multiplication of an equation bya non-zero constant c ( 6= 0) a non-zero constant c (6= 0)Ri → cRi

Definition (Row-equivalent systems)

A linear system S1 is row-equivalent to a linear system S2 (S1 ∼ S2),if S2 can be obtained from S1 by finitely many row operations.

Neela Nataraj Lecture 1

Page 164: lecture1_D3

How to obtain equivalent systems?

We state the elementary row operations for matrices andequations which yield row-equivalent linear systems.

Elementary Row Operations for Matrices Elementary Row Operations for Equations1 Interchange two rows Interchange two equations

(Ri ↔Rj ) interchange ith and jth rows2 Addition of a constant multiple of Addition of a constant multiple of

one row to another row one equation to another equationRi →Ri +cRj (j 6= i)

3 Multiplication of a row by Multiplication of an equation bya non-zero constant c ( 6= 0) a non-zero constant c (6= 0)Ri → cRi

Definition (Row-equivalent systems)

A linear system S1 is row-equivalent to a linear system S2 (S1 ∼ S2),if S2 can be obtained from S1 by finitely many row operations.

Neela Nataraj Lecture 1

Page 165: lecture1_D3

Augmented matrix

We illustrate the Gauss-elimination method for some examplesbefore formalizing the method.

Since the linear system is completely determined by its augmentedmatrix, defined below, the Gauss elimination process can be downby merely considering the matrices.The matrix A obtained by augmenting A by column b, written as

A=

a11 a12 . . . a1n b1a21 a22 . . . a2n b2...

... . . ....

...am1 am2 . . . amn bm

, or

A=

a11 a12 . . . a1n... b1

a21 a22 . . . a2n... b2

...... . . .

......

...

am1 am2 . . . amn... bm

is called the augmented

matrix. We will work out the examples in the next lecture.

Neela Nataraj Lecture 1

Page 166: lecture1_D3

Augmented matrix

We illustrate the Gauss-elimination method for some examplesbefore formalizing the method.Since the linear system is completely determined by its augmentedmatrix, defined below, the Gauss elimination process can be downby merely considering the matrices.

The matrix A obtained by augmenting A by column b, written as

A=

a11 a12 . . . a1n b1a21 a22 . . . a2n b2...

... . . ....

...am1 am2 . . . amn bm

, or

A=

a11 a12 . . . a1n... b1

a21 a22 . . . a2n... b2

...... . . .

......

...

am1 am2 . . . amn... bm

is called the augmented

matrix. We will work out the examples in the next lecture.

Neela Nataraj Lecture 1

Page 167: lecture1_D3

Augmented matrix

We illustrate the Gauss-elimination method for some examplesbefore formalizing the method.Since the linear system is completely determined by its augmentedmatrix, defined below, the Gauss elimination process can be downby merely considering the matrices.The matrix A obtained by augmenting A by column b, written as

A=

a11 a12 . . . a1n b1a21 a22 . . . a2n b2...

... . . ....

...am1 am2 . . . amn bm

, or

A=

a11 a12 . . . a1n... b1

a21 a22 . . . a2n... b2

...... . . .

......

...

am1 am2 . . . amn... bm

is called the augmented

matrix. We will work out the examples in the next lecture.

Neela Nataraj Lecture 1

Page 168: lecture1_D3

Augmented matrix

We illustrate the Gauss-elimination method for some examplesbefore formalizing the method.Since the linear system is completely determined by its augmentedmatrix, defined below, the Gauss elimination process can be downby merely considering the matrices.The matrix A obtained by augmenting A by column b, written as

A=

a11 a12 . . . a1n b1a21 a22 . . . a2n b2...

... . . ....

...am1 am2 . . . amn bm

,

or

A=

a11 a12 . . . a1n... b1

a21 a22 . . . a2n... b2

...... . . .

......

...

am1 am2 . . . amn... bm

is called the augmented

matrix. We will work out the examples in the next lecture.

Neela Nataraj Lecture 1

Page 169: lecture1_D3

Augmented matrix

We illustrate the Gauss-elimination method for some examplesbefore formalizing the method.Since the linear system is completely determined by its augmentedmatrix, defined below, the Gauss elimination process can be downby merely considering the matrices.The matrix A obtained by augmenting A by column b, written as

A=

a11 a12 . . . a1n b1a21 a22 . . . a2n b2...

... . . ....

...am1 am2 . . . amn bm

, or

A=

a11 a12 . . . a1n... b1

a21 a22 . . . a2n... b2

...... . . .

......

...

am1 am2 . . . amn... bm

is called the augmented

matrix. We will work out the examples in the next lecture.

Neela Nataraj Lecture 1

Page 170: lecture1_D3

Augmented matrix

We illustrate the Gauss-elimination method for some examplesbefore formalizing the method.Since the linear system is completely determined by its augmentedmatrix, defined below, the Gauss elimination process can be downby merely considering the matrices.The matrix A obtained by augmenting A by column b, written as

A=

a11 a12 . . . a1n b1a21 a22 . . . a2n b2...

... . . ....

...am1 am2 . . . amn bm

, or

A=

a11 a12 . . . a1n... b1

a21 a22 . . . a2n... b2

...... . . .

......

...

am1 am2 . . . amn... bm

is called the augmented

matrix. We will work out the examples in the next lecture.Neela Nataraj Lecture 1