\definecolor{ffqqqq}{rgb}{1,0,0}
\definecolor{qqwuqq}{rgb}{0,0.39215686274509803,0}
\definecolor{qqzzff}{rgb}{0,0.6,1}
\begin{center}
\begin{tikzpicture}
\begin{axis}[
axis lines=middle,
ymajorgrids=true,
xmajorgrids=true,
xmin=-1.5,
xmax=4,
ymin=-2,
ymax=1.5,
xtick={-1.5,-1,...,4},
ytick={-2,-1.5,...,2},]
\clip(-1.5,-2) rectangle (4,1.5);
\draw[line width=1pt,color=qqwuqq,smooth,samples=100,domain=-1.5:4] plot(\x,{(\x + 1) * exp(-\x)});
\draw [fill=ffqqqq] (1,0.735) circle (2pt);
\draw[color=ffqqqq] (1,0.735) node[above right] {$A$};
\draw [fill=ffqqqq] (-0.5,0.824) circle (2pt);
\draw[color=ffqqqq] (-0.5,0.824) node[above left] {$B$};
\end{axis}
\end{tikzpicture}
\end{center}