# Applied Optimization

1. Mar 27, 2015

### ciubba

1. The problem statement, all variables and given/known data
An isosceles triangle has a base of length 4 and two sides of length 2sqrt(2). Let P be a point on the perpendicular bisector of the base. Find the location P that minimizes the sum of the distances between P and the three vertices.

2. Relevant equations
N/A

3. The attempt at a solution

Putting this on the cartesian coordinate system leaves me with one vertex, v1, at (0,0), v2 at (2,sqrt(2)) and v3 at (4,0).

The distance between the vertices and P would then be $$D_1=(2-x)^2+(\sqrt{2}-y)^2 \; \; D_2=(x-0)^2+(\sqrt{2}-y)^2 \; \; D_3=(4-x)^2+(0-y)^2$$ Their sum is my objective function, so $$D_t=(2-x)^2+(\sqrt{2}-y)^2 + (x-0)^2+(\sqrt{2}-y)^2 + (4-x)^2+(0-y)^2$$

I'm assuming that I can come up with a constraint by similar triangles, but this seems like an incredibly obtuse way of solving this problem. Could someone point me to a better direction?

2. Mar 27, 2015

### Abtinnn

Choose a coordinate system so that the perpendicular bisector becomes your y-axis. That would simplify things.

3. Mar 27, 2015

### ciubba

Hmm, that's a good idea.

So, v1=(-2,0) , v2=(0,sqrt(2)) , v3=(2,0)

Edit: Still number crunching

Last edited: Mar 27, 2015
4. Mar 27, 2015

### ciubba

Okay, I get

$$D_1=4+y^2, \; D_2=(\sqrt{2}-y)^2, \; D_3=4+y^2$$

Thus, the objective function, their sum, is $$D_t=(\sqrt{2}-y)^2+8+y^2$$

$$D_t'=6 y-2 \sqrt{2}$$

Which has a root at $$y=\frac{\sqrt{2}}{3}$$

Unfortunately, that is the reciprocal of the book's answer. Where did I mess up?

5. Mar 27, 2015

### Abtinnn

I think your coordinates for v2 are not correct. if the side length is 2sqrt(2), then v2 would be 2, right?

6. Mar 27, 2015

### Abtinnn

Also, your values of D1, D2, and D3 are the square of the distances, so you have to take the square root.

7. Mar 27, 2015

### ciubba

Doing that gives me the right answer-- thanks!

8. Mar 27, 2015

### Abtinnn

Any time man! :D