SOLUTION: Solve the system of equations for x and y. gx+hy=i jx+ny=p

Algebra ->  Coordinate Systems and Linear Equations -> SOLUTION: Solve the system of equations for x and y. gx+hy=i jx+ny=p      Log On


   



Question 1053100: Solve the system of equations for x and y. gx+hy=i jx+ny=p
Answer by Alan3354(69443) About Me  (Show Source):
You can put this solution on YOUR website!
Solve the system of equations for x and y.
gx+hy=i
jx+ny=p
---------
gjx + hjy = i*j --- 1st eqn times j
gjx + gny = g*p --- 2nd eqn times g
----------------------------------------- Subtract
(hj - gn)y = ij - gp
y = (ij - gp)/(hj - gn)
---
sub for y in the 1st eqn
gx + hy = i
gx + h*(ij - gp)/(hj - gn) = i
gx = i -h*(ij - gp)/(hj - gn)
x = i/g -h*(ij - gp)/(ghj - g^2n)