For any two functions $f_1 : [0,1] →\mathbb R$ and $f_2 : [0,1] →\mathbb R$, define the function $g : [0,1] →\mathbb R$ as $g(x) = \max(f_1(x),f_2(x))$ for all $x ∈ [0,1]$.
A. If $f_1$ and $f_2$ are linear, then $g$ is linear
B. If $f_1$ and $f_2$ are differentiable, then g is differentiable
C. If $f_1$ and $f_2$ are convex, then g is convex
D. None of the above
My attempt:- $g(x) = \max(f_1(x),f_2(x))=\frac{f_1(x)+f_2(x)}{2}+\frac{|f_1(x)-f_2(x)|}{2}$
A. $g(0)=\max\{f_1(0),f_2(0)\}=0$
$g(cx+y)=\max\{f_1(cx+y),f_2(cx+y)\}=\frac{f_1(cx+y)+f_2(cx+y)}{2}+\frac{|f_1(cx+y)-f_2(cx+y)|}{2}=\frac{cf_1(x)+f_1(y)+cf_2(x)+f_2(y)}{2}+\frac{|cf_1(x)+f_1(y)-(cf_2(x)+f_2(y))|}{2}=c\frac{f_1(x)+f_2(x)}{2}+\frac{f_1(y)+f_2(y)}{2}+\frac{|c(f_1(x)-f_2(x))+(f_1(y)-f_2(y))|}{2}$. $c(f_1(x)-f_2(x))$ and $(f_1(x)-f_2(x))$ lie in the same line. so, Equality holds in the triangular ineqality.
$c\frac{f_1(x)+f_2(x)}{2}+\frac{f_1(y)+f_2(y)}{2}+\frac{|c(f_1(x)-f_2(x))|}{2}+\frac{|(f_1(y)-f_2(y))|}{2}\implies$
$c\frac{f_1(x)+f_2(x)}{2}+\frac{f_1(y)+f_2(y)}{2}+|c|\frac{|(f_1(x)-f_2(x))|}{2}+\frac{|(f_1(y)-f_2(y))|}{2}$
It need not be linear. Since,If $c<0$, $|c|=-c$.
B. $\lim_{h\to 0}\frac{g(h)-g(0)}{h}=\lim_{h\to 0}\frac{f_1(h)+f_2(h)}{2h}+\frac{|f_1(h)-f_2(h)|}{2h}-(\frac{f_1(0)+f_2(0)}{2h}+\frac{|f_1(0)-f_2(0)|}{2h})=\lim_{h\to 0}\frac{f_1(h)-f_1(0)+f_2(h)-f_2(0)}{2h}+\frac{|f_1(h)-f_2(h)|}{2h}-\frac{|f_1(0)-f_2(0)|}{2h}$
How do I proceed further?
C. Let $x,y \in[0,1],g(tx+(1-t)y)=\max(f_1(tx+(1-t)y),f_2(tx+(1-t)y))=\frac{f_1(tx+(1-t)y)+f_2(tx+(1-t)y)}{2}+\frac{|f_1(tx+(1-t)y)-f_2(tx+(1-t)y)|}{2}\leq \frac{f_1(tx+(1-t)y)+f_2(tx+(1-t)y)}{2}+\frac{|f_1(tx+(1-t)y)|}{2}+\frac{f_2(tx+(1-t)y)|}{2}$
How do I proceed further?
I couldn't find any counterexample for $B$ and $C$. So, I tried to prove it. I am not able to complete the proof. Plese help me.
For a counterexample to B, consider two linear functions, one sloping upward and one sloping downward, crossing in the middle, so that the max is V-shaped and thus has a point of nondifferentiability (this would also be a counterexample to A).
For C, since convexity is defined in terms if inequalities, it's probably just easier to use the $\max$ definition directly than to use your decomposition. $$tg(x)+(1-t)g(y) \geq tf_1(x)+(1-t)f_1(y) \geq f_1(tx+(1-t)y)$$ and $$tg(x)+(1-t)g(y) \geq tf_2(x)+(1-t)f_2(y) \geq f_2(tx+(1-t)y)$$ thus $$tg(x)+(1-t)g(y) \geq \max\{f_1(tx+(1-t)y),f_2(tx+(1-t)y)\} = g(tx+(1-t)y)$$