\documentclass{article}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[axis lines=middle,
unit vector ratio=1 1,
enlarge x limits=0.1,
ymax=1.9,ymin=-1.6,
xlabel={$x$},ylabel={$y$},
xlabel style={below},ylabel style={left},
very thick, tick style={very thick,black},
ytick={1},xtick={-2,2},
]
\addplot+[samples=201,mark=none,domain=-2:2] {(2*x^2-exp(abs(x))};
\node[below left] at (axis cs:0,0) {$O$};
\end{axis}
\end{tikzpicture}
\end{document}
问 请问画复杂函数的图像:f(x)=2*x^2-e^{|x|}怎么画?