Challenge: Matrix Inversion

Solve the challenge on matrix inversion in R.

We'll cover the following


One property of the inverse of a matrix is that when it is multiplied by the original matrix, it returns an identity matrix.

AA1=IA A^{-1} = I

Your challenge is to complete the function below so that when input_matrix is multiplied by its inverse, it returns an identity matrix. Use the code editor to implement your solution.

Get hands-on with 1200+ tech skills courses.