I know similar questions have been asked, but I am very new at Mathematica and other questions/answers are quite complex and do not suit the code I want to write.
I want to restrict the domain of the function f(x) to be between 0 and a, for the variable x. (I do not want to restrict the plot, just the function - just as in this question). f[x_] := x*(1+a*ln(1-x/a)) , where a is a parameter, that I wish to vary from 0 to let's say 20 with increments of 0.05 for instance.
Then, I wish to plot the function with a slider for this a parameter, that is being able to vary it (hence the plot of f(x) - and its domain - adjusting dynamically).
Following the best answer here, I have tried this:
f[a_Real,x_Real]:= x*(1+a*ln(1-x/a))
Manipulate[Plot[f[a,x],{x,0,a}],{a,0,20,0.05}]
which doesn't work...