24/04/2025
\documentclass[border=3pt,tikz]{standalone}
\usepackage{amsmath}
\usepackage{physics,siunitx}
\usepackage{tikz,pgfplots}
\usepackage[outline]{contour}
\contourlength{1.0pt}
\usetikzlibrary{angles,quotes}
\usetikzlibrary{arrows.meta}
\usetikzlibrary{decorations.markings}
\tikzset{>=latex}
\usepackage{xcolor}
\colorlet{xcol}{blue!60!black}
\colorlet{myred}{red!80!black}
\colorlet{myblue}{blue!80!black}
\colorlet{mygreen}{green!40!black}
\colorlet{myorange}{orange!90!black}
\colorlet{mypurple}{red!50!blue!90!black!80}
\colorlet{mydarkred}{myred!80!black}
\colorlet{mydarkblue}{myblue!80!black}
\tikzstyle{xline}=[xcol,thick]
\tikzstyle{width}=[{Latex[length=5,width=3]}-{Latex[length=5,width=3]},thick]
\tikzset{
traj/.style 2 args={xline,postaction={decorate},decoration={markings,
mark=at position #1 with {\arrow{,thick] (-0.1*\ymax,0) -- (\xmax,0) node[below] {$t$};
% PLOT
% \draw[dashed,samples=\N,smooth,variable=\x,domain=0:0.96*\xmax]
% plot(\x,{\A*exp(-2*\x/\T)});
\draw[xline,myorange,samples=100+\N,smooth,variable=\x,domain=0:0.96*\xmax]
plot(\x,{\A*exp(-2*\x/\T)*cos(180/pi*\W*\x)^2});
\draw[dashed,xline,myred,samples=100+\N,smooth,variable=\x,domain=0:0.96*\xmax]
%plot(\x,{\A*exp(-\x/\T)*sin(180/pi*\W*\x)^2});
plot(\x,{\A*exp(-2*\x/\T)*( 1/\T/\om*cos(180/pi*\W*\x) + \W/\om*sin(180/pi*\W*\x) )^2});
\draw[xline,mygreen,samples=100+\N,smooth,variable=\x,domain=0:0.96*\xmax]
plot(\x,{\A*exp(-2*\x/\T)*(cos(180/pi*\W*\x)^2 + ( 1/\T/\om*cos(180/pi*\W*\x) + \W/\om*sin(180/pi*\W*\x) )^2 )});
\node[above right=0,myorange] at (0.27*\xmax,{\A*exp(-2*0.27*\xmax/\T)}) {$E_{pe}(J)$};
\node[dashed,above right=0,myred] at (0.35*\xmax,{\A*exp(-2*0.35*\xmax/\T)}) {$E_c(J)$};
\node[above right=0,mygreen] at (0.55*\xmax,{\A*exp(-2*0.55*\xmax/\T)}) {$E_m=E_c+E_{pe}$};
\end{tikzpicture}
\end{document}