Convex
Convex
A: Convex Set
Because all five points can be joined by a line segment and that line lies completely inside the set.
B: Non-Convex Set
Because two points of a star can be joined by the line segment which lies outside the set.
C:Non-Convex Set
As the set has an indent in which the points X and Y can be joined by the line segment which does not lie
completely inside the set.
5.
d
f ( x )=cf ( x )
dx
f ' ( x )=cf ( x )
d ' d
( f ( x ) )= ( cf ( x ) )
dx dx
d ' d
( f ( x ) )=c ( f ( x ) )
dx dx
d '
( f ( x ) )=c ( cf ( x ) )
dx
d2 ( ) 2 ( )
f x =c f x
d x2
As , c2 >0.
d2
So the > 0 , for all c . Thus, f ( x ) is convex set.
d x2
6.
A set c is called convex if ∀ x , y ∈C and all t ∈(0,1), the point ( 1−t ) x+ty always belongs to C.
a
A={ ∨a , b=±1 , ± 2, … }
b
3 −3 1
x= ; y= ; t=
4 4 2
1
( 1− )∗3 3 ∗1
Then 2 4
( 1−t ) x+ty= −
4 2
1 1
∗3 ∗3
2 2
− =0
4 4
A is not convex.
7.
8.
a. f ( x )=4 x−2
f ' ' ( x ) =0
f (−x )=−4 x−2
f ' ' ( x ) =0
Function is both convex and concave.
b. f ( x )=log ( x ) , x >0
−1
f '' ( x) = 2
(ln 10)x
f ' ' ( x ) < 0; for x >0
−f ( x )=−log ( x ) , x> 0
1
−f '' ( x ) = 2
(ln 10)x
f ' ' ( x ) > 0; for x >0
So, the function is concave.
c. f ( x )=e x , x >0
f ' ' ( x ) =e x
f '' ( x) > 0
So, the function is convex.
d. f ( x )=e−x , x >0
f ' ' ( x ) =e−x , x >0
f '' ( x) > 0
So, the function is convex.
e. f ( x )=cos ( x )
f ' ' ( x ) =−cos ( x )
π 3π
f ' ' ( x ) > 0; for only +2 kπ < x < +2 kπ
2 2
So, function is neither convex nor concave.
f. f ( x )=tan ( x )
2 sin x
f ' ' ( x ) =2 sec 2 x tan x=
cos 3 x
π 3π
f ' ' ( x ) > 0; for only 0< x< ∪ π < x<
2 2
So, function is neither convex nor concave.
π
g. f ( x )=tan ( x ) ; for− < x<0
2
'' 2
f ( x ) =2 sec x tan x
π
for− < x< 0
2
''
f ( x ) < 0.
−f ( x )=−tan x
π
for− < x< 0
2
''
−f ( x ) > 0.
π
So, the function is concave for− < x< 0
2
f ' ' ( x ) =2 e x ( 2 x 2+ 1)
π π
j. f ( x )=cos x ; for− < x<
2 2
''
f ( x ) =−cos x
−f ( x )=−cos x ;
−f '' ( x ) =cos x
π π
for− < x<
2 2
''
−f ( x ) > 0
So, the function is concave.
k. f ( x )=3 x 3
f ' ' ( x ) =18 x
f ' ' ( x ) > 0; for x >0
−f ( x )=−3 x 3
f ' ' (−x )=−18 x
f ' ' (−x )> 0; for x <0
So the function is neither convex nor concave
l. f ( x )=log ( x 2+ 1)
2∗(1−x 2)
f '' ( x) = 2
ln 10∗( x 2 +1 )
f ' ' ( x ) > 0; for x >1
f ' ' ( x ) < 0; for x <1
9.
10.
h ( t x 1 + ( 1−t ) x2 ) ≤ th ( x 1 ) + ( 1−t ) h ( x 2 )
∀ x1 , x 2 ∈ X ,t ∈[0,1]
Now, consider,
( f ∘ g)(t x 1+ (1−t ) x 2)
t ∈[0,1]
f ( g (t x 1+ ( 1−t ) x 2) ) ≤ f ( tg ( x 1 ) + ( 1−t ) g ( x 2 ) )
( f ∘ g ) ( t x 1+ (1−t ) x 2 ) ≤ t ( f ∘ g ) ( x 1) +(1−t ) ( f ∘ g ) ( x 2)
So, ( f ∘ g ) is convex.
11.
f '' ( x) > 0
g ( x )=−f ( x ) is concave.
Let, α ∈[0,1]
g ( ( 1−α ) x+ αy )=−f ( ( 1−α ) x+ αy )
Since f is convex,
So,
So, g is concave.
12.
f ( x )=x 3−2 x 2+ 2
g ( x )=x−2>0
f is convex and g is concave.
By definition.
1
Minimize x 2+ 2 subject to cos x ≤
2
f ( x )=x 2 +2
1
g ( x )=cos x− ≤ 0
2
2
f ( λ x+ ( 1−λ ) y )=( λ x + ( 1− λ ) y ) + 2
λ f ( x )= λ ( x 2+2 )
( 1−λ ) f ( y )=( 1−λ)( y 2 +2)
f ( λx+ ( 1−λ ) y ) ≤ λ f ( x ) + ( 1− λ ) f ( y )
For y,
1
g ( λx + ( 1−λ ) y ) =cos ( λ x +(1−λ) y )−
2
1
(
λ g ( x )=λ cos x−
2 )
1
( 1−λ ) g ( y )=(1− λ)( cos y− )
2
So,
g ( λx + ( 1−λ ) y ) ≤ λg ( x ) + ( 1− λ ) g ( y )