Eigenvectors and eigenvalues give us a geometric interpretation:
- The eigenvector shows the direction in which the transformation acts.
- The eigenvalue shows how much the vector is stretched or compressed along that direction.
Together, these tools form the backbone of how we represent data, compress information, and analyze structure in modern AI systems.
2.Calculus
Calculus is the study of how functions change, through differentiation, and how these changes accumulate, through integration. Since a neural network is a differentiable function, calculus becomes one of the core tools for training it.Differentiation lies at the heart of optimization. A function reaches a local maximum or minimum where its derivative equals zero. Such points are called critical points. To determine whether a critical point is a minimum or maximum, we examine the second derivative:
- If f′′(x)>0, the function is locally convex, so x is a local minimum.
- If f′′(x)<0, the function is locally concave, so x is a local maximum.
- If f′′(x)=0, the situation is inconclusive.
One of the most important tools in calculus is the chain rule, which tells us how to differentiate composite functions. For two functions f and g: f(g(x))’ = f’(g(x))g’(x)This rule is essential in deep learning because neural networks are literally nested compositions of functions, layer after layer.Integration, often described as the inverse of differentiation, can be interpreted as the signed area under a curve. Many quantities in information theory, including entropy and Kullback–Leibler divergence, are defined using integrals.
3.Multivariable Calculus
This is where linear algebra and calculus meet. A neural network is a function of many variables, not just one. Therefore, we need tools that allow us to understand how changes in multiple directions influence the output.
3.1 Differentiation in multiple variables
In single-variable calculus, the derivative captures the slope of the tangent line. In multiple dimensions, a point on a surface has many possible tangent directions. Two especially important ones are:
- the tangent parallel to the x–z plane,
- the tangent parallel to the y–z plane.
Their slopes are given by partial derivatives.Another fundamental concept is the gradient, a vector that points in the direction of the steepest ascent. If you take an infinitesimal step along the gradient, your function value increases as much as possible compared to any other direction.Naive gradient descent uses the negative gradient to minimize loss, but it has limitations. Modern optimizers, such as Adam, RMSProp, and momentum-based methods, use adaptive step sizes, historical gradients, and other techniques to make optimization faster and more stable.Using the chain rule in multiple dimensions gives us the total derivative, which connects all partial derivatives through the structure of the model.
3.2 Higher-order derivatives
Training a neural network means minimizing a loss function with respect to its parameters. In multivariable settings, we generalize the second derivative using the Hessian matrix, which contains all second-order partial derivatives.The determinant of the Hessian plays a role analogous to the second derivative in one dimension:
- It helps classify critical points (points where the gradient is zero).
- It indicates whether we are at a minimum, maximum, or saddle point.
Understanding higher-order derivatives is essential for advanced optimization techniques and for analyzing model behavior near optimal solutions.
4.Probability Theory
Probability theory is the mathematical study of uncertainty and chance, a foundation not only for AI, but for all scientific disciplines. In machine learning, we rely on probability to model noise, quantify uncertainty, and make informed predictions about the world.At its core, probability is a function that assigns a number between 0 and 1 to an event, describing how likely that event is to occur.