Thanks JeffM for the detailed reply. Little bit background what I did so far to solve my problem.
(1) First I drives the 2 formulas that will calculate the cost of my problem for two different scenarios and I have to choose the one which has minimum cost.
(2) Next I find the range for both formulas that is "t" which define the range for both scenarios like x<=t for f(x) and x>=t for g(x).
(3) Took first derivative of these formula separately f(x), and g(x).
(4) Equal these equations to zero
(5) Rearrange them to become quadratic equations
(6) Using quadratic formula solve them for the roots of f(x) and g(x)
(7) if value of "a that is (A-B) for f(x) and (C+D) for g(x)" is negative then ignore that case as roots are giving the maximum value.
(8) Else if "a" for any or both functions is positive and roots of f(x) and or g(x) are real and in range of that function, I consider roots and "t" as a candidates that will give me minimum value for that function. evaluate f(root1), f(root2) and f(t), which evaluation gives me lowest cost is my answer for f(x) and same I did for g(x).
I got the results, whatever value I gave to A,B C,D the result shows f(t) will be the optimal solution. So I was thinking to write a proof that shows that between range of 0 <x <n and two function f(x) anf g(x) in two above intervals, f(t) will always be an optimal minimum point. Mean f(x) decrease and g(x) increase at point f(t) And here I am stuck, how to write this in proof. I don't know if it make sense to you now.
(1) First I drives the 2 formulas that will calculate the cost of my problem for two different scenarios and I have to choose the one which has minimum cost.
(2) Next I find the range for both formulas that is "t" which define the range for both scenarios like x<=t for f(x) and x>=t for g(x).
(3) Took first derivative of these formula separately f(x), and g(x).
(4) Equal these equations to zero
(5) Rearrange them to become quadratic equations
(6) Using quadratic formula solve them for the roots of f(x) and g(x)
(7) if value of "a that is (A-B) for f(x) and (C+D) for g(x)" is negative then ignore that case as roots are giving the maximum value.
(8) Else if "a" for any or both functions is positive and roots of f(x) and or g(x) are real and in range of that function, I consider roots and "t" as a candidates that will give me minimum value for that function. evaluate f(root1), f(root2) and f(t), which evaluation gives me lowest cost is my answer for f(x) and same I did for g(x).
I got the results, whatever value I gave to A,B C,D the result shows f(t) will be the optimal solution. So I was thinking to write a proof that shows that between range of 0 <x <n and two function f(x) anf g(x) in two above intervals, f(t) will always be an optimal minimum point. Mean f(x) decrease and g(x) increase at point f(t) And here I am stuck, how to write this in proof. I don't know if it make sense to you now.
Now we are getting somewhere.
Last edited: