Given a triangle ABC with fixed point A(5,2) and also other points lie on lines y=x and y=0 respectively . How can I minimize the perimeter of the triangle ie **
|AB+BC+CA|
** should get minimum value ? I tried to assume the points as (p,p) and (q,0) but cannot reach anywhere with the distance formula.
Reflect $A$ with respect to line $\ell_1 : y = x$ to get $B' = (2,5)$.
Reflect $A$ with respect to line $\ell_2 : y = 0$ to get $C' = (5,-2)$.
For any point $B$ on $\ell_1$ and point $C$ on $\ell_2$, we have
$$AB + BC + CA = B'B + BC + CC'$$ Notice $B'BCC'$ is a path joining $B'$ and $C'$. Since the shortest path joining two points is the straight line between them, we have
$$AB + BC + CA \ge B'C'$$
Since the intersections of $\ell_1$ and $\ell_2$ with line $B'C'$ lies between $B'$ and $C'$ (see illustration below), the perimeter is minimized when $B$, $C$ are these two intersections. The minimum perimeter equals to $B'C'$ = $\sqrt{(2-5)^2 + (5+2)^2} = \sqrt{58}$.
$\hspace 1in$