Given lines can be written as y=−b1a1x−b1c1....(i)
and y−b2a2x−b2c2....(ii)
Slopes of the lines (i) and (ii) are m1=−b1a1 and m2=−b2a2, respectively. Now,
I. Lines are parallel, if m1=m2, which gives −b1a1=−b2a2
or b1a1=b2a2
II. Lines are perpendicular, if m1,m2=−1, which gives b1a1⋅b2a2=−1
or a1a2+b1b2=0