Enter a problem...
Linear Algebra Examples
2x+y=-22x+y=−2 , x+2y=2x+2y=2
Step 1
Find the AX=BAX=B from the system of equations.
[2112]⋅[xy]=[-22][2112]⋅[xy]=[−22]
Step 2
Step 2.1
The inverse of a 2×22×2 matrix can be found using the formula 1ad-bc[d-b-ca]1ad−bc[d−b−ca] where ad-bcad−bc is the determinant.
Step 2.2
Find the determinant.
Step 2.2.1
The determinant of a 2×22×2 matrix can be found using the formula |abcd|=ad-cb∣∣∣abcd∣∣∣=ad−cb.
2⋅2-1⋅12⋅2−1⋅1
Step 2.2.2
Simplify the determinant.
Step 2.2.2.1
Simplify each term.
Step 2.2.2.1.1
Multiply 22 by 22.
4-1⋅14−1⋅1
Step 2.2.2.1.2
Multiply -1−1 by 11.
4-14−1
4-14−1
Step 2.2.2.2
Subtract 11 from 44.
33
33
33
Step 2.3
Since the determinant is non-zero, the inverse exists.
Step 2.4
Substitute the known values into the formula for the inverse.
13[2-1-12]13[2−1−12]
Step 2.5
Multiply 1313 by each element of the matrix.
[13⋅213⋅-113⋅-113⋅2][13⋅213⋅−113⋅−113⋅2]
Step 2.6
Simplify each element in the matrix.
Step 2.6.1
Combine 1313 and 22.
[2313⋅-113⋅-113⋅2][2313⋅−113⋅−113⋅2]
Step 2.6.2
Combine 1313 and -1−1.
[23-1313⋅-113⋅2][23−1313⋅−113⋅2]
Step 2.6.3
Move the negative in front of the fraction.
[23-1313⋅-113⋅2][23−1313⋅−113⋅2]
Step 2.6.4
Combine 1313 and -1−1.
[23-13-1313⋅2][23−13−1313⋅2]
Step 2.6.5
Move the negative in front of the fraction.
[23-13-1313⋅2][23−13−1313⋅2]
Step 2.6.6
Combine 1313 and 22.
[23-13-1323][23−13−1323]
[23-13-1323][23−13−1323]
[23-13-1323][23−13−1323]
Step 3
Left multiply both sides of the matrix equation by the inverse matrix.
([23-13-1323]⋅[2112])⋅[xy]=[23-13-1323]⋅[-22]([23−13−1323]⋅[2112])⋅[xy]=[23−13−1323]⋅[−22]
Step 4
Any matrix multiplied by its inverse is equal to 1 all the time. A⋅A-1=1.
[xy]=[23-13-1323]⋅[-22]
Step 5
Step 5.1
Two matrices can be multiplied if and only if the number of columns in the first matrix is equal to the number of rows in the second matrix. In this case, the first matrix is 2×2 and the second matrix is 2×1.
Step 5.2
Multiply each row in the first matrix by each column in the second matrix.
[23⋅-2-13⋅2-13⋅-2+23⋅2]
Step 5.3
Simplify each element of the matrix by multiplying out all the expressions.
[-22]
[-22]
Step 6
Simplify the left and right side.
[xy]=[-22]
Step 7
Find the solution.
x=-2
y=2