ApX logoApX logo
ModelsCalculatorHardwareCoursesPricing
ApX logoApX logo
ModelsCalculatorHardwareCoursesPricing

All Courses

Calculus Fundamentals for Machine Learning
Chapter 1: Why Calculus for Machine Learning?
The Role of Math in Machine Learning
Introducing Functions: Inputs and Outputs
Visualizing Functions: Graphs
What is a Limit?
Intuition Behind Limits
Connecting Functions and Limits to ML
Quiz for Chapter 1
Chapter 2: Derivatives: Measuring Change
Rate of Change: Average vs Instantaneous
The Derivative: Slope of a Tangent Line
Derivative Notation (Leibniz and Lagrange)
Calculating Derivatives: The Power Rule
Calculating Derivatives: Constants and Sums
Introduction to Higher-Order Derivatives
Practice: Calculating Simple Derivatives
Quiz for Chapter 2
Chapter 3: Optimization with Derivatives
Finding Maximum and Minimum Points
Optimization: Why Minimize or Maximize?
Cost Functions in Machine Learning
Goal: Minimizing the Cost Function
Introduction to Gradient Descent
How Derivatives Guide Gradient Descent
Visualizing Gradient Descent
Quiz for Chapter 3
Chapter 4: Handling Multiple Inputs: Partial Derivatives
Functions of Multiple Variables
Partial Derivatives: The Concept
Calculating Partial Derivatives
Partial Derivative Notation
The Gradient Vector
Geometric Meaning of the Gradient
Practice: Calculating Partial Derivatives and Gradients
Quiz for Chapter 4
Chapter 5: Calculus in Action: Simple Optimization
Recap: Optimization Goal and Gradient Descent
Example: Simple Linear Regression Model
Defining a Cost Function for Linear Regression
Calculating Gradients for the Cost Function
Performing a Gradient Descent Step
The Learning Rate Parameter
Putting It All Together: The Optimization Process
Hands-on Practical: Manual Gradient Calculation
Quiz for Chapter 5

Chapter 3: Optimization with Derivatives

Having explored derivatives as measures of instantaneous change, we now turn to a key application: using them to find optimal points in functions. This process, known as optimization, is central to how many machine learning models learn from data.

In this chapter, you will learn how derivatives are used to locate the minimum or maximum values of a function, often by finding where the derivative equals zero (f′(x)=0f'(x) = 0f′(x)=0). We will examine the concept of cost functions (or loss functions) in machine learning, which measure how well a model performs, and understand why minimizing these functions is the objective. You'll be introduced to gradient descent, a fundamental algorithm used to iteratively minimize cost functions. We will explain how the derivative provides the direction needed for gradient descent and visualize this process to build intuition.

Sections

  • 3.1 Finding Maximum and Minimum Points

  • 3.2 Optimization: Why Minimize or Maximize?

  • 3.3 Cost Functions in Machine Learning

  • 3.4 Goal: Minimizing the Cost Function

  • 3.5 Introduction to Gradient Descent

  • 3.6 How Derivatives Guide Gradient Descent

  • 3.7 Visualizing Gradient Descent

© 2026 ApX Machine Learning