# Maximize function subject to condition [closed]

What commands should I use in Mathematica to obtain the maximum or minimum of a function subject to conditions?

For example, find the maximum of the following function?

$$\qquad T=\sqrt[3]{2\,x+5} + \sqrt[3]{2\,y+5} , x > 0 ,y > 0 , x + y=3$$

• Maximize -- just search for it in the docs. – Michael E2 Jan 28 '19 at 19:50
• BTW, people here generally like users to post code as Mathematica code instead of just images or TeX, so they can copy-paste it. It makes it convenient for them and more likely you will get someone to help you. You may find this this meta Q&A helpful – Michael E2 Jan 28 '19 at 19:51
• Edited ... .... – Walter Jan 28 '19 at 20:05

For the maximum

Maximize[
{Power[2 x + 5, (3)^-1] + Power[2 y + 5, (3)^-1], x > 0, y > 0, x + y == 3},
{x, y}]


{4, {x -> 3/2, y -> 3/2}}

For the minimum, Mathematica says there no minimum on the line x + y == 3 that is a minimum with the open set of the search space.

• ,thanks, it is not clear to me the use of Power in replacement of the cubic roots of each expression, please clarify – Walter Jan 28 '19 at 21:09
• I get it. Thank You – Walter Jan 29 '19 at 2:01