Max/Min Problem

  • #26
The answer for this is 21/6 km from D.
 
  • #27
dynamicsolo
Homework Helper
1,648
4
Will the formula be:
d = AS + BS?

Yes.

What variable am I supposed to isolate?

You'll need to identify the distance of the station from one or the other of the two points on the rail line from which you drew the perpendicular lines out to the towns. The road to each town will have formed a right triangle using each set of the lines you've drawn. The length of each road is the length of the hypotenuse of that right triangle.

You can now make a total distance function which is the total length of road to be built, using the distance I described as the variable.
 
  • #28

Attachments

  • untitled.JPG
    untitled.JPG
    15.1 KB · Views: 311
  • #29
I have the two right triangles but not sure how to find the distance from C to S or the distance from D to S. The whole thing is 6 km so will it just be 3 km and then do I find the hypotenuse?
 
  • #30
dynamicsolo
Homework Helper
1,648
4
I have the two right triangles but not sure how to find the distance from C to S or the distance from D to S. The whole thing is 6 km so will it just be 3 km and then do I find the hypotenuse?

This is where you pick your variable. Call either the distance from C to S or from D to S, x. What will the other distance be?

How would you now find the distance from A to S and from B to S? (Triangles ACS and BDS are right triangles.)
 
  • #31
I'd find it with Pythagoras.

So will it be:

(5)^2 + (3)^2 = AS^2
AS = 5.83
 
  • #32
dynamicsolo
Homework Helper
1,648
4
I'd find it with Pythagoras.

So will it be:

(5)^2 + (3)^2 = AS^2
AS = 5.83

The station isn't necessarily going to be at the midpoint, so you can't just use a '3' for that one leg CS (in fact, I'll bet money that leg won't be 3). Let's call that leg x. Then we have

5^2 + x^2 = AS^2 .

What would you write for BS^2?
 
  • #33
For BS^2, I'd write:

7^2 + (6-x)^2 = BS^2.
 
  • #34
After these formulas, I solved for AS and BS and this is what I got:

AS = 5+x
BS = 13-x

And then I substituted them into the distance formula:

d = AS + BS
d= 5+x + 13-x
da/dx = 0

I'm really confused now. :cry:
 
  • #35
dynamicsolo
Homework Helper
1,648
4
For BS^2, I'd write:

7^2 + (6-x)^2 = BS^2.

Good! Now, in principle, you would take the square root of each of these expressions to get AS and BS individually. The sum of these two lengths will be the total length of the road. You would take a derivative of that sum to work out the critical point of this function. That value of x would tell you where to put the station to minimize the length of road.

(I take back part of what I typed. You are only asked to find where to put the station, so you just need to find x and 6-x .)
 
  • #36
So will I differentiate this formula:

d = AS^2 + BS^2
or d = AS + BS
 
  • #37
I differentiated d = AS^2 + BS^2 like this

d = AS^2 + BS^2
d = 25 + x^2 + 49 + (6-x)^2
da/dx = 2x - 2(6-x)
0 = 4x-12
x = 3.

The correct answer according my text book is different though. :S
 
  • #38
dynamicsolo
Homework Helper
1,648
4
The correct answer according my text book is different though. :S

Sorry, I was thinking it would be possible to be spared having to take derivatives of the square roots, but it looks like that's unavoidable...

OK, so you want to take the square roots to get AS and BS and then minimize the function AS + BS. The algebra looks awful: you will have two terms with square roots in the denominators. But, since we want to know where this derivative is zero, we can add the two fractions and just look at when the numerator is zero.

You can put each term then on one side of the equation and square both sides to get rid of the radicals. While it now looks like you have polynomials of fourth degree, you will also find that a bunch of terms cancel out, so you really only end up with a quadratic polynomial to solve for zero. One of the solutions will be negative, so we can toss it out.
The other solution is 5/2 . Since that was the distance from C to S, the distance from D to S will be 6 - (5/2) = 7/2 km. , which matches the 21/6 you mentioned.
 
  • #39
I'm still not sure which one I should differentiate. If I do AS + BS then I get AS = 5+x and BS = 13-x. Won't the x cancel out when adding?
 
  • #40
dynamicsolo
Homework Helper
1,648
4
What you have to differentiate is

d/dx [ sqrt{25 + x^2} + sqrt{49 + (6-x)^2} ]

and set the result equal to zero. The derivative is not all that simple.

By the way, sqrt(25 + x^2) is not 5 + x and
sqrt(49 + (6-x)^2) is not 7+(6-x) .
 
  • #41
Thank you soo much! I finally got this question!
 
  • #42
dynamicsolo
Homework Helper
1,648
4
Thank you soo much! I finally got this question!

I'm glad to hear that. The algebra is a lot of work at first, so it's very gratifying when terms finally start to cancel out again...
 

Related Threads on Max/Min Problem

  • Last Post
Replies
3
Views
1K
  • Last Post
Replies
4
Views
576
  • Last Post
Replies
2
Views
1K
  • Last Post
Replies
8
Views
1K
  • Last Post
Replies
1
Views
1K
  • Last Post
Replies
6
Views
1K
  • Last Post
Replies
13
Views
2K
  • Last Post
Replies
6
Views
2K
  • Last Post
Replies
10
Views
2K
  • Last Post
Replies
0
Views
724
Top