Let O be the mid point of base BC of triangle ABC and the vertex A be (h,k)
In △ABDtanx=kh+a....(i)
In △ACDtanϕ=kh−a.....(ii)
ϕ+y=π⇒y=π−ϕ
Given mtanx=tany
mtanx=tanymtanx=tan(π−ϕ)mtanx=−tanϕ
substituting (i) and (ii)
mkh+a=−kh−a−hk−ak=mhk−mak−h−a=hm−amh+hm=am−a(1+m)h=(m−1)a
Replacing h by x
(1+m)x=(m−1)a
is the required locus of A