Minimize a function: Find value of x that result in lowest value of formula

Click For Summary

Discussion Overview

The discussion revolves around finding the value of "x" that minimizes a specific mathematical formula under given constraints. Participants explore methods for optimization, including calculus techniques such as derivatives, while discussing the implications of their findings.

Discussion Character

  • Mathematical reasoning, Technical explanation, Debate/contested

Main Points Raised

  • One participant presents a formula and seeks a method to find the minimum value of "x" without exhaustive trials, noting that "x" must be between 1 and n-1.
  • Another participant suggests equating the first derivative to zero to identify critical points that may optimize the function.
  • There is a discussion about whether known constants should be substituted into the formula when finding critical points, with some arguing it is unnecessary.
  • Further elaboration on the first derivative leads to a fourth-degree polynomial equation, prompting suggestions to use numerical techniques or software for root approximation.
  • One participant mentions simplifying the second derivative into a cubic equation and applying Cardano’s formula to find the real root as the minimum value of "x."

Areas of Agreement / Disagreement

Participants generally agree on the approach of using derivatives to find critical points, but there is no consensus on the necessity of substituting constants into the equations or the best method for solving the resulting polynomial.

Contextual Notes

The discussion includes assumptions about the constraints on "x" and the nature of the constants involved, which may affect the optimization process. The complexity of the resulting polynomial equations is acknowledged but remains unresolved.

gevni
Messages
25
Reaction score
0
Hi, I have this formula, What I want is to find the value of "x" (without trying all possibilities) so that the result of the formula will be the lowest possible value under the constraint when x !=0, and x<n. Here, values of A,B,C, Q, R,n are already known and fixed.

$$f(x)=A\left(((\frac{Q}{n-x}-\frac{R}{x})+(n-x))n\right)+Bnx+C((\frac{R}{x})n)$$

How can I find the value of x? I know that x can be between 1 to n-1. But how do I continue from there? I was thinking there must be a way to calculate it instead of trying a lot of possibilities. Like some derived equation for optimal value of x that made the whole formula sum the lowest possible.
 
Physics news on Phys.org
gevni said:
Hi, I have this formula, What I want is to find the value of "x" (without trying all possibilities) so that the result of the formula will be the lowest possible value under the constraint when x !=0, and x<n. Here, values of A,B,C, Q, R,n are already known and fixed.

$$f(x)=A\left(((\frac{Q}{n-x}-\frac{R}{x})+(n-x))n\right)+Bnx+C((\frac{R}{x})n)$$

How can I find the value of x? I know that x can be between 1 to n-1. But how do I continue from there? I was thinking there must be a way to calculate it instead of trying a lot of possibilities. Like some derived equation for optimal value of x that made the whole formula sum the lowest possible.

Update: I remove the constant n and then take the 1st and 2nd derivative. Now my formula is like that;

$$f(x)=A\left((\frac{Q}{n-x}-\frac{R}{x})+(n-x)\right)+Bx+C(\frac{R}{x})$$

I took first and 2nd derivative as
$$ f′(x)= A\left(\dfrac{R}{x^2}+\dfrac{Q}{\left(n-x\right)^2}-1\right)-\dfrac{CR}{x^2}+B $$

$$ f′′(x)= A(\dfrac{2Q}{(n−x)^3}−\dfrac{2R}{x^3})+\dfrac{2CR}{x^3} $$

What would be the next step to find value of x that will minimize this equation?
 
Okay, what you want to do now is equate your first derivative to zero to find your critical values, that is those values of \(x\) that may optimize the function. What do you find?
 
MarkFL said:
Okay, what you want to do now is equate your first derivative to zero to find your critical values, that is those values of \(x\) that may optimize the function. What do you find?
Thanks you for the reply. For finding the critical points for x do I need to put the values of known constant in the formula?
 
gevni said:
Thanks you for the reply. For finding the critical points for x do I need to put the values of known constant in the formula?

No, you can get your critical values in terms of the parameters. There's no need to plug those in.
 
Let's follow up...we want:

$$f'(x)=A\left(\frac{R}{x^2}+\frac{Q}{(n-x)^2}-1\right)-\frac{CR}{x^2}+B=0$$

$$f'(x)=\frac{AR}{x^2}+\frac{AQ}{(n-x)^2}-A-\frac{CR}{x^2}+B=0$$

$$f'(x)=\frac{AR(n-x)^2+AQx^2-Ax^2(n-x)^2-CR(n-x)^2+Bx^2(n-x)^2}{x^2(n-x)^2}=0$$

As you have stated that \(x\ne0\) and \(x<n\), this implies:

$$AR(n-x)^2+AQx^2-Ax^2(n-x)^2-CR(n-x)^2+Bx^2(n-x)^2=0$$

As this is a 4th degree polynomial, I would at this point consider substituting in for the parameters (as you asked about doing) and then using software or a numeric technique to approximate the roots.
 
MarkFL said:
Let's follow up...we want:

$$f'(x)=A\left(\frac{R}{x^2}+\frac{Q}{(n-x)^2}-1\right)-\frac{CR}{x^2}+B=0$$

$$f'(x)=\frac{AR}{x^2}+\frac{AQ}{(n-x)^2}-A-\frac{CR}{x^2}+B=0$$

$$f'(x)=\frac{AR(n-x)^2+AQx^2-Ax^2(n-x)^2-CR(n-x)^2+Bx^2(n-x)^2}{x^2(n-x)^2}=0$$

As you have stated that \(x\ne0\) and \(x<n\), this implies:

$$AR(n-x)^2+AQx^2-Ax^2(n-x)^2-CR(n-x)^2+Bx^2(n-x)^2=0$$

As this is a 4th degree polynomial, I would at this point consider substituting in for the parameters (as you asked about doing) and then using software or a numeric technique to approximate the roots.
Thanks Mark! As I am interested in extrema points so I took 2nd derivative not the first 1 and simplify it into cubic equation of degree 3. And then using Cardano’s formula I found the roots and took real root as my minimum value of x.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
3
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K