We know that the combined equation of the lines through the origin is homogeneous. Hence eliminating the first degree terms of x between the given equations we shall obtain homogeneous equation which will represent the required lines. Multiplying the first equation by g1 and 2nd by g and subtracting, we get g1(ax2+2hxy+by2+2gx)−g(a1x2+2h1xy+b1y2+2g1x)=0
or (g1a−a1g)x2+2xy(hg1−h1g)+(g1b−b1g)y2=0
If the equation represents two perpendicular lines, then
coeff. of x2+ coeff. of y2=0
∴g1a−a1g+g1b−b1g=0
∴(a+b)g1=(a1+b1)g is the required condition.