1 a Prove without MATLAB that AB1 B1A1 using the associativ
1. a. Prove (without MATLAB) that (AB)-1 = B-1A-1 using the associative law of matrix multiplication. Hint: multiply the right-hand side of the equation by the inverse of the left-hand side of the equation.
b. Validate the above identity numerically (with MATLAB) with your choice of any two suitable 5-by-5 matrices using the following steps:
1.b.1) verify that your chosen matrices are invertible by showing all their columns are linearly independent vectors.
1.b.2) evaluate both sides of the equation above with your matrices.
1.b.3) find the sum of squared difference (error) between results of both sides of the equation to ensure accuracy.
1.b.4) produce the 5-by-5 identity matrix by multiplying AB by its inverse.
Solution
Input Arguments
collapse all
A — Left Array
scalar | vector | matrix
Left Array, specified as a scalar, vector, or matrix. For nonscalar inputs, the number of columns in A must be equal to the number of rows in B.
Data Types: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64 | logical | char | duration | calendarDuration
Complex Number Support: Yes
B — Right Array
scalar | vector | matrix
Right Array, specified as a scalar, vector, or matrix. For nonscalar inputs, the number of columns in A must be equal to the number of rows in B.
Data Types: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64 | logical | char | duration | calendarDuration
Complex Number Support: Yes
Output Arguments
collapse all
C — Product Array
scalar | vector | matrix
Product Array, returned as a scalar, vector, or matrix. Array C has the same number of rows as input A and the same number of columns as input B. For example, if A is an m-by-0 empty matrix and B is a 0-by-n empty matrix, then A*B is an m-by-n matrix of zeros.
More About
