PRESENTATION 6
JEE-OPT
Problem 16
P.Srijith Reddy,
EE19BTECH11041,
Dept. of Electrical Engg.,
IIT Hyderabad.
September 30, 2019
1/9
Outline
1 Problem
2 Solution
3 Plot
2/9
Problem
Problem Statement
Find the maximum value of the function
f (x) = 2x 3 − 15x 2 + 36x − 48 (2.1)
on the set
A = {x : x 2 + 20 ≤ 9x} (2.2)
3/9
Solution
Solution
First let’s find solutions of set A
x 2 − 9x + 20 ≤ 0 (3.1)
⇒ (x − 5)(x − 4) ≤ 0 (3.2)
⇒4≤x ≤5 (3.3)
Now we need to find maximum value of f(x) in A.
firstly lets find if there is any local maximum in A .
If f(x) has local maximum(minimum) at c in A
then max(f(x)) in A =max{f(4),f(c),f(5)}
4/9
Solution
If not f(x) is monotonic in A (since f is 3 degree polynomial function)
Then max(f(x))=max{f(4),f(5)}
f 0 (x) = 0 (3.4)
when f(x) attains local maxima or minima,
f 0 (x) = 6x 2 − 30x + 36 (3.5)
A numerical solution for (3.5) can be obtained as
xn+1 = xn − µf 0 (x) (3.6)
= xn − µ(6x 2 − 30x + 36) (3.7)
where x0 is initial guess.
5/9
Solution
The numerical solutions are
x1 = 1.9998464849816984, (3.8)
x2 = 3.0001535150183014. (3.9)
but x1 , x2 ∈
/ A.
Therefore,
max(f (x)) = max{f (4), f (5)}(3.10)
f (4) = −16, (3.11)
f (5) = 7. (3.12)
6/9
Solution
The maximum value of the function
f (x) = 2x 3 − 15x 2 + 36x − 48 (3.13)
on the set
A = {x : x 2 + 20 ≤ 9x} (3.14)
is f(5)= 7
7/9
Plot
Plot
The code in
https://github.com/SRIJITH01/Srijith/blob/master/jeeopt.py
plots Fig. 2.
Figure: Graph of f(x) .
8/9
Plot
Plot
plots Fig. 2.
Figure: Graph of f(x).
9/9