Let $l$ be a line and $A$ and $B$ two points on the same side of $l$. To find the point $P$ for which $AP+PB$ is minimum we take the intersection of $l$ and the line joining $B$ and the symmetric $A'$ of $A$ with respect to $l$. For any point $M$ of $l$ other than $P$ we have $AM+MB=A'M+MB>A'B=AP+PB$ so $P$ is the desired point.
My question is $\color{red}{\text{how to prove that $AM+MB$ increases with $PM$?}}$.
My attempt: If $M'$ is another point of $l$ such that $PM'>PM$ then $AM<AM'+MM'$ and $BM<BM'+MM'$. I want to prove that $AM+MB<AM'+M'B$ using only the triangle inequality.

Sometimes a figure is worth a thousand words:
This distance from $A$ to $B$ via the line is the same as the distance from $A$ to $B'$... the shortest of which is a straight line. Using the elementary fact from Euclidean geometry that the shortest distance between two points is a straight line we see: $\color{red}{\text{all other such paths (see green) must be longer.}}$ Proof completed.