Challenge - 5 Problems
Matrix Inverse Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ Predict Output
intermediate2:00remaining
Output of matrix inverse multiplication
What is the output of this MATLAB code snippet?
MATLAB
A = [2 1; 5 3]; B = inv(A) * A;
Attempts:
2 left
💡 Hint
Multiplying a matrix by its inverse results in the identity matrix.
✗ Incorrect
The inverse of matrix A multiplied by A returns the identity matrix of the same size.
❓ Predict Output
intermediate2:00remaining
Result of inverse on singular matrix
What happens when you run this MATLAB code?
MATLAB
A = [1 2; 2 4]; B = inv(A);
Attempts:
2 left
💡 Hint
Check if the matrix has linearly dependent rows.
✗ Incorrect
Matrix A is singular because its rows are linearly dependent, so inv(A) throws an error.
🔧 Debug
advanced2:00remaining
Identify the error in matrix inverse calculation
What error does this MATLAB code produce?
MATLAB
A = [1 2 3; 4 5 6]; B = inv(A);
Attempts:
2 left
💡 Hint
Check the shape of the matrix before inversion.
✗ Incorrect
The inv function requires a square matrix; A is 2x3, so MATLAB throws an error.
❓ Predict Output
advanced2:00remaining
Inverse of a diagonal matrix
What is the output of this MATLAB code?
MATLAB
D = diag([4 5 6]); E = inv(D);
Attempts:
2 left
💡 Hint
The inverse of a diagonal matrix is a diagonal matrix with reciprocal elements.
✗ Incorrect
The inverse of a diagonal matrix has diagonal elements that are the reciprocals of the original.
🧠 Conceptual
expert2:00remaining
Properties of matrix inverse and multiplication
Given a nonsingular matrix A, which statement is TRUE?
Attempts:
2 left
💡 Hint
Recall the order of multiplication when inverting a product.
✗ Incorrect
The inverse of a product is the product of the inverses in reverse order: inv(A*B) = inv(B)*inv(A).