1

I'm using the code

\documentclass{book}
\usepackage{pgfplots}
\begin{document}

\begin{tikzpicture}
\begin{axis}[
        xmin=-5,
        xmax=5,
        ymin=-5,
        ymax=5,
        axis x line=middle,
        axis y line=middle,
        samples=100,
        domain=-5:5,
    ]
        \addplot[thick](x,{(x+2)^(1/3)});
\end{axis} 
\end{tikzpicture}

\end{document}

to plot y= (x+2)^{1/3} which gives me this graph:
enter image description here

but it is not complete, because the right graph is:

enter image description here

How can I plot it like the second screenshot?

7

Browse other questions tagged or ask your own question.