Hello,
I would like to mention, that there is a little mistake/typo in your code, Stefan_K. It should be
Then the Graph fits to the so called envelope.
For better convenience
Code: Select all
\documentclass[border=10pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{%
every tick label/.append style = {font=\tiny},
every axis label/.append style = {font=\scriptsize}
}
\begin{document}
\begin{tikzpicture}
\begin{axis}[grid=major, xmin=0, xmax=3, ymin=-1.1, ymax=1.1,
xlabel=$t$, ylabel={$x(t), y(t)$},
xtick = {0,0.5,...,3}, ytick = {-1,-0.5,...,1},
scale=0.3, restrict y to domain=-1:1]
\addplot[blue, samples=100, smooth, unbounded coords=discard]
plot (\x, { 1 + 2 * \x)*exp(-2*\x) * sin(180* 3.14 * \x) });
\addplot[red, dashed, samples=100, smooth]
plot (\x, { (1+2*\x) * exp(-2*\x) } );
\addplot[red, dashed, samples=100, smooth]
plot (\x, { -(1+2*\x) * exp(-2*\x) } );
\end{axis}
\end{tikzpicture}
\end{document}
Greeetings GKS