Question: Procedure to compute function and curvature from input?

I have a more relavant form of a question regarding procedures. I need to write a procedure with parameter f(x) and result in the plot of the function f(x) along with the plot of the curvature of f on the same graph. Ideally, parameter f(x) could be requested to be any function, such as x^2 or cos(x). I am new to procedures and do now know where to begin, even at such a basic level.

Any assistance greatly appreciated.

Please Wait...