Member-only story

(2) OPTIMIZATION: Understanding the Importance of Derivatives

Understanding Derivatives and applying concepts with Sympy

Carla Martins
6 min readMar 7, 2023
Photo by Thomas T on Unsplash

We have seen in the previous article that optimization from the mathematical point of view is the process to find the minima of a function.

In this article we will understand what first order and second order derivatives tell us about a function and how to compute first order and second order derivatives (univariate functions) using the Python library Sympy.

First Order Derivative

The first order derivative of a function is the rate of change of the function at any given point. It tell us how much the value of the function is changing as we move along the x-axis, and whether the function is increasing or decreasing at that point.

If the first order derivative of a function is positive at a point, it means that the function is increasing, if it negative, the function is decreasing. If the first order derivative is zero at a given point, it means that the function has…

--

--

Carla Martins
Carla Martins

Written by Carla Martins

Compulsive learner. Passionate about technology. Speaks C, R, Python, SQL, Haskell, Java and LaTeX. Interested in creating solutions.

No responses yet