I am wondering why the following does not plot the way it's written and exactly how does the Do[] function operate? I think I could be using it incorrectly.
In[1]:= u[x_, t_] := (1/2) (Exp[-(x + t)^2] + Exp[-(x - t)^2])
Do[
Plot[u[x, k], {x, -5, 5},
AxesLabel -> {x, u},
PlotRange -> {0, 1}],
{k, 0, 3}
]
EDIT
In[2]:= Clear["Global`*"]
a=1;
b=1;
\[Phi][\[Xi]_,\[Nu]_,t_]:=\!\(
\*UnderoverscriptBox[\(\[Sum]\), \(i = 1\), \(10\)]\(
\*UnderoverscriptBox[\(\[Sum]\), \(j = 1\), \(10\)]\((
\*FractionBox[\(5\ \((\(-1\) +
\*SuperscriptBox[\((\(-1\))\), \(j\)])\)\ \((\(-1\) +
\*SuperscriptBox[\((\(-1\))\), \(i\)])\)\), \(j\ i\
\*SuperscriptBox[\(\[Pi]\), \(2\)]\)] Cos[
\*FractionBox[\(1\),
SuperscriptBox[\(\[Pi]\), \(4\)]]
\*SqrtBox[\(
\*SuperscriptBox[\(i\), \(4\)]
\*SuperscriptBox[\(\[Pi]\), \(4\)] +
\*SuperscriptBox[\(j\), \(4\)]
\*SuperscriptBox[\(\[Pi]\), \(4\)]\)] t])\) Sin[i\ \[Pi]\ \[Xi]] Sin[j\ \[Pi]\
\[Nu]]\)\);
Do[Print@
Plot3D[\[Phi][\[Xi],\[Nu],m],{\[Xi],0,a},{\[Nu],0,b},
Mesh:>Automatic,
PlotLabel:>"Surface Plot of Solution at t = "<>ToString[m],
ColorFunction:>{"BlueGreenYellow"}],
{m,0,10,2}
]



