Let the equations represented by ax2+2hxy+by2=0 be y−m1x=0 and y−m2x=0 then
m1+m1=−2hb,m1m2=ab
If the lines males equal angles with x axis, one angle is θ and the other is 180−θ
tanθ=m1sinω1+m1cosω....1
and tan(180−θ)=m2sinω1+m2cosω....2
By 1 and 2 we get
m1sinω1+m1cosω=−m2sinω1+m2cosω
as tan(180−θ)=−tanθ
Putting the values of m1+m2 and m1m2
h=acosω