
\definecolor{yqqqqq}{rgb}{0.5019607843137255,0.,0.}
\begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=1.0cm,y=1.0cm]
\begin{axis}[
x=1.0cm,y=1.0cm,
axis lines=middle,
ymajorgrids=true,
xmajorgrids=true,
xmin=-2.5513282603397758,
xmax=5.200749212381565,
ymin=-2.00005533655915,
ymax=2.6856448247301894,
xtick={-2.0,-1.0,...,5.0},
ytick={-2.0,-1.0,...,2.0},]
\clip(-2.5513282603397758,-2.00005533655915) rectangle (5.200749212381565,2.6856448247301894);
\draw [samples=50,rotate around={0.:(0.,0.)},xshift=0.cm,yshift=0.cm,line width=0.5pt,domain=-2.0:1.0),color=yqqqqq] plot (\x,{(0.04593*(\x)^3+-0.08444*(\x)^2+-0.88889*(\x)+-0.07259)/1.0}););
\draw [samples=50,rotate around={0.:(0.,0.)},xshift=0.cm,yshift=0.cm,line width=0.5pt,domain=1.0:2.0),color=yqqqqq] plot (\x,{(-0.14*(\x)^3+1.09*(\x)^2+-2.68*(\x)+0.73)/1.0}););
\draw [samples=50,rotate around={0.:(0.,0.)},xshift=0.cm,yshift=0.cm,line width=0.5pt,domain=2.0:4.0),color=yqqqqq] plot (\x,{(-0.2625*(\x)^3+2.9475*(\x)^2+-8.64*(\x)+6.2)/1.0}););
\draw [line width=0.5pt,dotted] (1.,0.)-- (1.,-1.);
\draw [line width=0.5pt,dotted] (1.,-1.)-- (0.,-1.);
\draw [color=yqqqqq] (-2.,1.)-- ++(-2.5pt,0 pt) -- ++(5.0pt,0 pt) ++(-2.5pt,-2.5pt) -- ++(0 pt,5.0pt);
\draw [color=black] (1.,-1.)-- ++(-1.5pt,0 pt) -- ++(3.0pt,0 pt) ++(-1.5pt,-1.5pt) -- ++(0 pt,3.0pt);
\draw [color=yqqqqq] (4.,2.)-- ++(-2.5pt,0 pt) -- ++(5.0pt,0 pt) ++(-2.5pt,-2.5pt) -- ++(0 pt,5.0pt);
\draw[color=yqqqqq] (-1.5,1.4638232811052239) node {$y=f(x)$};
\end{axis}
\end{tikzpicture}