JEE-OPT Using Python PDF
JEE-OPT Using Python PDF
JEE-OPT
Problem 16
P.Srijith Reddy,
EE19BTECH11041,
Dept. of Electrical Engg.,
IIT Hyderabad.
1/9
Outline
1 Problem
2 Solution
3 Plot
2/9
Problem
Problem Statement
on the set
A = {x : x 2 + 20 ≤ 9x} (2.2)
3/9
Solution
Solution
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
f 0 (x) = 0 (3.4)
5/9
Solution
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 (5) = 7. (3.12)
6/9
Solution
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.
Plot
plots Fig. 2.
9/9