Chat with our AI personalities
by elimination,substitution or through the matrix method.
It depends on your level of expertise. The simplest method is to invert the matrix of coefficients.
Using the method derived from the usual definition using the minors, the complexity is O(n!). But it seems that one could just do the Gaussian elimination on the matrix, turning the matrix into a triangular one while keeping track of any neccessary row swaps, and then just multiply the values of the diagona. This method would get the complexity of O(n*n).
Cramer's Rule is a method for using Matrix manipulation to find solutions to sets of Linear equations.
One way to solve this system of equations is by using matrices. Form an augmented matrix in which the first 2x2 matrix is the coefficient matrix and the 2x1 matrix on its right is the answer. Now apply Gaussian Elimination and back-substitution. Using this method gives x=5 and y=1.