I'm trying to generate this simple graph using the Manipulate function
f[x_] := a x + b x^2;
Manipulate[Plot[f[x], {x, 0, 1}], {a, 0, 1}, {b, 0, 1}]
However, Mathematica doesn't return any graph! If instead of the above, I use now
Manipulate[Plot[a x + b x^2, {x, 0, 1}], {a, 0, 1}, {b, 0, 1}]
I can get what I wanted. Any thoughs on why the manipulate doesn't work with functions? Thanks!
Manipulate
. See example afterManipulate only "notices" explicit visible parameters
$\endgroup$