3x+y+12=0......(i)
slope of line =m1=−ab=−3
x+2y−1=0.......(ii)
slope of line =m2=−ab=−12
Angle between lines i.e. tanθ=∣∣∣m1−m21+m1m2∣∣∣
tanθ=∣∣ ∣ ∣ ∣∣−3−(−12)1+(−3)(−12)∣∣ ∣ ∣ ∣∣=∣∣ ∣ ∣∣−6+122+32∣∣ ∣ ∣∣=∣∣ ∣ ∣∣−5252∣∣ ∣ ∣∣tanθ=1⇒θ=45∘
Now x+2y−1=0
x=1−2y
Substituting in (i)
3(1−2y)+y+12=03−6y+y+12=0−5y=−15⇒y=3x=1−2(3)⇒x=−5
So the point of intersection is (−5,3)
Let the slope of line perpendicular to (i) be m
m1m=−1−3m=−1⇒m=13
It passes through (3,−2), so the equation of line is
y+2=13(x−3)3y+6=x−3x−3y=9
Let the slope of line perpendicualr to (ii) be m′
−12m′=−1⇒m′=2
It passes through (3,−2), so the equation of line is
y+2=2(x−3)y+2=2x−62x−y=8