Answer
The required graph is as follows:
Work Step by Step
The required function is
$f(x)=max\{x, 2-x\}$
$\,\,\,\,\,\,\,\,\,\,\,\,=\begin{cases}
x & x\geq 2-x \\
2-x & x<2-x
\end{cases}$
$\,\,\,\,\,\,\,\,\,\,\,\,=\begin{cases}
x & 2x\geq 2 \\
2-x & 2x<2
\end{cases}$
$\,\,\,\,\,\,\,\,\,\,\,\,=\begin{cases}
x & x\geq 1 \\
2-x & x<1
\end{cases}$.
Further, the graph is as follows: