Plots > XY Plots > Plotting Functions > Example: Plotting a Function and Its Derivatives
  
Example: Plotting a Function and Its Derivatives
Use plots to visualize functions and their derivatives.
1. Define a function.
Click to copy this expression
2. Use the prime operator to define two functions to be the first and second derivatives of f.
Click to copy this expression
Click to copy this expression
3. Plot function f and its derivatives. To plot the last two traces, press Shift+Enter twice and type the additional y-axis expressions. You can change the trace style to better differentiate the traces.
Click to copy this expression