Hi, i'm optimizing functions and have found no problems with equality constraints, but now i have to do them with inequalities constraint, what difference should i consider solving them? I'll paste what i did
Problem:
max 2y²-x
sub x²+y²≤1
I started with writing the constraint like this
y²≤1-x²
i substituted it from the first function
2(1-x²)-x
I found the derivative and put it = 0 to find x
-4x-1
x=-1/4
having x i put that value in the constraint function to find y
y²≤1-x2
y²≤1-(-1/4)²
y≤±√15/4
I put the value of x and y in the first function to find the value of the max
x=-1/4 y=√15/4 z=17/8
Both x and y value are ±, so i did the same with x=1/4, since being y squared its value wouldn't change, and i get this
x=1/4 y=√15/4 z=13/8
To check if it's a max i found the determinant of the hessian matrix
Which is -1 <0, so a max
Is 17/8 the Max and 13/8 the Min? I feel like i'm missing something
Problem:
max 2y²-x
sub x²+y²≤1
I started with writing the constraint like this
y²≤1-x²
i substituted it from the first function
2(1-x²)-x
I found the derivative and put it = 0 to find x
-4x-1
x=-1/4
having x i put that value in the constraint function to find y
y²≤1-x2
y²≤1-(-1/4)²
y≤±√15/4
I put the value of x and y in the first function to find the value of the max
x=-1/4 y=√15/4 z=17/8
Both x and y value are ±, so i did the same with x=1/4, since being y squared its value wouldn't change, and i get this
x=1/4 y=√15/4 z=13/8
To check if it's a max i found the determinant of the hessian matrix
| 0 | -1/4 | (151/2 )/4 |
| -1/4 | 0 | 0 |
| (151/2 )/4 | 0 | 4 |
Which is -1 <0, so a max
Is 17/8 the Max and 13/8 the Min? I feel like i'm missing something