where x and y are the numbers of ml of ingredient X and ingredient Y, respectively.
Suppose ingredient X costs $4 per mland ingredient Y costs $3 per ml. Find the maximum amount of P that can be produced if no more than $500 can be spent on raw materials.
Solution using the method of Lagrange multipliers.
We need to maximize the function: