Examples
2x-5y=32x−5y=3 , x+4>2yx+4>2y
Step 1
Introduce slack variables uu and vv to replace the inequalities with equations.
x+4-Z=2yx+4−Z=2y
2x-5y-3=02x−5y−3=0
Step 2
Subtract 44 from both sides of the equation.
x-Z=2y-4,2x-5y-3=0x−Z=2y−4,2x−5y−3=0
Step 3
Subtract 2y2y from both sides of the equation.
x-Z-2y=-4,2x-5y-3=0x−Z−2y=−4,2x−5y−3=0
Step 4
Add 33 to both sides of the equation.
x-Z-2y=-4,2x-5y=3x−Z−2y=−4,2x−5y=3
Step 5
Write the system of equations in matrix form.
[1-20-42-503][1−20−42−503]
Step 6
Step 6.1
Perform the row operation R2=R2-2R1R2=R2−2R1 to make the entry at 2,12,1 a 00.
Step 6.1.1
Perform the row operation R2=R2-2R1R2=R2−2R1 to make the entry at 2,12,1 a 00.
[1-20-42-2⋅1-5-2⋅-20-2⋅03-2⋅-4][1−20−42−2⋅1−5−2⋅−20−2⋅03−2⋅−4]
Step 6.1.2
Simplify R2R2.
[1-20-40-1011][1−20−40−1011]
[1-20-40-1011][1−20−40−1011]
Step 6.2
Multiply each element of R2R2 by -1−1 to make the entry at 2,22,2 a 11.
Step 6.2.1
Multiply each element of R2R2 by -1−1 to make the entry at 2,22,2 a 11.
[1-20-4-0--1-0-1⋅11][1−20−4−0−−1−0−1⋅11]
Step 6.2.2
Simplify R2R2.
[1-20-4010-11][1−20−4010−11]
[1-20-4010-11][1−20−4010−11]
Step 6.3
Perform the row operation R1=R1+2R2R1=R1+2R2 to make the entry at 1,21,2 a 00.
Step 6.3.1
Perform the row operation R1=R1+2R2R1=R1+2R2 to make the entry at 1,21,2 a 00.
[1+2⋅0-2+2⋅10+2⋅0-4+2⋅-11010-11][1+2⋅0−2+2⋅10+2⋅0−4+2⋅−11010−11]
Step 6.3.2
Simplify R1R1.
[100-26010-11][100−26010−11]
[100-26010-11][100−26010−11]
[100-26010-11][100−26010−11]
Step 7
Use the result matrix to declare the final solutions to the system of equations.
x=0x=0
y=0y=0