1. Learn
  2. /
  3. Courses
  4. /
  5. Introduction to Optimization in Python

Connected

Exercise

Find the second derivative

Now that you have the derivative of your objective function, you can calculate the second order derivative. You'll do so symbolically using sympy.

The values for dc_dq and q_opt, and the objective function c with the quantity variable q from the previous exercise are available to you.

Instructions 1/2

undefined XP
    1
    2
  • Find the second derivative of dc_dq.
  • Substitute the optimum q_opt into the second derivative.