So I'm given a solver that can solve for $x$ in the matrix equation $\underset{=}{A} \underline{x} = \underline{b}$ where $b$ can be anything we specify. (NB: A is an NxN matrix).
I now want to find the inverse of matrix A, $\underset{=}{A}^{-1}$, using the solver. How would i go about doing this?
My first two ideas were this, but I'm not sure if they are relevant:
Find the LU decomposition somehow using this solver, and then finding the inverse of U and L should be simple because of their shape and thus the inverse of A should be easy to calculate through the product of the inverses of U and L.
Can i use the fact that $A = R\Lambda R^{-1}$ and subsequently find the eigenvectors and eigenvalues somehow using the equation above?
Thank you very much :)