Question: Write procedure to receive function as parameter and return function and curvature plot

I am using Maple 14 and struggling with writing procedures. Here is an example of what I need to be able to program. I require a procedure which will receive as a parameter a function f(x) and plot that function (say in red) along with the curvature function (say in blue) on the same graph. Sample parameters include the functions f(x)=x^2 or sin(x) or exp(-x^2).

I feel somewhat confident in my maple commands, but procedures are a whole new thing to me. If even a basic example of the procedure is available, or suggested, I can figure out how to obtain the proper plot.

 

Thanks for the help!

Please Wait...