Firstly you call something a function of $x$, $f(x)$, but there is no $x$-dependence.
The way to code your function is the following
f[a1_, a2_, a3_] :=
a2 + (a3 - a2) JacobiCN[Sqrt[(a3 - a1)/2], Mod[a3 - a2, a3 - a1]]^2
So, you have a function of the a1
, a2
and a3
. I am assuming the simple range 0
to 1
for all three of those.
In order to plot it for various values you can try the following:
Manipulate[
ContourPlot[f[a1, a2, a3], {a1, 0, 1}, {a2, 0, 1},
ColorFunction -> "Rainbow"], {a3, 0, 1}]
Another way to plot is the following:
Plot3D[Evaluate@Table[f[a1, a2, a3], {a1, {0, 1, 0.1}}], {a2, 0,
1}, {a3, 0, 1}, PlotStyle -> {Red, Green, Blue}]
And another way to plot the function
Manipulate[
Plot3D[f[a1, a2, a3], {a1, 0, 2}, {a2, -1, 2},
Mesh -> Full], {a3, -2, 3}]
f
. $\endgroup$