(NOTE: Eliminate one unknown variable either x or y from both the equations.)
(a) General Equation Problem
a1x + b1y + c1 = 0.................(i)
a2x + b2y + c2 = 0................(ii)
Now, eliminate y from both the equations (i) and (ii)
Multiply eq-(i) by b2 and eq-(ii) by b1
a1b2x + b1b2y + c1b2 = 0
a2b1x + b2b1y + c2b1 = 0
(-) (-) (-)
(a1b2-a2b1)x + (c1b2-c2b1) = 0
So x is equal to:
x=-(c1b2-c2b1)/(a1b2-a2b1)..................(iii)
Now, eliminate x from both the equations (i) and (ii)
Multiply eq-(i) by a2 and eq-(ii) by a1
a1a2x + b1a2y + c1a2 = 0
a2a1x + b2a1y + c2a1 = 0
(-) (-) (-)
(b1a2-b2a1)y + (c1a2-c2a1) = 0
So y is equal to:
y=-(c1a2-c2a1)/(b1a2-b2a1)....................(iv)
The equation (iii) and (iv) representthe values of unknown variables x and y.
(b) Numeric Problem
3x + 2y + 6 = 0...............(i)
5x + 3y + 7 = 0................(ii)
Now, eliminate y from both the equations (i) and (ii)
Multiply eq-(i) by 3 and eq-(ii) by 2
9x + 6y + 18 = 0
10x + 6y + 14 = 0
(-) (-) (-)
-x + 4 = 0
So x is equal to:
x=4
Now, eliminate x from both the equations (i) and (ii)
Multiply eq-(i) by 5 and eq-(ii) by 3
15x + 10y + 30 = 0
15x + 9y + 21 = 0
(-) (-) (-)
y + 9 = 0
So y is equal to:
y=-9
(NOTE: Be aware about sign)
5x + 9y + 6 = 0
5x + 8y + 7 = 0
10x + 17y + 14 = 0
6x + 11y - 6 = 0
11x + 8y + 7 = 0
17x + 19y + 1 = 0
(NOTE: Be aware about sign)
5x + 9y + 6 = 0
7x + 8y - 7 = 0
(-) (-) (+)
-2x + y + 13 = 0
6x + 11y - 6 = 0
11x + 8y + 7 = 0
(-) (-) (-)
-5x + 3y - 13 = 0