A doubt on Week 3 Lecture

This is the derivative calculation. To understand this equation, you have to be familiar with Calculus. There are many posts related to this topic. You can read this and this and yet this one.