00:01
To optimize this function, f here, we're going to first take the partial with respect to x of that function, which would get us 2x.
00:11
And then the partial with respect to y, which would get us 1, derivative of that.
00:16
And then same idea, the partial with respect to the constraint equation g with respect to x would get us 2x.
00:22
And the partial with respect to y would get us negative 2y.
00:27
And then from here, we're going to use these two in combination with the constraint equation itself.
00:33
But we're going to multiply each of the derivatives of the constraint equation by lambda.
00:40
And then we're going to set those equal to 2x.
00:43
So we've got 2x is equal to 2x times lambda.
00:47
We could just divide these two, and then we'd end up getting that lambda equals 1.
00:52
So first off, we've got a lambda value of 1.
00:55
That's one of our unknowns that we've knocked out.
00:57
And then we can substitute that value below, and that would get us 1 equals negative 2 y times lambda, which is 1.
01:11
And then we could divide by 2, negative 2, so that would be negative 1ā2 equals y.
01:19
And from here, we know that this is the y value of either our max or minns or both if we have both.
01:25
And so then we could go ahead and plug this back into a constraint equation and solve for x.
01:32
So we will have x squared minus a negative one -half all squared is equal to one.
01:45
And then squaring the negative one -half would get a fourth, but that's negative.
01:50
So adding it back over, we get five -fourths.
01:52
So we've got x squared is equal to five -fourths.
01:57
And then square root, remember, when we square root, we could get a plus or minus.
02:03
And so one of the answers that we'll have, when we square root is root 5, square root of 4 would get us to, comma, the same thing, but negative.
02:18
Since if we squared that, a negative would go away...