Preface
This is a tutorial made solely for the purpose of education and it was designed for students taking Applied Math 0330. It is primarily for students who have very little experience or have never used Mathematica before and would like to learn more of the basics for this computer algebra system. As a friendly reminder, don't forget to clear variables in use and/or the kernel.
Finally, the commands in this tutorial are all written in bold black font, while Mathematica output is in regular fonts. This means that you can copy and paste all commands into Mathematica, change the parameters and run them. You, as the user, are free to use the scripts to your needs for learning how to use the Mathematica program, and have the right to distribute this tutorial and refer to this tutorial as long as this tutorial is accredited appropriately.
Return to computing page for the second course APMA0340
Return to Mathematica tutorial for the second course APMA0330
Return to Mathematica tutorial for the first course APMA0340
Return to the main page for the course APMA0340
Return to the main page for the course APMA0330
Return to Part I of the course APMA0330
Famous Curves
Antiversiera
For two values of parameters:
a=-2; b=1;
and
a = 1; b = 2;
we have two graphs:


Arachnida
PolarPlot[ 2*a*Sin[n*\[Phi]]/Sin[(n - 1)*\[Phi]], {\[Phi], .0001, 2*\[Pi]}]

Astroid
ContourPlot[(x^2 + y^2 - t^2)^3 + 27*x^2*y^2 == 0, {x, -5, 5}, {y, -5, 5}]

Besace
ContourPlot[(x^2 - b*y)^2 + a^2*(y^2 - x^2) == 0, {x, -5, 5}, {y, -1.5, 4.5}, AspectRatio -> Automatic]

Bifolium
ContourPlot[(x^2 + y^2)^2 == b*x^2*y, {x, -1, 1}, {y, -0.2, 1}, AspectRatio -> Automatic]

Cardioid
PolarPlot[2*r*(1 - Cos[\[Phi]]), {\[Phi], 0, 2*\[Pi]}, AspectRatio -> Automatic]

Circular Tractrix
f[r_, th_] := th - ArcTan[Sqrt[4*a^2 - r^2]/r] - Sqrt[4*a^2 - r^2]/r
g[r_, th_] := {r Cos[th], r Sin[th]}
pl = ContourPlot[f[r, th] == 0, {r, 0, 8 Pi}, {th, 0, 4 Pi}, PlotPoints -> 30];
pl[[1, 1]] = g @@@ pl[[1, 1]];
Show[pl, PlotRange -> All, AspectRatio -> 1.5/2]

Cramer
ContourPlot[ x*(x^2 + y^2) == (r + l)*x^2 - (r - l)*y^2, {x, -1, 5}, {y, -5, 5}, AspectRatio -> 1]

Epicycloid
PolarPlot[Sqrt[ R^2 + h^2 - 2*(R + r)*h*Cos[R/r*\[Phi]]], {\[Phi], 0, 200*\[Pi]}]

Galileo's Spiral
PolarPlot[a*\[Phi]^2 - l, {\[Phi], 0, 6*\[Pi]}]

Kiepert
PolarPlot[(l^3*Cos[3*\[Phi]])^(1/3), {\[Phi], -2*\[Pi], 2*\[Pi]}]

Limacon
ContourPlot[(x^2 + y^2 - 2*a*x)^2 == l^2*(x^2 + y^2), {x, -1,
10}, {y, -7, 7}, AspectRatio -> 14/11]

Rose
PolarPlot[a*Cos[k*\[Phi]], {\[Phi], 0, 4*\[Pi]}]

Trefoil
ParametricPlot[{r*(2*Cos[2*t] - Cos[t]), r*(2*Sin[2*t] + Sin[t])}, {t, 0, 10}]

Return to Mathematica page
Return to the main page (APMA0330)
Return to the Part 1 (Plotting)
Return to the Part 2 (First Order ODEs)
Return to the Part 3 (Numerical Methods)
Return to the Part 4 (Second and Higher Order ODEs)
Return to the Part 5 (Series and Recurrences)
Return to the Part 6 (Laplace Transform)
Return to the Part 7 (Boundary Value Problems)