OMOGANEYA Technical Academy 〜 OMOGANEYA Technical School 〜

Technical Academy

【Fundamentals of Deep Learning | Fundamentals of Mathematics and Probability for Deep Learning】1. Functions

A function is a rule that maps elements of one set to elements of another set.

A function ff from a set 𝒳\mathcal{X} to a set 𝒴\mathcal{Y} is written as f:𝒳𝒴f:\mathcal{X}\rightarrow\mathcal{Y}.
In this case, each element of the set 𝒳\mathcal{X} is associated with exactly one element of the set 𝒴\mathcal{Y}.

A function in which distinct inputs always map to distinct outputs is called an injective function.
For an injective function, the set 𝒴\mathcal{Y} may contain elements that are not associated with any input.

A function in which every element of the set 𝒴\mathcal{Y} is associated with at least one element of the set 𝒳\mathcal{X} is called a surjective function.
For a surjective function, multiple inputs may map to the same output.

A function that is both injective and surjective is called a bijective function or bijection.
For a bijective function, the elements of the two sets correspond one-to-one, with neither duplication nor omission.

A diffeomorphism is a bijection for which both the forward mapping and the inverse mapping are smooth—that is, differentiable as many times as required.

Lipschitz Constant

A function 𝒇[𝒛]\boldsymbol{f}[\boldsymbol{z}] is said to be Lipschitz continuous if there exists a constant β\beta such that the following inequality holds for any 𝒛1\boldsymbol{z}_1 and 𝒛2\boldsymbol{z}_2.

𝒇[𝒛1]𝒇[𝒛2]β𝒛1𝒛2(1-1)\left\| \boldsymbol{f}[\boldsymbol{z}_1] – \boldsymbol{f}[\boldsymbol{z}_2] \right\| \leq \beta \left\| \boldsymbol{z}_1-\boldsymbol{z}_2 \right\| \tag{1-1}



Here, β\beta is the Lipschitz constant.
Equation (1-1) describes how much the distance between the outputs can change in relation to a change in the distance between two inputs.

A function with a small Lipschitz constant changes gradually in response to changes in its input, whereas a function with a large Lipschitz constant may exhibit rapid changes in its output.

A function with a Lipschitz constant of less than 1 is called a contraction mapping.

In a space satisfying the appropriate conditions, the Banach fixed-point theorem shows that repeatedly applying a contraction mapping converges to a unique fixed point, regardless of the initial value.

A fixed point is a point whose value remains unchanged when the function is applied.

If two functions with Lipschitz constants β1\beta_1 and β2\beta_2 are added, their sum is also Lipschitz continuous, with a Lipschitz constant no greater than β1+β2\beta_1+\beta_2.

For the affine transformation 𝒇[𝒛]=𝑨𝒛+𝒃\boldsymbol{f}[\boldsymbol{z}]=\boldsymbol{A}\boldsymbol{z}+\boldsymbol{b}, the Lipschitz constant with respect to the Euclidean distance is given by the spectral norm of the matrix 𝑨\boldsymbol{A}, which is its largest singular value.

Convexity

A function is called a convex function if, for any two points on its graph, the line segment connecting them always lies on or above the graph of the function.
Conversely, a function is called a concave function if the line segment connecting any two points on its graph always lies on or below the graph.

For a convex function, every local minimum is also a global minimum.
However, a convex function with a flat region may have more than one minimum point.

By contrast, for a strictly convex function, in which the line segment lies strictly above the graph except at its endpoints, there is at most one minimum point.
The corresponding relationships are reversed for concave functions, so every local maximum is also a global maximum.

A strictly concave function has at most one maximum point.

A region in D\mathbb{R}^{D} is called a convex set if, for any two points selected from the region, the entire line segment connecting those points is contained within the region.

Convexity is important when considering the loss functions used to train models. Because every local minimum of a convex function is also a global minimum, the properties of its minima are easier to understand than those of a non-convex function.

Under appropriate conditions, methods such as gradient descent can be used to find the global minimum of a convex function.

Function Notation

In this article, arguments are enclosed in square brackets following the name of a function.
For example, log[x]\log[x] denotes a function that returns the logarithm of the variable xx.

A function that returns a vector is written in lowercase bold type.
For example, 𝒚=mlp[𝒙,𝝓]\boldsymbol{y}=\boldsymbol{\mathrm{mlp}}[\boldsymbol{x},\boldsymbol{\phi}] represents a function that takes the vector 𝒙\boldsymbol{x} and the parameter vector 𝝓\boldsymbol{\phi} as arguments and returns the vector 𝒚\boldsymbol{y}.

A function that returns a matrix or tensor is written in uppercase bold type.
For example, 𝒀=Sa[𝑿,𝝓]\boldsymbol{Y}=\boldsymbol{\mathrm{Sa}}[\boldsymbol{X},\boldsymbol{\phi}] represents a function that takes the matrix 𝑿\boldsymbol{X} and the parameter vector 𝝓\boldsymbol{\phi} as arguments and returns the matrix 𝒀\boldsymbol{Y}.

When the specific argument of a function is not stated, a bullet symbol is used, as in f[]f[\bullet].

Special Functions

Deep learning uses various special functions, including the exponential function, logarithm, and gamma function.

Exponential Function

The exponential function y=exp[x]=exy=\exp[x]=e^x maps a real number xx\in\mathbb{R} to a positive real number y>0y\in\mathbb{R}_{>0}.
Regardless of the real value of xx, the output of the exponential function is always positive.

Logarithm

The logarithm x=log[y]x=\log[y] is the inverse of the exponential function.
It takes a positive real number y>0y\in\mathbb{R}_{>0} as its input and returns a real number xx\in\mathbb{R}.

Therefore, if y=exy=e^x, then x=log[y]x=\log[y].

Gamma Function

The gamma function Γ[x]\Gamma[x] is defined for x>0x>0 by the following equation.

Γ[x]=0tx1etdt(1-2)\Gamma[x] = \int_{0}^{\infty} t^{x-1}e^{-t} \,dt \tag{1-2}



The gamma function extends the factorial to positive real numbers. For positive integers x{1,2,}x\in\{1,2,\ldots\}, the relation Γ[x]=(x1)!\Gamma[x]=(x-1)! holds.

Dirac Delta Function

The Dirac delta function δ[𝒛]\delta[\boldsymbol{z}] is zero everywhere except at 𝒛=0\boldsymbol{z}=\boldsymbol{0} and is treated so that its integral over the entire domain equals 1.
Intuitively, all of its area or volume can be regarded as being concentrated at 𝒛=0\boldsymbol{z}=\boldsymbol{0}.

Strictly speaking, it is not an ordinary function but is treated as a distribution or generalized function. Nevertheless, the term Dirac delta function is widely used in physics, engineering, and applied mathematics.

A dataset consisting of N data points can be represented as a probability distribution composed of N delta functions, each centered at a data point 𝒙i\boldsymbol{x}_i and assigned a weight of 1/N.

A delta function is generally represented by an arrow on a graph.

The Dirac delta function has the property of extracting the value of a function at a specific point.
This property is expressed by the following equation.

Df[𝒙]δ[𝒙𝒙0]d𝒙=f[𝒙0](1-3)\int_{\mathbb{R}^{D}} f[\boldsymbol{x}] \delta[\boldsymbol{x}-\boldsymbol{x}_0] \,d\boldsymbol{x} = f[\boldsymbol{x}_0] \tag{1-3}



Equation (1-3) shows that multiplying the function f[𝒙]f[\boldsymbol{x}] by a delta function centered at 𝒙0\boldsymbol{x}_0 and integrating over the entire domain yields f[𝒙0]f[\boldsymbol{x}_0].

Functions for Expressing Minimum and Maximum Values

min\min and arg min\operatorname{arg\,min} are both related to minimizing a function, but they return different values.
minxf[x]\underset{x}{\min}\,f[x] returns the minimum value of the function f[x]f[x] over the range of possible values of xx.

By contrast, arg minxf[x]\underset{x}{\operatorname{arg\,min}}\,f[x] represents the value of xx that minimizes the function f[x]f[x].
If multiple values of xx minimize the function, they are treated as a set.

If the minimizing value of xx is unique and is denoted by yy, the following relationship holds.

y=arg minxf[x]minxf[x]=f[y](1-4)\begin{aligned} y &= \underset{x}{\operatorname{arg\,min}} \, f[x] \\ \underset{x}{\min} \, f[x] &= f[y] \end{aligned} \tag{1-4}


Similarly, maxxf[x]\underset{x}{\max}\,f[x] returns the maximum value of the function, whereas arg maxxf[x]\underset{x}{\operatorname{arg\,max}}\,f[x] returns the value of xx that maximizes the function, or the set of such values.


About This Article

References
Understanding Deep Learning I: Supervised Learning and the Foundations of Models, Simon J. D. Prince, translated by Toshiaki Kurokawa
Understanding Deep Learning II: Unsupervised Learning, Reinforcement Learning, and Ethics, Simon J. D. Prince, translated by Toshiaki Kurokawa
・“Convex Optimization—Convex Sets,” Stephen Boyd, Lieven Vandenberghe, Parth Nobel, Stanford University
・“Convex Optimization—Convex Functions,” Stephen Boyd, Lieven Vandenberghe, Parth Nobel, Stanford University
・“DLMF §5.2 Definitions—Gamma Function,” National Institute of Standards and Technology (NIST)
・“DLMF §1.17 Integral and Series Representations of the Dirac Delta,” National Institute of Standards and Technology (NIST)

(Last accessed: September 21, 2026)


Note: This article was organized and restructured based on the author’s understanding, with reference to the publications listed above.


Written by

Company
Lightcone Technology Inc.
Business
Planning, Development, and Operation of LLM-Powered AI Services
Planning, Development, and Operation of Web and Mobile Applications
Website Planning and Development
Research and Development of AI Foundation Technologies
URL
https://lc-techno.com/
Contact
info@lc-techno.com
View Company Page
contact

Feel free to contact us about listing your products or services, questions on existing listings, or procurement, sales, and trade support through OMOGANEYA.