MHB Marty's question at Yahoo Answers regarding minimizing a cost function

AI Thread Summary
The discussion centers on minimizing the cost function C(x) = 40/x + x/10, with x representing the distance in meters between poles. The minimum cost occurs at x = 20 meters, determined through both pre-calculus and calculus methods. The first derivative of the function is set to zero to find critical points, confirming that x = 20 is a global minimum. The second derivative test further supports that the function is concave up at this point. Overall, the analysis demonstrates the mathematical approach to optimizing the cost function effectively.
MarkFL
Gold Member
MHB
Messages
13,284
Reaction score
12
Here is the question:

Help with cost functions?


Hi there,

Got this cost function question where C(x) = 40/x + x/10
I need to find x where x=distance in meters between the poles that will minimize the cost.

Thanks for any help/hints!

I have posted a link there to this topic so the OP can see my work.

edit: Unfortunately, the OP deleted the question before I had a chance to post my response there.
 
Mathematics news on Phys.org
Hello Marty,

I would first observe that since $x$ represents a distance, we will require:

$$0\le x$$

Next, let's look at a graph of the function where $x\le x\le50$:

View attachment 1439

As we can see, the cost function is minimized when:

$$x\approx20$$

Now, let's find this critical value for $x$.

i) First we will use a pre-calculus method:

$$C=\frac{x^2+400}{10x}$$

$$x^2-10Cx+400=0$$

The axis of symmetry, where the vertex of the quadratic is located, is given by:

$$x=-\frac{-10C}{2(1)}=5C$$

Substituting this into the quadratic, we find:

$$(5C)^2-10C(5C)+400=0$$

(5C)^2=20^2

Taking the positive root, we find:

$$5C=20$$

And this is our critical value. Since the cost function grows unbounded as $x$ approaches zero and as $x$ approaches infinity, we may conclude this is a global minimum on the applicable domain.

ii) Next, let's apply the calculus:

$$ C(x)=\frac{40}{x}+\frac{x}{10}=40x^{-1}+\frac{1}{10}x$$

Now, in order to find the extrema, we need to compute the first derivative, and equate it to zero, and solve for $x$ to get the critical value(s).

$$C'(x)=-40x^{-2}+\frac{1}{10}=\frac{x^2-400}{10x^2}=0$$

We know the cost function grows unbounded as $x$ approaches zero, and so we are interesting only in the critical values from the numerator:

$$x^2-400=0$$

$$x^2=20^2$$

Taking the positive root, we obtain:

$$x=20$$

Using the second derivative test, we find:

$$C''(x)=80x^{-3}$$

Now since $$C''(20)>0$$ we can conclude the cost function is concave up at this critical value, and so we know we have found the global minimum.
 

Attachments

  • marty.jpg
    marty.jpg
    5.4 KB · Views: 89
MarkFL said:
edit: Unfortunately, the OP deleted the question before I had a chance to post my response there.

Bummer :( Thank you for posting this anyway and for all of the questions you bring in!
 
Jameson said:
Bummer :( Thank you for posting this anyway and for all of the questions you bring in!

Yeah, I was mildly annoyed at first, but I just decided to do another one. (Rofl)
 
Seemingly by some mathematical coincidence, a hexagon of sides 2,2,7,7, 11, and 11 can be inscribed in a circle of radius 7. The other day I saw a math problem on line, which they said came from a Polish Olympiad, where you compute the length x of the 3rd side which is the same as the radius, so that the sides of length 2,x, and 11 are inscribed on the arc of a semi-circle. The law of cosines applied twice gives the answer for x of exactly 7, but the arithmetic is so complex that the...
Is it possible to arrange six pencils such that each one touches the other five? If so, how? This is an adaption of a Martin Gardner puzzle only I changed it from cigarettes to pencils and left out the clues because PF folks don’t need clues. From the book “My Best Mathematical and Logic Puzzles”. Dover, 1994.
Thread 'Imaginary Pythagoras'
I posted this in the Lame Math thread, but it's got me thinking. Is there any validity to this? Or is it really just a mathematical trick? Naively, I see that i2 + plus 12 does equal zero2. But does this have a meaning? I know one can treat the imaginary number line as just another axis like the reals, but does that mean this does represent a triangle in the complex plane with a hypotenuse of length zero? Ibix offered a rendering of the diagram using what I assume is matrix* notation...
Back
Top