4.133_______________________________________________________________________________
Using the definition of a line segment given in Eq. (4.71), show that the following set is convex
={|1
2+2
2−1.0 ≤0}
Solution
Assume
22 22
12 12
10; 10S xx S yy→ + −≤ → + −≤
εε
xy
;
( ) ( )
( )
11
22
1
1;
1
xy
xy
+−
+− =
+−
αα
αα
αα
xy
If we can show that
( )
[ ]
( )
[ ]
0111 2
22
2
11 ≤−α−+α+α−+α yxyx
, then S is a convex set.
( ) ( )
( ) ( ) ( ) ( )
2
2
22
11 2
22 22 22 22
1111222
11
21 1 21 1
x yx y
xxyyxxyy
αα αα
α αα α α αα α
+− + +−
= + − +− + + − +−
( )
( )
( )
( )( )
( ) ( )
12221121
121
222
2
2
2211
2
2
2
1
2
2
2
2
1
2
=α−α+α+α−+α=α−α+α−+α≤
+α−α++α−++α yxyxyyxx
where
22 22
12 12
1, 1xx yy+≤ +≤
and
are used.
The first two inequalities are derived by definition. The last inequality is derived as follows:
( )
11 2 2
cos ,xy xy+ =⋅=xy x y xy
.
Since
( )
22 22
12 12
1; 1; cos 1,xx yy= +≤ = +≤ ≤x y x, y
it follows that
.
4.134_______________________________________________________________________________
Find the domain for which the following functions are convex: (i) sin x , (ii) cos x.
Solution
1.
xfxfxf sin“ ,cos‘ ;2x0 ;sin −==π≤≤=
For a single variable function to be convex, its second derivative must be nonnegative, i.e.,
, or
2.
cos ; 0 2 ; sin , cos 0, so 2 3 2f x x f xf x x= ≤≤π =− =− ≥ π ≤≤π‘”
4.135_______________________________________________________________________________
Check for convexity of the following function. If the function is not convex everywhere, than
determine the domain (feasible set S)over which the function is convex.
(1,2)= 31
2+ 212+ 22
2+ 7
Solution
( )
7223 ,
2
221
2
121
+++= xxxxxxf
12
12
12
62 62
; ; 6 0; 20 0
24 24
xx
f MM
xx
+
= = =>=>
+
H.Ñ
Function f is convex everywhere since its Hessian is positive definite.