Function Operations
Contents
9.10. Function Operations#
In this section we discuss various operations which generate new functions from a given function, a pair of functions or a family of functions. We discuss if the properties like convexity and closedness are preserved under these function operations. Such operations include, scaling, sum, composition, pointwise supremum, partial minimization, etc..
Main references for this section are [9, 17].
9.10.1. Scaling and Addition of Convex Functions#
Here we show some basic results about operations that preserve convexity
Theorem 9.101 (Nonnegative multiplication)
If
Proof. Assume
Now, let
Thus,
Theorem 9.102 (Convex function sum)
If
Proof. We discussed earlier that
Recall from Theorem 9.25
that intersection of convex sets is convex.
Thus,
Now let
Since
is convex, henceSince
is convex, henceAdding the two inequalities, we get:
Thus,
is convex.
Theorem 9.103 (Conic combinations of convex functions)
If
is also convex.
The conic combinations are also called nonnegative weighted sums.
Proof. Due to Theorem 9.101,
Due to Theorem 9.102, sum of two convex functions is convex.
It can be easily shown by mathematical induction
that sum of
Thus,
Theorem 9.104
The set of convex functions in the vector space of real valued functions form a convex cone.
Note that the set of real valued functions forms a vector
space over
Proof. Since every conic combination of convex functions is convex, hence the set of convex functions is a convex cone.
Theorem 9.105 (Concave function sum)
If
Proof. We proceed as follows:
Let
and be concave. and are convex.By Theorem 9.102,
is convex.Thus,
is concave.
Theorem 9.106 (Conic combinations of cave functions)
If
is also concave.
Proof. We proceed as follows:
If
are concave then are convex.By Theorem 9.103,
is convex.Thus,
is convex.Thus,
is concave.
9.10.2. Composition with Nondecreasing Functions#
Theorem 9.107 (Composition with a convex nondecreasing function preserves convexity)
Let
Then, their composition
with
Proof. We note that
Choose any
We need to show that
If
, then . Similarly, if , then .In either case, the convexity inequality will be satisfied trivially.
Let us now consider the case where
.By convexity of
, we have:Note that
is a convex combination of and .Since
is nondecreasing, hence if then .By applying
on both sides of the previous inequality, we obtainThus,
is convex.
Example 9.50 (Exponential of a convex function)
Recall from Example 9.42 that the exponential function
Then, for any convex
Example 9.51 (Power of a nonnegative convex function)
Let
Then,
Let
Then,
is also convex.
Example 9.52 (Power of a norm)
Let
Then, the
is convex.
The norm is a convex and nonnegative function.
is convex.By Theorem 9.107,
is convex.
Example 9.53 (Reciprocal of a concave function)
Let
Since
is concave, hence is convex.For all
, .Consider the function
It is easy to see that
is convex with the domain (Example 9.44).We can see that,
.Since
is convex and negative, is also convex with .
Example 9.54 (Scaling and translation of a convex function)
Let
Let
Then,
Thus,
9.10.3. Composition with Affine Mapping#
Theorem 9.108 (Affine transformations preserve convexity)
Let
with
If
Proof. Assume
If we define
as then . , so defined, is an affine transformation.By Theorem 9.32,
is convex since is convex.Let
. . Define . . Define .By definition,
.Let
.Since
is convex, henceNow
Thus,
satisfies the convexity defining inequality (9.1).Thus,
is convex.
A similar argument shows that if
9.10.4. Sum of Functions#
Theorem 9.109 (Sum of convex functions)
Let
We note that since both
Proof. Convexity of the domain
Since
is convex, hence is a convex set.Since
is convex, hence is a convex set.By definition of function sum
.Intersection of convex sets is convex.
Hence,
is convex.
We note that
If
Convexity inequality
Let
. Let .Then,
as well as .By convexity of
By convexity of
Summing these inequalities, we get:
Corollary 9.7 (Sum of multiple convex functions)
Let
Proof. We note that
Let
for .By Theorem 9.109,
is a proper convex function.Assume that
is a proper convex function for some .Then,
.Since both
and are proper convex, hence is also a proper convex function.
Theorem 9.110 (Conic combination of convex functions)
Let
Then, the function
Proof. By Example 9.54,
By Corollary 9.7, their sum is a proper convex function.
Example 9.55 (Restricting the domain of a convex function)
Let
Let
Consider the proper function
By Theorem 9.109,
Thus,
9.10.5. Construction from #
One way to construct convex functions on
Theorem 9.111 (Construction from convex sets of
Let
Then,
We note that
Proof. Convexity of domain of
We note that for some
, if there is no such that , then and .Thus, if
, then there exists such that .Let
and .Then, there exists
and for some .Since
is convex, henceBut then,
.Thus,
.Thus,
is convex.
Convexity inequality in the domain
Let
and .Let
.Let
.By definition of
, and .Let
.Let
.We have
.Since
is convex, hence for every and every , the point .Thus, for every
and every , .But then,
for every and every .Thus, taking infimum on the R.H.S. over
and ,In other words
Thus,
is convex.
We note that
9.10.6. Pointwise Supremum#
9.10.6.1. Two Functions#
Theorem 9.112 (Pointwise maximum of two convex functions)
Let
with
Proof.
Let
Thus,
9.10.6.2. Multiple Functions#
Theorem 9.113 (Pointwise maximum of multiple convex functions)
Let
with
Proof. The result has been proved for the base case of 2 functions in Theorem 9.112.
Assume that it is true for
Thus, by principle of mathematical induction, the result
is true for all
9.10.6.3. Family of Functions#
Theorem 9.114 (Pointwise supremum of a family of convex functions)
Let
with
Then,
Consequently, if
Proof. We shall first verify the epigraph equality.
Let
.Then,
.Thus,
for all since .Thus,
for all .Thus,
.
Now, for the converse:
Let
.Thus,
for all .Thus,
for all .Taking the supremum over
on the L.H.S., we obtain:Thus,
.Thus,
.
Combining the two, we get:
Since
are convex functions, hence are convex sets due to Theorem 9.71.Thus,
is a convex set due to Theorem 9.26.But then,
is convex again due to Theorem 9.71.
Closedness
If
are closed for every , then is closed for every .Consequently,
is closed, since its an intersection of closed sets.Hence
is a closed function.
9.10.6.4. Largest Entry#
Example 9.56 (Convexity of the largest entry in a vector)
Let
If we introduce coordinate functions
then, we can write
Each of the coordinate functions is linear hence convex.
Thus,
9.10.6.5. Sum of Largest Entries#
Example 9.57 (Sum of
Consider a vector
Let
denote the -th largest entry of .In particular,
is the largest entry of .Then,
is the second largest entry of
.Similarly,
is the
-th largest entry of .In other words, if we sort the entries of
in descending order, we can pick the largest entries one by one.
We can introduce functions
As shown in Example 9.56,
We now introduce a function which computes the sum of
Then,
There are
ways of choose indices from the set .Let
be one of the ways to choose indices for .Let
be given byfor
.Then,
is a linear (hence convex) function for every .We can now see that
Thus,
is a maximum of convex functions.Hence
is convex.
9.10.6.6. Piecewise Linear Function#
Definition 9.54 (Piecewise linear function)
Let
A function
is called a piecewise linear or piecewise affine function.
Theorem 9.115
Piecewise linear functions are convex.
Proof. Each of the functions
9.10.7. Projection#
Theorem 9.116 (Projection for extended valued functions)
Let
If
is convex, then is convex.If
is proper and for some , then is proper.If
is closed, then is closed.
Proof. Convexity
Let
and .Then
Hence
is convex.
Properness
Since
is proper, hence for every .Since
for some , hence for the same .Hence
is proper.
Closedness
Let
for any .Let
for any .By hypothesis,
is closed for every .Consider a converging sequence
of with .Then
for every .Thus
for every .Hence
is a converging sequence of .Since
is closed, hence converges in .Hence
.Hence
.Hence
.Hence
.Hence
is closed.Hence all sublevel sets of
are closed.Hence
is a closed function.
9.10.8. Partial Minimization#
9.10.8.1. Real Valued Convex Functions#
Theorem 9.117 (Partial minimization)
Let
Assume that the infimum is finite for every
Note that it is possible that
Proof. Since
Since the infimum is finite for every
, hence .Thus,
is a convex subset of .Let
and .Take any
.By definition of the infimum, there exist some
such thatLet
.Since
is convex, henceBy definition of
Since this inequality is valid for every
, henceholds true for every
and .Thus,
is convex.
Example 9.58 (Convexity of the distance from a convex set function)
Let
We define a function
Since the norm is convex, hence
Then, by Theorem 9.117,
9.10.8.2. Proper Convex Functions#
Theorem 9.118 (Partial minimization for proper convex functions)
Let
For every
Let
Then
Proof. We first mention that since for every
We now show that
Let
and .We consider the two cases
Both
.At least one of them equals
. Without loss of generality, assume that .
Case 1:
Choose some
.By the infimum property, there exist
such thatSince
is convex, henceBy the definition of
, we haveThus we have
Since this inequality is valid for every
, henceThus
is convex for this case.
Case 2:
To show that
is convex, we need to show that .Choose any
.Since
, there exists such thatBy hypothesis in the theorem, there exists
such thatIn other words,
is finite.Using the convexity of
, we haveBy definition of
, we haveSince the inequality holds for any
and the quantity is finite, hence taking the limit on the R.H.S., we getThus
is convex for this case too.
Combining the two cases,
9.10.8.3. Extended Valued Convex Functions#
Theorem 9.119 (Partial minimization for extended valued convex functions)
Let
Then
Proof. We proceed as follows.
If
is everywhere then is empty, and is convex.Hence assume that
.If
is singleton, then also is convex and we are done.Hence assume the case where
is not a singleton.Let
and belong to .Hence
and .By definition of
, we must have sequences and of so thatPick some
.By definition of
By convexity of
Hence we have
Taking limit
on the R.H.S., we obtainHence the point
.Hence
is convex.Hence
is convex.
9.10.9. Partial Minimization and Closedness#
The closedness of a function doesn’t imply the closedness of its partial minimization. The problem is that the projection operation of a closed set to a subspace doesn’t always preserve the closedness. In this subsection, we review specific conditions under which the closedness of a function is guaranteed after partial minimization.
The results in this section draw heavily on Recession Cones. The reader is encouraged to familiarize themselves with the concepts of recession cones and lineality spaces of convex sets.
We first establish the relationship between the sublevel sets of the original function and the sublevel sets of its partial minimization.
9.10.9.1. Sublevel Sets#
Lemma 9.3 (Partial minimization and sublevel-sets)
Let
Let
where
We further note that the set on the R.H.S. is the
projection on
Proof.
for every . for every .For every
, there exists a such that .
Let
We first show that
Let
.Then
.Thus
.Hence for every
, there exists such that .Since
for every , hence for every , there exists such that .Hence
for every .Hence
.Hence
.
Now for the converse,
Let
.Then for every
, .Hence for every
, there exists such that .Also,
for every .Taking the infimum on the R.H.S., we get
.Hence
.Hence
.
Combining, we get
We see that the sublevel set of
9.10.9.2. Closedness Conditions I#
Theorem 9.120 (Partial minimization and closedness I)
Let
Let
Assume that there exists a vector
is nonempty and compact.
Then
Proof. Due to Theorem 9.119,
We shall denote the sublevel sets of
We first establish that for any nonempty sublevel set
By hypothesis
is nonempty since there exists a such that .By Definition 9.68, all nonempty sublevel sets of
have the same recession cone given by .Let
be a direction of recession of .Then
is also a direction of recession of .For any
, such a direction of recession will satisfySince, by hypothesis, the set
is compact, hence the previous statement can be true only if .Thus there is no nonzero direction of recession of
of the form .Since all sublevel sets share the same recession cone, hence for any nonempty sublevel set
, there is no nonzero direction of recession of the form .
We now show that
If
is an empty sublevel set of then its projection to is also an empty set which is a closed set.Now let
be any nonempty sublevel set of .Let
denote the projection operator given byNote that
is a linear operator.The nullspace of this projection operator is the set of vectors of the form
.Hence the nullspace of
doesn’t contain any nonzero direction of recession of .Also,
since always belongs to the lineality space of .Hence, due to Theorem 9.193, the projection of
to under is closed.By Lemma 9.3, a sublevel set of
is an infinite intersection of projections of a nested sequence of sublevel sets of .Since projection of every nonempty sublevel set of
is closed, hence an intersection of any sequence of such projections is closed.Thus every sublevel set of
is closed.Hence
is closed.
We introduce a function
For every
, there exists such that .Hence for every
, the function is proper, closed and convex due to Theorem 9.116.We can see that
By our previous argument, the function
has no nonzero direction of recession.Hence the recession cone of every nonempty sublevel set of
is .Then due to Theorem 9.181, every nonempty sublevel set is closed and bounded, hence compact.
Then due to Weierstrass theorem (Theorem 8.9), the set of minimizers of
is nonempty and compact (since one of the sublevel sets is nonempty and bounded).
We now show that
.By hypothesis, there exist
such that .Hence
.Let
.We have shown that the set of minimizers of
is nonempty and compact.Hence
for every .Hence
is proper.
9.10.9.3. Closedness Conditions II#
Theorem 9.121 (Partial minimization and closedness II)
Let
Let
Assume that there exists a vector
is nonempty and its recession cone is equal to its lineality space.
Then
Proof. The proof is along similar lines.
Due to Theorem 9.119,
We shall denote the sublevel sets of
By hypothesis
is nonempty since there exists a such that .Let
be a direction of recession of .Then
is also a direction of recession of .For any
, such a direction of recession will satisfyThus for every
and , we have .Then
is a direction of recession of .By hypothesis
.Hence
is also a direction of recession of .Thus For any
,Thus,
is also a direction of recession for due to Theorem 9.179.Hence
.Since both
and , hence .Hence
is a direction along with is constant.Hence for any nonempty sublevel set
of , a direction of recession of the form is also in the lineality space of .
We now show that
Let
be any nonempty sublevel set of .Let
be the projection operator as defined in the proof of Theorem 9.119.Then
.If
then by the previous argument.Hence
.Hence, due to Theorem 9.193, the projection of
to under is closed.Hence
is closed.
As before, we define
For every
, is proper, closed and convex.By the previous argument
.Following the arguments of Theorem 10.26, the set of minimizers of
is nonempty.Hence
is finite for every .In particular
since is nonempty.Hence
is proper.