00:01
All right, so here we have this profit function from the sale of x units of a certain product and y units of another product is pxy.
00:16
So we're selling x units of one, y, the other, minus 2x squared, minus y squared, plus 10x plus 12y.
00:31
So we're trying to of course maximize our profit subject to well we need to sell 15 units.
00:42
So that's x plus y is 15 but let's set that up as a constraint.
00:47
So we want x plus y minus 15 to be 0 in this function gxy.
00:53
So if we take our partials, px is negative 4 x plus 10, p y is negative 2 y plus 12 gx and gy are both 1 so negative 4x plus 10 is lambda and negative 2y plus 12 is lambda so we can subtract so we have let's take this one and subtract this one negative 2y plus 4x plus 2 is 0 okay, so in other words, 2y minus 4x is 2.
01:46
And then if we look at our constraint equation, we have y plus x is 15, so we can multiply this by 2.
01:57
And we get 2y plus 2x is 30.
02:02
Then we can subtract so we get zero negative subtract so negative six x is negative 28 okay and so x is okay 28 over 6 which is uh 4 and then a little bit so 4 and then looks like uh one -third of another unit.
02:50
Okay, and then y will then be well x plus y needs to be 15.
02:59
So this will be 10 units of y and then two -thirds of another unit...