Skip to content

Chapter 1: Mathematical Background ​

This chapter establishes all mathematical preliminaries needed throughout the course, from basic linear algebra and calculus to foundational optimization concepts.


1.1 What Is Optimization? ​

Optimization is the process of finding the best decision among a set of alternatives, subject to restrictions.

The Optimization Model ​

The standard formulation of an optimization problem is:

minimizef(x)subjecttox∈X

where:

Decision variable(s) x: represents some action or choice we control.

Objective function f(⋅): represents total cost, risk, or negative profit (the quantity we wish to minimize or maximize).

Constraint set X: puts restrictions on the permissible choices of x.

Why Optimization Matters ​

Optimization appears across virtually every domain:

  • Applied science, engineering, economics, finance, medicine, statistics, business
  • General decision and policy making
  • Image inpainting (filling missing regions)
  • Recommendation systems (predicting user preferences)
  • Linear and logistic regression (predictive modeling)
  • Neural networks (deep learning)
  • Portfolio design, logistics, diet planning

As Maupertuis (1698–1759) proclaimed:

"...nothing at all takes place in the Universe in which some rule of maximum or minimum does not appear."

Key Conceptual Distinctions ​

Global vs. local optimum: A global optimum is the best among all feasible points; a local optimum is best only within a neighborhood.

Feasible vs. infeasible point: A feasible point satisfies all constraints; an infeasible point violates at least one constraint.

Constrained vs. unconstrained optimization: A constrained problem has X⊊Rn; an unconstrained problem has X=Rn.

Linear vs. nonlinear optimization: A linear problem has a linear objective and linear constraints; a nonlinear problem has at least one nonlinear function.

Convex vs. nonconvex optimization: A convex problem has a convex objective minimized over a convex feasible set; nonconvex problems may have multiple local optima.


1.2 Inner Products ​

Inner Product of Vectors ​

Definition: For vectors x,y∈Rn, the inner product (dot product) is

⟨x,y⟩=x⊤y=∑i=1nxiyi

Geometric Interpretation ​

The angle θ between x and y is defined by

cos⁡θ=⟨x,y⟩∥x∥∥y∥,∥x∥=⟨x,x⟩
  • θ=0∘⇒ vectors point in the same direction
  • θ=90∘⇒ vectors are orthogonal (perpendicular)
  • θ=180∘⇒ vectors point in opposite directions

Example:

x=[12],y=[31]⟹⟨x,y⟩=1⋅3+2⋅1=5,θ=cos−1(5510)

Frobenius Inner Product of Matrices ​

Definition: For matrices A,B∈Rm×n, the Frobenius inner product is

⟨A,B⟩F=∑i=1m∑j=1nAijBij=trace(A⊤B)

The angle between matrices is defined analogously:

cos⁡θ=⟨A,B⟩F∥A∥F∥B∥F

Example:

A=[1203],B=[2110]⟹⟨A,B⟩F=1⋅2+2⋅1+0⋅1+3⋅0=4

1.3 Norms ​

A norm ∥⋅∥ measures the length or magnitude of a vector (or matrix). It satisfies:

  1. ∥x∥≥0, and ∥x∥=0⟺x=0
  2. ∥αx∥=|α|∥x∥ (homogeneity)
  3. ∥x+y∥≤∥x∥+∥y∥ (triangle inequality)

Common Vector Norms ​

Euclidean Norm (ℓ2 norm) ​

∥x∥2=∑i=1nxi2

The most familiar norm, corresponding to geometric length.

ℓ1 Norm ​

∥x∥1=∑i=1n|xi|

Sum of absolute values. Promotes sparsity in optimization (e.g., LASSO, basis pursuit).

Chebyshev Norm (ℓ∞ norm) ​

∥x∥∞=maxi|xi|

Maximum absolute component. Used in worst-case analysis.

ℓp Norm (general, p≥1) ​

∥x∥p=(∑i=1n|xi|p)1/p

Recovers ℓ1 when p=1, ℓ2 when p=2, and approaches ℓ∞ as p→∞.

Frobenius Norm (Matrix Norm) ​

∥A∥F=⟨A,A⟩F=∑i,jAij2

The Frobenius norm treats a matrix as a vector in Rmn; it is the ℓ2 norm of the vectorized matrix.


1.4 Symmetric Matrices ​

Definition: A square matrix A∈Rn×n is symmetric if

A=A⊤or equivalentlyAij=Aji for all i,j

Key Properties ​

  • All eigenvalues are real. This is a consequence of symmetry and guarantees that eigenvalue-based analysis is well-defined.
  • Eigenvectors corresponding to distinct eigenvalues are orthogonal.
  • Symmetric matrices are diagonalizable by an orthogonal matrix. There exists Q with Q⊤Q=I and a diagonal Λ such that A=QΛQ⊤.

Eigenvalue Decomposition ​

If A is symmetric, it admits the decomposition

A=QΛQ⊤=∑i=1nλiqiqi⊤

where:

  • Q=[q1q2…qn] is orthonormal: Q⊤Q=I
  • Λ=diag(λ1,λ2,…,λn) with λi∈R
  • Each term λiqiqi⊤ is a rank-1 symmetric matrix

1.5 Positive Semidefinite (PSD) Matrices ​

Definition: A symmetric matrix A∈Rn×n is positive semidefinite (PSD), denoted A⪰0, if

x⊤Ax≥0∀x∈Rn

Key Properties ​

  • Eigenvalue characterization: All eigenvalues of A are nonnegative: λi≥0.
  • PSD matrices are symmetric, hence diagonalizable by orthogonal matrices.
  • Cholesky factorization: If A⪰0, then A=BB⊤ for some B∈Rn×n (matrix square root).
  • The set of PSD matrices forms a convex cone. That is, if A,B⪰0 and α,β≥0, then αA+βB⪰0.

PSD Cone ​

Denote:

  • Sn={X∈Rn×n:X⊤=X} — the set of n×n symmetric matrices
  • S+n={X∈Sn:X⪰0} — the positive semidefinite cone
  • S++n={X∈Sn:X≻0} — the positive definite cone (strict inequality, all eigenvalues >0)

1.6 Gradient and Hessian ​

For a multivariate function f:Rn→R:

Gradient (First-Order Information) ​

Gradient: The gradient points in the direction of steepest increase:

∇f(x)=[∂f∂x1∂f∂x2⋮∂f∂xn]∈Rn

Hessian (Second-Order Information) ​

Hessian: The matrix of second-order partial derivatives describing local curvature:

∇2f(x)=[∂2f∂x12∂2f∂x1∂x2⋯∂2f∂x1∂xn∂2f∂x2∂x1∂2f∂x22⋯∂2f∂x2∂xn⋮⋮⋱⋮∂2f∂xn∂x1∂2f∂xn∂x2⋯∂2f∂xn2]∈Rn×n

The Hessian is symmetric when f is twice continuously differentiable (by Clairaut's theorem).

Quadratic Form Example ​

Let f(x)=x⊤Ax+b⊤x+c, with A∈Rn×n symmetric, b∈Rn, c∈R. Then:

∇f(x)=2Ax+b,∇2f(x)=2A

1.7 Lines, Line Segments, and Rays ​

Given two points x,y∈Rn, define the direction vector d:=y−x.

Parametric Representations ​

Line through x and y:

ℓx,y={x+θd∣θ∈R}

Line segment from x to y:

[x,y]={x+θd∣θ∈[0,1]}={(1−θ)x+θy∣θ∈[0,1]}

Ray starting at x going through y:

xy→={x+θd∣θ≥0}

Geometric Intuition ​

  • The line extends infinitely in both directions.
  • The line segment is the convex combination of x and y, bounded between them.
  • The ray extends infinitely in the direction from x toward y.

These primitive sets are the building blocks of convex geometry. The line segment representation

z=(1−θ)x+θy,θ∈[0,1]

is called a convex combination of x and y, and it is the central operation in the definition of convex sets.


1.8 Summary of Mathematical Preliminaries ​

ConceptKey Formula / Property
Inner product (vectors)⟨x,y⟩=x⊤y=∑xiyi
Frobenius inner product⟨A,B⟩F=trace(A⊤B)
Orthogonality⟨x,y⟩=0⇔θ=90∘
ℓ2 norm|x|2=∑xi2
ℓ1 norm|x|1=∑|xi|
ℓ∞ norm|x|∞=maxi|xi|
ℓp norm|x|p=(∑|xi|p)1/p
Frobenius norm|A|F=∑Aij2
Symmetric matrixA=A⊤, eigenvalues real
Eigenvalue decompositionA=QΛQ⊤
PSD matrixx⊤Ax≥0∀x, λi≥0
PSD convex coneαA+βB⪰0 for α,β≥0
Gradient∇f(x)∈Rn, direction of steepest increase
Hessian∇2f(x)∈Rn×n, local curvature
Line through x,y{x+θ(y−x)∣θ∈R}
Line segment [x,y]{(1−θ)x+θy∣θ∈[0,1]}
Ray xy→{x+θ(y−x)∣θ≥0}

These mathematical tools form the foundation for the study of convex sets, convex functions, and optimization algorithms in the chapters that follow.