(i) px + qy = p – q……………(i)
qx – py = p + q……………….(ii)
Multiplying equation (i) by p and equation (ii) by q, we get;
p2x + pqy = p2 − pq ………… (iii)
q2x − pqy = pq + q2 ………… (iv)
Adding equations (iii) and (iv), we get;
p2x + q2 x = p2 + q2
(p2 + q2) x = p2 + q2
x = (p2 + q2)/ (p2 + q2) = 1
Substituting x = 1 in equation (i), we have;
p(1) + qy = p – q
qy = p – q – p
qy = -q
y = -1
(ii) ax + by= c…………………(i)
bx + ay = 1+ c………… ..(ii)
Multiplying equation (i) by a and equation (ii) by b, we get;
a2x + aby = ac ………………… (iii)
b2x + aby = b + bc…………… (iv)
Subtracting equation (iv) from equation (iii),
(a2 – b2) x = ac − bc– b
x = (ac − bc – b)/ (a2 – b2)
x = c(a – b) – b / (a2 – b2)
From equation (i), we obtain
ax + by = c
a{c(a − b) − b)/ (a2 – b2)} + by = c
{[ac(a−b)−ab]/ (a2 – b2)} + by = c
by = c – {[ac(a − b) − ab]/(a2 – b2)}
by = (a2c – b2c – a2c + abc + ab)/ (a2 – b2)
by = [abc – b2c + ab]/ (a2 – b2)
by = b(ac – bc + a)/(a2 – b2)
y = [c(a – b) + a]/(a2 – b2)
(iii) x/a – y/b = 0
ax + by = a2 + b2
x/a – y/b = 0
⇒ bx − ay = 0 ……. (i)
And
ax + by = a2 + b2…….. (ii)
Multiplying equations (i) and (ii) by b and a, respectively, we get;
b2x − aby = 0 …………… (iii)
a2x + aby = a3 + ab2 …… (iv)
Adding equations (iii) and (iv), we get;
b2x + a2x = a3 + ab2
x(b2 + a2) = a(a2 + b2)
⇒ x = a
Substituting x = 1 in equation (i), we get;
b(a) − ay = 0
ab − ay = 0
ay = ab
⇒ y = b
(iv) (a – b)x + (a + b) y = a2 – 2ab – b2
(a + b)(x + y) = a2 + b2
(a + b) y + (a – b) x = a2 − 2ab − b2 …………… (i)
(x + y)(a + b) = a2 + b2
(a + b) y + (a + b) x = a2 + b2 ………………… (ii)
Subtracting equation (ii) from equation (i), we get;
(a − b) x − (a + b) x = (a2 − 2ab − b2) − (a2+ b2)
x(a − b − a − b) = − 2ab − 2b2
− 2bx = − 2b (a + b)
x = a + b
Substituting x = a + b in equation (i), we get;
y (a + b) + (a + b)(a − b) = a2 − 2ab – b2
a2 − b2 + y(a + b) = a2− 2ab – b2
(a + b)y = −2ab
y = -2ab/(a + b)
(v) 152x – 378y = – 74
–378x + 152y = – 604
152x – 378y = – 74 ….(i)
–378x + 152y = – 604….(ii)
From equation (i),
152x + 74 = 378y
y = (152x + 74)/378
Or
y = (76x + 37)/189…..(iii)
Substituting the value of y in equation (ii), we get;
-378x + 152[(76x + 37)/189] = -604
(-378x)189 + [152(76x) + 152(37)] = (-604)(189)
-71442x + 11552x + 5624 = -114156
-59890x = -114156 – 5624 = -119780
x = -119780/-59890
x = 2
Substituting x = 2 in equation (iii), we get;
y = [76(2) + 37]/189
= (152 + 37)/189
= 189/189
= 1
Therefore, x = 2 and y = 1