Painguy said:
Homework Statement
A smokestack deposits soot on the ground with a concentration inversely proportional to the square of the distance from the stack. With two smokestacks 20 miles apart, the concentration of the combined deposits on the line joining them, at a distance x from one stack, is given by the following equation, where k is a positive constants that depends on the quantity of smoke each stack is emitting.
S=((64k)/(x^2)) + (k/((20-x)^2))
Homework Equations
The Attempt at a Solution
1st I take the derivative
((-128k(20-x)^3))+2kx^3/(x^3)(20-x)^3))
Then i look for critical points
x^3=0
x=0
20-x=0
x=20
The third one is where i get stuck
(-128k(20-x)^3))+2kx^3=0
k(-128(-x^3 + 60x^2 -1200x +8000) + 2x^3)=0
(-128(-x^3 + 60x^2 -1200x +8000) + 2x^3)=0
128x^3-7680x^2 +153600x - 1024000 + 2x^3=0
130x^3-7680x^2 +153600x - 1024000=0
130x^3-7680x^2 +153600x = 1024000
how would I solve for this? It's a bit embarrassing on my part, but I never ran into a situation before where I had to find the root of a cubic function.
First: divide through by 10, to make it very slightly easier:
p(x) = 13 x^3 - 768 x^2 + 15360 x - 102400 = 0.
As others have pointed out, there are exact formulas for solving such problems, but they are messy. Often, it is better to just ignore those formulas and proceed more directly. You can draw a rough graph of p(x) to get a feeling for where a root might be located, or you can use a "bisecting" method: p(0) = -102400, p(100) = 6753600, so there is a root between 0 and 100 (because p changes sign between 0 and 100). Look at x = 50: p(50) = 370600. There is a root between 0 and 50. So, try x = 25: p(25) = 4725. There is a root between 0 and 25. Look at x = 12 (roughly half of the current interval): p(12) = -6207. So, there is a root between 12 and 25, etc. A couple of additional steps of that type will get you very near the root, perhaps even to its exact value.
Note: you could try to speed up the process, by using something called the "Secant Method". Basically, this approximates p(x) by a straight line joining two points on its graph, and looks for a root of the straight line. For example, the line through (12,p(12)) and (25,p(25)) has equation y = p(12) + [(p(25)-p(12))/(25-12)]*(x-12) = 841*x - 16300, which gives zero at x = 16300/841 ≈ 19.4 . In this case, though, bisection is easier and just as fast, or faster.
Of course, the classical way is Newton's method, but this often needs a reasonably close approximation to the root to get going properly. In this case, a few bisection steps should lead to a reasonable starting point.
Finally, there is the modern method, which is to use a good scientific hand-held calculator, or a computer package such as the EXCEL Solver tool or Matlab, or to submit the problem to the free, on-line package Wolfram Alpha.
RGV