Answer
See graph
Work Step by Step
We are given the function:
$f(x)=\begin{cases}
2x+1,x\leq 2\\
x^2+1,x\gt 2
\end{cases}$
The function consists of two functions: the function $2x+1$ on the interval $(-\infty,2]$ and the function $x^2+1$ on the interval $(2,\infty)$.
Graph the two functions: