
























Studia grazie alle numerose risorse presenti su Docsity
Guadagna punti aiutando altri studenti oppure acquistali con un piano Premium
Questa pagina non è visibile nell’anteprima
Non perderti parti importanti!

























A quadratic form is a second degree homogeneous polynomial (i.e. a polynomial in which the sum of the exponents of the variables in each term is equal to 2 ), and is represented by an expression of the following type:
Q(x) = a 11 x^21 + 2a 12 x 1 x 2 + ... + 2a 1 nx 1 xn+
=
^ n
i=
^ n
j=
aij xixj
Using the matrix notation, the same quadratic form can be expressed in the following way:
Q(x) = x′Ax =
x 1 x 2 ... xn
a 11 a 12 ... a 1 n a 21 a 22 ... a 2 n ... ... ... ... an 1 an 2 ... ann
x 1 x 2 ... xn
where A is a symmetric square matrix. For instance, given the matrix:
50 Chapter 3. Static optimization
the associated quadratic form is:
Q(x) = x′Ax =
x 1 x 2
x 1 x 2
x 1 + 2x 2 2 x 1 + 3x 2
(^) x 1 x 2
= x^21 + 2x 1 x 2 + 2x 1 x 2 + 3x^22 = = x^21 + 4x 1 x 2 + 3x^22
It is then possible to introduce the following classification concerning quadratic forms:
Definition 9 The quadratic form Q(x) (and the corresponding matrix A) is:
Q(x) ≥ 0 ∀x and ∃x = 0 : Q(x) = 0
Q(x) ≤ 0 ∀x and ∃x = 0 : Q(x) = 0
Q(x) > 0 for some x and Q(x) < 0 for some other x
The signature of a quadratic form (i.e. the fact that it is positive definite, negative definite and so on) can be determined in two ways, using the notion of leading (or North-West) principal minors of the matrix A associated to the quadratic form, or using the notion of eigenvalues of the same matrix A.
52 Chapter 3. Static optimization
where the first three rows and the first three columns of the original matrix are considered.
It is now possible to give conditions that allow to determine the sig- nature of a quadratic form using the notion of (N-W) principal minors of the matrix associated to it. The following result holds:
Theorem 30 The quadratic form Q(x) = x′Ax is:
As a consequence, if there are principal minors of order even that are negative, or principal minors of the same order with opposite sign, the quadratic form is indefinite. In particular, the quadratic form is indefinite when the sequence of the signs of the N-W principal minors is incompatible with (+, +, +, +, ...) and (−, +, −, +, ...), and the same is true if in the sequence of the signs of the N-W principal minors there are 0 ’s such that even if we substitute these 0 ’s with + or − we obtain a sequence incompatible with (+, +, +, +, ...) and (−, +, −, +, ...). If, on the contrary, substituting these 0 ’s with + or − we obtain a sequence compatible with (+, +, +, +, ...) or (−, +, −, +, ...) it is not possible to exclude the semidefiniteness (positive in the first case, negative in the second case) of the quadratic form.
3.1. Quadratic forms and their signature 53
With reference to the second method that can be used to study the signature of a quadratic form, given a square matrix A of dimension n×n, a scalar λ and a vector x = 0 are called, respectively, an eigenvalue and an eigenvector of the matrix if they satisfy the (matrix) equation:
Ax = λx
This equation can be rewritten as:
Ax − λIx = 0
where I is the identity matrix of order n, and then:
(A − λI)x = 0
that represents a system of n homogeneous linear equations in n un- knowns. In general, given A ∈ Rm,n, x ∈ Rn^ and b ∈ Rm^ and considering the system of m equations in n unknowns:
Ax = b ⇒
a 11 x 1 + a 12 x 2 + ... + a 1 nxn = b 1 a 21 x 1 + a 22 x 2 + ... + a 2 nxn = b 2 ... am 1 x 1 + am 2 x 2 + ... + amnxn = bm
the following results hold:
Theorem 31 a) The system Ax = b has a solution ⇔ r(A) = r (A | b) b) If r(A) = r (A | b) = n (number of unknowns) ⇒ the system has only one solution c) If r(A) = r (A | b) < n (number of unknowns)⇒ the system has ∞n−r^ solutions
where r(A) is the rank of the matrix A and is the maximum order of the minors of this matrix different from 0. If A ∈ Rn,n^ (square matrix), in particular, the second statement of the theorem implies that the system has only one solution if the matrix A is of full rank (i.e. if det(A) = 0, that means that the matrix is non-singular), and if furthermore b = 0 (homogeneous system), then
3.1. Quadratic forms and their signature 55
that are the eigenvalues of A. At this point the eigenvectors associated to λ 1 = 2 can be determined considering:
(A − λ 1 I)x = 0
i.e.:
x 1 x 2
0 x 1 + 0x 2 = 0
4 x 1 − 5 x 2 = 0
⇒ x 1 =
x 2
This means that the eigenvectors associated to the eigenvalue λ 1 = 2 are all the vectors of the form:
5 4 x^2 x 2
with x 2 ∈ R (and x 2 = 0)
for instance an eigenvector is given by:
x^1 =
5 4 1
Similarly, the eigenvectors associated to λ 2 = − 3 can be determined considering: (A − λ 2 I)x = 0
i.e.:
x 1 x 2
5 x 1 + 0x 2 = 0
4 x 1 + 0x 2 = 0
⇒ x 1 = 0
This means that the eigenvectors associated to the eigenvalue λ 2 = − 3 are all the vectors of the form:
0 x 2
with x 2 ∈ R (and x 2 = 0)
for instance an eigenvector is given by:
x^2 =
56 Chapter 3. Static optimization
It is now possible to give conditions that allow to determine the sig- nature of a quadratic form using the notion of eigenvalues of the matrix associated to it. The following result holds (here λi with i = 1, 2 , ..., n denotes the i-th eigenvalue of the matrix A):
Theorem 32 The quadratic form Q(x) = x′Ax is:
3.2. Maxima and minima for functions of
n variables
Given a function of n variables f : X ⊆ Rn^ → R it is now possible to introduce the notions of maxima and minima and to study the problem of maximization (and minimization) of this function, distinguishing between the unconstrained case and the constrained case. Assuming that X is an open set, the following definitions hold:
Definition 10 The function f has a:
58 Chapter 3. Static optimization
(ii) Second-order conditions (sufficient)
∇^2 f (x∗) negative definite at a stationary point x∗^ ⇒ x∗^ strict local maximum
∇^2 f (x∗) positive definite at a stationary point x∗^ ⇒ x∗^ strict local minimum
∇^2 f (x∗) indefinite at a stationary point x∗^ ⇒ x∗^ saddle point
In particular, first-order conditions show that the solution of an uncon- strained optimization problem is a critical point (i.e. a point in which the gradient of the objective function vanishes) and in general they are only necessary, but they become sufficient if the objective function f is concave (in the case of a maximization problem) or convex (in the case of a minimization problem). With reference to this aspect, the following results hold:
(i) Necessary and sufficient conditions
f is concave ⇔ ∇^2 f (x) is negative semidefinite ∀x
f is convex ⇔ ∇^2 f (x) is positive semidefinite ∀x
(ii) Sufficient conditions
∇^2 f(x) negative definite ∀x ⇒ f strictly concave
∇^2 f(x) positive definite ∀x ⇒ f strictly convex
and when the function is strictly concave (or convex) the maximum (or minimum) is also unique. In these cases, by computing the value of the objective function in correspondence of the critical points and by com- paring the values obtained it is possible to find immediately maximum and minimum of the function. When f is not concave or convex, on the contrary, first-order condi- tions are only necessary and to solve the optimization problem we must resort to second-order conditions. In this case, first of all we look for the critical points of the objective function, then we compute the hessian
3.2. Maxima and minima for functions of n variables 59
matrix of the objective function in correspondence of the critical points just found and we study the signature of this matrix.
For instance, given the problem:
max x,y f (x, y) = − 3 x^2 − 2 y^2 + xy
we use first of all first-order conditions to find the stationary points of the objective function; the first partial derivatives of f are:
∂f ∂x
= − 6 x + y
∂f ∂y
= − 4 y + x
and then we have:
∇f (x, y) = 0 ⇒
∂f ∂x = 0 ∂f ∂y = 0
− 6 x + y = 0
− 4 y + x = 0
x = 0
y = 0
i.e. the only stationary point in this case is A = (0, 0). The second partial derivatives of f then are:
∂^2 f ∂x^2
∂^2 f ∂x∂y
∂^2 f ∂y^2
and the hessian matrix is:
∇^2 f (x, y) =
= ∇^2 f (A)
that is also the hessian matrix in correspondence of the stationary point A = (0, 0) found above. For this matrix the sequence of the signs of the N-W principal minors is −, + hence ∇^2 f (A) is negative definite and A is a strict local maximum. Furthermore, since in this case the hessian matrix is everywhere (and not only at the point A) negative definite, the objective function f is strictly concave and A is also the (unique) global maximum.
3.2. Maxima and minima for functions of n variables 61
in this case the functions h and q are called “implicit functions” (in the equation f (x, y) = 0). For instance, given the equation:
y − x + 1 = 0
we get immediately:
y = h(x) = x − 1
that is the explicit function corresponding to the implicit one contained in the original equation, while if we consider the equation:
y^2 log y − x + 1 = 0
it is not possible to obtain the explicit function y = h(x). In this case, nevertheless, it is possible to get information about this function using the implicit function theorem. The following result holds:
Theorem 34 Given a function f : X ⊆ R^2 → R and a point (x∗, y∗) such that: (i) f (x∗, y∗) = 0 (ii) f ∈ C^1 (i.e. f has continuous partial derivatives) in a neighbor- hood of (x∗, y∗)
(iii) fy (x∗, y∗) = 0 then there exist a neighborhood U (x∗, y∗) of (x∗, y∗) and a function y = h(x) with h : A → R (where A = {x | (x, y) ∈ U(x∗, y∗)}, i.e. A is the set of the x’s that belong to the neighborhood U) such that:
(i) f (x, h(x)) = 0 ∀x ∈ A (ii) h(x) ∈ C^1
(iii)
dy dx
dh dx
fx(x, y) fy(x, y)
In the same way, if the hypothesis (iii) is replaced by the assumption fx (x∗, y∗) = 0 it is possible to obtain an implicit function x = q(y) with derivative: dx dy
dq dy
fy (x, y) fx(x, y)
62 Chapter 3. Static optimization
Considering for instance the equation:
y^2 log y − x + 1 = 0
for which the explicit function y = h(x) cannot be obtained, it is possible to apply the implicit function theorem and to conclude that the derivative of this (implicit) function is:
dy dx
fx(x, y) fy(x, y)
y^2 · (^1) y + 2y log y
y(1 + 2 log y)
This theorem can be used to solve the constrained maximization pro- blem introduced above:
max x,y
f(x, y) subject to g(x, y) = b
In fact, if for instance gy(x, y) = 0, from the constraint we know that there exists an implicit function y = y(x) (the same reasoning holds if gx (x, y) = 0, so that there exists an implicit function x = x(y)), hence the original problem becomes a new problem in the variable x only:
max x f (x, y(x)) subject to g(x, y(x)) = b
Remembering that when we have a function f (x, y(x)), that depends only on the variable x, its (total) derivative with respect to this variable can be obtained through the “chain rule” in the following way:
df dx
∂f ∂x
∂f ∂y
dy dx
we have that, in the problem considered above, the necessary condition for a maximum of a function of one variable is that its total derivative equals 0 , hence we get:
df dx
= 0 ⇒ fx + fy
dy dx
By the implicit function theorem applied to the constraint of the problem we then get: dy dx
gx gy
64 Chapter 3. Static optimization
require the introduction of the hessian matrix of the Lagrangian function, given by:
∇^2 L(x, y, λ) =
0 gx gy gx Lxx Lxy gy Lyx Lyy
that can also be interpreted as the hessian of the Lagrangian only with respect to the variables x and y (not with respect to λ) bordered with the gradient of the constraint, and for this reason this matrix is also called “bordered hessian”. More precisely, to solve the original problem considered above it is possible to use the following result:
Theorem 35 a) If f : X ⊆ R^2 → R and g : A ⊆ R^2 → R are differ- entiable with ∇g(x∗, y∗) = 0 and (x∗, y∗) is a local constrained maximum (minimum), then there exists λ∗^ ∈ R such that (x∗, y∗, λ∗) is a stationary point for the Lagrangian function:
L(x, y, λ) = f (x, y) + λ(b − g(x, y))
i.e. ∇L(x∗, y∗, λ∗) = 0. b) If the Lagrangian function L has second derivatives which are con- tinuous at (x∗, y∗, λ∗) (stationary point, i.e. such that ∇L(x∗, y∗, λ∗) = 0 ) and det ∇^2 L(x∗, y∗, λ∗) > 0 (det ∇^2 L(x∗, y∗, λ∗) < 0 ), then (x∗, y∗) is a strict local constrained maximum (minimum).
As a consequence, to solve the problem of maximization (or mini- mization) of a function of 2 variables subject to 1 constraint it is possible to use the following conditions:
(i) First-order conditions (necessary)
(x∗, y∗) local constrained maximum (or minimum) ⇒ ∇L(x∗, y∗, λ∗) = 0
(ii) Second-order conditions (sufficient)
det ∇^2 L (x∗, y∗, λ∗) > 0 at a stationary point (x∗, y∗, λ∗) ⇒ ⇒ (x∗, y∗) strict local constrained maximum
det ∇^2 L (x∗, y∗, λ∗) < 0 at a stationary point (x∗, y∗, λ∗) ⇒ ⇒ (x∗, y∗) strict local constrained minimum
3.2. Maxima and minima for functions of n variables 65
In particular, first-order conditions show that the solution (x∗, y∗) of a constrained optimization problem is such that (x∗, y∗, λ∗) is a critical point of the Lagrangian function (i.e. a point in which the gradient of the Lagrangian function vanishes) and in general they are only necessary, but they become sufficient if the objective function f is continuous and the constraint is compact (in fact in this case by Weierstrass Theorem maximum and minimum exist), or if the objective function is concave (in the case of a maximization problem) or convex (in the case of a minimization problem) and the constraint is linear. In these cases, by computing the value of the objective function in correspondence of the critical points of the Lagrangian and by comparing the values obtained it is possible to find immediately maximum and minimum of the function. In general, however, first-order conditions are only necessary and to solve the optimization problem we must resort to second-order conditions. In this case, first of all we look for the critical points of the Lagrangian function, then we compute the hessian matrix of the Lagrangian function in correspondence of the critical points just found and we study the signature of this matrix. The conditions illustrated hold provided the gradient of the constraint evaluated at (x∗, y∗) is not null (i.e ∇g(x∗, y∗) = 0 , otherwise it is not sat- isfied one of the hypothesis of the implicit function theorem and therefore it is not possible to apply this theorem). If this condition is not satisfied we have the so-called “non-regular points”, and if these points satisfy the constraint they must be studied separately (i.e. it is necessary to com- pute the value of the objective function at these points and to compare it with the value of the same function in correspondence of the points that are candidated to be maxima or minima on the basis of the first- order and second-order conditions), because they could be a solution of the original problem (and if this happens they cannot be found using the method based on the Lagrangian function).
For instance, given the problem:
min x,y
x^2 + y^2 subject to x + y = 1
first of all it is possible to observe that the gradient of the constraint is:
∇g = [1 1]
3.2. Maxima and minima for functions of n variables 67
and therefore the hessian matrix of the Lagrangian function is:
∇^2 L(x, y, λ) =
that is also the hessian of the Lagrangian at the point A =
1 2 ,^1
, i.e. ∇^2 L(A). The determinant of this matrix is:
det ∇^2 L(A) = − 4 < 0
and from second-order sufficient conditions we can conclude that the point A′^ =
1 2
is a strict local minimum for the (constrained) function considered.
An example that shows the presence of non-regular points, then, is given by the problem:
min x,y x subject to y^2 − x^3 = 0
where the objective function depends on two variables (even if only x appears) as can be deduced from the constraint. In this case the gradient of the constraint is:
∇g =
− 3 x^2 2 y
that is equal to the null vector at (0, 0). This is a non-regular point, furthermore it satisfies the constraint and therefore it must be taken into account (while if there are non-regular points that don’t satisfy the constraints they must not be considered, because they cannot be solutions of the problem considered - since they don’t satisfy the constraints -). It is now possible to write the Lagrangian function for the problem considered, that is:
L(x, y, λ) = x + λ(x^3 − y^2 )
and its first partial derivatives are:
∂L ∂x
= 1 + 3λx^2
∂y
= − 2 λy
∂λ
= x^3 − y^2
68 Chapter 3. Static optimization
From first-order necessary conditions we then have:
∇L(x, y, λ) = 0 ⇒
∂L ∂x = 0 ∂L ∂y = 0 ∂L ∂λ = 0
1 + 3λx^2 = 0
− 2 λy = 0
x^3 − y^2 = 0
y = 0
x = 0
impossible
and in this case there aren’t stationary points of the Lagrangian function (i.e. there aren’t candidates for the solution of the problem considered). At this point it is necessary to consider the non-regular point (0, 0) found above. First of all it is possible to observe that, in the problem examined, x is always non-negative (since from the constraint we get x^3 = y^2 , hence x^3 ≥ 0 and as a consequence also x ≥ 0 ), therefore the minimum of the objective function is attained for x = 0. From the constraint we then get that when x = 0 also y = 0, hence the point (0, 0) is the solution of the problem considered, and since it is a non-regular point it cannot be obtained (as shown above) through the method based on the Lagrangian function.
The following step is the generalization of the results found for a con- strained maximization (or minimization) problem with 2 variables and 1 constraint to the case of a problem with n variables and m constraints (where m < n), given (as shown above) by:
max x f (x)
subject to g(x) = b
with:
x ∈ Rn^ b ∈ Rm
g : Rn^ → Rm^ m < n
First of all it is possible to observe that, given a (vector) function g : Rn^ → Rm:
g(x) =
g 1 (x) g 2 (x) ... gm(x)