WOLFRAM NOTEBOOK

WOLFRAM|DEMONSTRATIONS PROJECT

Lagrange's Milkmaid Problem

change river course
1.75
This Demonstration visualizes a classical example of constrained optimization using a Lagrange multiplier.
In the milkmaid problem [1], a milkmaid walks from her home at
M
to the river at the point
P
, draws a bucket of water, and brings it to the cow at
C
. The problem seeks to minimize the total distance traveled,
|MP|+|PC|
.
Use the slider to change the course of the river and drag the locators to change the positions of the maid and the cow. The red dashed arrows mark the path with minimal distance.
The curves of constant distance
d
from
M
to
C
via a variable point
P
are ellipses with
M
and
C
as focal points. At the point
P
on the river where the distance
d
is minimized, there must be a common tangent to the river and the ellipse of the minimal distance.
Wolfram Cloud

You are using a browser not supported by the Wolfram Cloud

Supported browsers include recent versions of Chrome, Edge, Firefox and Safari.


I understand and wish to continue anyway »

You are using a browser not supported by the Wolfram Cloud. Supported browsers include recent versions of Chrome, Edge, Firefox and Safari.