00:01
We have a cottage and an island and we're going to have a person walk along the shore and then swim to the island.
00:09
We want to do that in minimum.
00:13
So i'll define point p.
00:15
I'll call two distances l1 and l2.
00:18
And that distance there will be x.
00:21
I get two equations that are constraints.
00:24
X squared plus 2 squared is l2 squared.
00:29
And l1 plus x equals 4.
00:31
And then our time is l1 over 4 plus l2 over 3.
00:41
We want to minimize the time.
00:44
So the objective function looks like this.
00:49
We have two constraints.
00:51
So there's two lagrange multipliers...