How to draw this figure in tikz...
I have tried to draw this in Geogebra and I have exported the codes to tikz,
\definecolor{qqqqff}{rgb}{0,0,1}
\definecolor{cqcqcq}{rgb}{0.75,0.75,0.75}
\begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=1.0cm,y=1.0cm]
\draw[->,color=black] (-3,0) -- (6,0);
\foreach \x in {-3,-2,-1,1,2,3,4,5}
\draw[shift={(\x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) node[below] {\footnotesize $\x$};
\draw[->,color=black] (0,-1) -- (0,4);
\foreach \y in {-1,1,2,3}
\draw[shift={(0,\y)},color=black] (2pt,0pt) -- (-2pt,0pt) node[left] {\footnotesize $\y$};
\draw[color=black] (0pt,-10pt) node[right] {\footnotesize $0$};
\clip(-3,-1) rectangle (6,4);
\draw (1.18,3.04) node[anchor=north west] {$1$};
\draw (0.46,3.78) node[anchor=north west] {$\psi_1(x)$};
\begin{scriptsize}
\fill [color=qqqqff] (-8.84,-6.44) circle (1.5pt);
\fill [color=qqqqff] (12.78,-6.44) circle (1.5pt);
\end{scriptsize}
\end{tikzpicture}
And the output is,
Here, I could not find the curve, why?? Shouldn't I draw using the pen tool in Geogebra?
--
Here is my Geogebra drawn pic in png format.






tikz. – Alenanno Dec 16 '15 at 15:45scriptsizeenvironment can be deleted as it has no effect on the output. – cfr Dec 16 '15 at 17:17