Given kx+y=k2 --- (1)
x+ky=1 ---- (2)
Both the equations are in the form of:
a1x+b1y+c1=0 and a2x+b2y+c2=0.
In the equation (1), we have
a1 = k, b1 = 1,c1 = −k2.
In the equation (2),
a2 = 1,b2 = k,c2 = -1.
Given that the equation has infinitely many solutions.
So, a1a2=b1b2=c1c2
k=1k=−k2−1
k2=1 or k=k2
⇒k=1.