1. Purpose of Derivatives
In machine learning and optimization, derivatives are used to understand how a function changes with respect to its input.
A derivative represents:
the rate of change of a function
or more intuitively, the slope of the function at a specific point
2. Example Function
Consider the function:
This is a linear function (a straight line).
3. Understanding Derivative Through Small Changes
Let’s analyze what happens when we slightly change the input.
Case 1:
Now increase slightly:
Observation:
- Change in input:
- Change in output:
4. Interpretation
This means:
When increases by a small amount,
increases 3 times as much
So the derivative is:
5. Another Point
Case 2:
Increase slightly:
Again:
The slope is still 3
6. Key Property of Linear Functions
For the function :
- The derivative is constant
- The slope is the same at every point
7. Meaning of Derivative
The derivative tells us:
If we slightly change the input, how much will the output change?
More precisely:
- A tiny change in input → proportional change in output
- The proportionality factor = derivative
8. Formal Definition
In theory, the derivative is defined using an infinitesimally small change in the input.
Instead of using a value like 0.001:
- We consider a change that is extremely close to zero
This gives a precise definition of the slope at a point.
9. Notation
Two common ways to write derivatives:
or
Both represent the same concept:
the slope of with respect to
10. Importance in Machine Learning
Derivatives are essential because:
- They tell us the direction of change
- They are used in gradient descent
- They help determine how to update parameters
