y=mx+c
Slope of line =m
Other line passes through (h,k), let its slope be m′
Angle between two lines i.e. tanθ=∣∣∣m1−m21+m1m2∣∣∣
tanθ=±m−m′1+mm′
θ=tan−1(±m−m′1+mm′)
tan−1m=tan−1(±m−m′1+mm′)
m=±m−m′1+mm′
If m=m−m′1+mm′
m+m2m′=m−m′
m2m′+m′=0
m′(m2+1)=0
⇒m′=0
Equation of line with slope m′=0 is
y−k=0(x−h)y−k=0y=k.....(i)
Also m=−m−m′1+mm′
m+m2m′=−m+m′
2m=(1−m2)m′
⇒m′=2m1−m2
Equation of line with slope m′ is
y−k=2m1−m2(x−h)(1−m2)(y−k)=2m(x−h)
So, the equation of lines are y=k and (1−m2)(y−k)=2m(x−h)