If $f(x) = \sqrt{x^2 + (1-x)^2} + \sqrt{(1-x)^2 +(1+x)^2}$
Find the minimum value of the function
I tried using the AMGM inequality and differentiation but didn't know how to solve it any ideas?
This is from a math competition. ( I would like to see the most efficient way as I think differentiation in a math competition is not that efficient)
Using Mogjals comment and using the AM-GM inequality , setting $A = \sqrt{x^2 + (1-x)^2}$ and $B=\sqrt{(1-x)^2 +(1+x)^2}$
then
$A+B \geq 2\sqrt{AB}$
$$ \sqrt{x^2 + (1-x)^2} + \sqrt{(1-x)^2 +(1+x)^2} \geq 2\sqrt{2}\sqrt{x^2+1}\sqrt{2x^2-2x+1}$$
With equality if and only $A=B$ so $x=-\frac{1}{2}$

In fact, you first derived an inequality that says $f(x)\geq g(x)$, then you found $x^$ such that $f(x^)=g(x^)$, and finally concluded $f(x^)$ is the minimum of $f(x)$. Generally, this is not always a correct approach. For example, consider $f(x)=x^2$ and $g(x)=2x-1$. Starting from $(x-1)^2\geq0$, you can easily verify $f(x)\geq g(x)$. In this example, $f(x^)=g(x^)$ leads to ${x^}^2=2x^-1$, and then $x^*=1$. But obviously you can say $f(1)$ is the minimum of $f(x)$, because $f(0)=0$ is the true minimum.
– babakks Jul 28 '16 at 07:00