I'm wondering if is it possible to plot a graph of a function with arbitrary constants.
Here's an example to make things clearer. If I have a function $$f(x) = \cos(bx) + bx$$ Can I plot this f(x) without giving a specific value for b?
Different values of $b$ correspond to different scales of the $x$-axis (I will assume $b>0$). Therefore, one could use a plot of this kind:
Code:
With[{xs=Range[-3*Pi,3*Pi,Pi]},
Plot[Cos[x]+x,{x,Min[xs],Max[xs]},
Ticks->{{xs,xs/"b"}//Transpose,Automatic}]]
Can I plot this f(x) without giving a specific value for b?
The short answer is "no". Please lookupFunctionDomain
andFunctionRange
as those may help you in certain instances to plot a region of interest. $\endgroup$-2<=b<=2
? $\endgroup$b
with the suggestion above to useManipulate
or the answer below. $\endgroup$