I am new to TikZ and/or PGF (whatever the difference is :/), as you can see. Anyway, I need to draw the graph of the equation x^(2/3) + y^(2/3) = a^(2/3)
, where a = 2
.
Any suggestions? Here is what I have so far.
\documentclass{article}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{tikz}
\usepackage{pgfplots}
\begin{document}
Some text goes here.
\begin{center}
\begin{tikzpicture}[>=latex']
% Draw x-axis
\draw[very thick,->] (-3,0) -- (3.5,0)
node[right] {$x$};
% Draw y-axis
\draw[very thick, ->] (0,-3) -- (0,3.5)
node[above] {$y$};
% Draw graph of equation
\draw[smooth, color=blue, domain=-3:3, ultra thick, line cap=butt, samples=400]
plot (\x,{ (2^{2/3} - (\x)^{2/3} )^{3/2} });
\end{tikzpicture}
\end{center}
\end{document}