Maximizing Expression Value with Square Roots: Calculus Approach Explained

In summary, the maximum value of the given expression is achieved when the two surds are equal, which is when the equation becomes ##\left|\sqrt{x-3}^2+(x^2-2)^2\right|=\left|\sqrt{x^2+(x^2+2)^2}\right|##.
  • #1
utkarshakash
Gold Member
854
13

Homework Statement


The maximum value of [itex] | \sqrt{x^4-3x^2-6x+13} - \sqrt{x^4+5x^2+4}| [/itex]

Homework Equations



The Attempt at a Solution


First of all I'd like to ask a question which always troubles me and that is how do you find max value of any given expression? What clues do you look for? As in this case it is a random expression and the only thing I can say is that the term under square root should be positive. Now, I could have used Wavy Curve method here if only it could be easily factorised which I think is impossible in this case. The other method is by approaching it the 'calculus' way i.e. differentiating and setting it to 0. But the roots are impossible to calculate manually. I find these questions really intriguing :cry:
 
Physics news on Phys.org
  • #2
utkarshakash said:

Homework Statement


The maximum value of [itex] | \sqrt{x^4-3x^2-6x+13} - \sqrt{x^4+5x^2+4}| [/itex]

Homework Equations



The Attempt at a Solution


First of all I'd like to ask a question which always troubles me and that is how do you find max value of any given expression? What clues do you look for? As in this case it is a random expression and the only thing I can say is that the term under square root should be positive. Now, I could have used Wavy Curve method here if only it could be easily factorised which I think is impossible in this case. The other method is by approaching it the 'calculus' way i.e. differentiating and setting it to 0. But the roots are impossible to calculate manually. I find these questions really intriguing :cry:

In your specific case, both terms under the square root signs are > 0 for all real x; showing that the second one is > 0 is easy but showing that the first one is > 0 needs more work (such as finding the minimum of the thing inside the square root). So, in this specific case we get a finite, well-defined result for any real x.

If you did not have the absolute value operation you could set derivatives = 0 to find local maxima and local minima. One of the points obtained this way is the global max and the other is the global min (as we can see by plotting). However, things change when you apply the absolute value: now the function has a local max and a global max, plus two global minima. The maxima are obtained by setting the derivative to zero (basically, the are the max and the min of the previous problem without absolute values). However, the minima cannot be obtained by setting the derivative to zero because the function |f(x)| is not differentiable at those two points.

You might think I cheated by looking at plots, etc., but the point is that such problems can be quite hard---especially when absolute values are involved---so using all available modern tools is a good strategy.
 
  • #3
Ray Vickson said:
showing that the first one is > 0 needs more work (such as finding the minimum of the thing inside the square root).
If you expect the problem setter to be kind, you can look for a way to rewrite it as a sum of squares: x4-4x2+4 looks like a good start.. leaving what?
 
  • #4
To make the algebra easier, I tried writing it as |√f(x) - √g(x)|.
Clearly any maximum of that will also be an extremum of √f(x) - √g(x).
Differentiating etc. we get f'2g = g'2f.
Now writing f = a(x)2+b(x)2, g = c(x)2+d(x)2, where a' = 2ax, c' = 2cx, c' = d' = 1 (trust me), there's some cancellation straight away. Better, a factor emerges which is a fairly simple combination of a, b, c and d. That allows solutions to be separated into one cubic and one quintic. Haven't taken it further, but it looks like more cancellations will arise after substituting the actual expressions for a, b, c, and d, reducing the polynomial degrees somewhat.
 
  • #5
Wolfram had a fit trying to find the maximum, which leads me to believe that I would too if I tried.
 
  • #6
Fwiw, here's a graphical way of looking at it. Write y = x2. Then the two surds (square roots) are the distances from a point (x, y) on that parabola to two fixed points. Since the locus of a point whose distances from two fixed points have a constant difference is also a conic, this gives rise to a family of conics (one for each given distance difference). The solution to the OP corresponds to finding a curve in the family that's tangential to the parabola.
Not sure how this helps, other than allowing one to see roughly where the solutions must lie.
 
  • #7
Rewrite the given expression as follows:

$$\left|\sqrt{(x-3)^2+(x^2-2)^2}-\sqrt{x^2+(x^2+2)^2}\right|$$

Notice that the first surd is the distance of the point ##(x,x^2)## from (3,2) and the other is distance of ##(x,x^2)## to (0,-2). The triangle inequality should do the trick now.

I hope that helped.
 
  • Like
Likes 1 person
  • #8
haruspex said:
Fwiw, here's a graphical way of looking at it. Write y = x2. Then the two surds (square roots) are the distances from a point (x, y) on that parabola to two fixed points. Since the locus of a point whose distances from two fixed points have a constant difference is also a conic, this gives rise to a family of conics (one for each given distance difference). The solution to the OP corresponds to finding a curve in the family that's tangential to the parabola.
Not sure how this helps, other than allowing one to see roughly where the solutions must lie.

This does help. But instead of finding the curve, it was easier to apply triangle inequality as suggested by Pranav-Arora. But how did it strike to you that it must be something related the distance and you cleverly factorised it out to make it look like that? I'm just curious to know :rolleyes:
 
Last edited:
  • #9
utkarshakash said:
This does help. But instead of finding the curve, it was easier to apply triangle inequality as suggested by Pranav-Arora. But how did it strike to you that it must be something related the distance and you cleverly factorised it out to make it look like that? I'm just curious to know :rolleyes:

Your original question suggested you wanted to know how to find optima in general, and that the expression you gave was just an example. That is why I tried to give you a somewhat general answer, not really doing a lot of 'head' work on your specific function; that is, I let the computer do most of the heavy lifting. That would be my suggestion for dealing with the 'general' case.

Of course, if your function comes from some specific application area you might be able to apply subject-specific insights to it in order to simplify it or re-write in a more tractable form.
 
Last edited:
  • #10
utkarshakash said:
how did it strike to you that it must be something related the distance
At first I was just looking to prove both surds were positive definite. The second was obviously the sum of two squares, so I looked for a way to get the first in that form. When that turned out to be easy, I was pretty sure I could ignore your advice that these were random expressions! And since each surd was now of the form √(a2+b2), they could be represented as distances. It threw me for a while that one distance in each case was itself quadratic.
I don't know whether you also looked at my first approach to a solution, using the f and g function substitution. Wrapping the complexity up like that, then gradually unwrapping it and simplifying as much as possible at each step is quite a handy method for taming the algebra.
 

1. What is the purpose of using square roots in maximizing expression value?

The square root function is used in calculus to find the maximum or minimum value of a given expression. By taking the square root of an expression, we can find the point where the derivative is equal to zero, which indicates the maximum or minimum value.

2. How do you apply calculus to maximize expression value with square roots?

To maximize expression value with square roots, we use the derivative of the expression and set it equal to zero. This gives us the critical points of the function. Then, we use the second derivative test to determine whether the point is a maximum or minimum value.

3. Can you give an example of maximizing expression value with square roots using calculus?

An example would be finding the maximum value of the expression y = √(x^2 - 4x + 5). Using calculus, we would take the derivative of the expression, set it equal to zero, and solve for x. The resulting critical points are x = 2 and x = 3. Plugging these values back into the original expression, we find that the maximum value is (2, 3).

4. Are there any limitations to using calculus in maximizing expression value with square roots?

Calculus can only be used to find the maximum or minimum value of a given expression if the function is continuous and differentiable. If the function is not continuous, or if the derivative does not exist at a certain point, calculus cannot be used to find the maximum or minimum value.

5. How is maximizing expression value with square roots related to real-world applications?

Maximizing expression value with square roots is commonly used in optimization problems, which can be found in various fields such as economics, engineering, and physics. For example, a company may use this concept to determine the optimal production level that will yield the highest profit.

Similar threads

  • Precalculus Mathematics Homework Help
Replies
21
Views
752
  • Precalculus Mathematics Homework Help
Replies
7
Views
753
Replies
26
Views
1K
  • Precalculus Mathematics Homework Help
Replies
5
Views
1K
  • Math POTW for Secondary and High School Students
Replies
2
Views
1K
  • Precalculus Mathematics Homework Help
Replies
29
Views
2K
  • Precalculus Mathematics Homework Help
Replies
7
Views
2K
  • Precalculus Mathematics Homework Help
Replies
7
Views
2K
  • Precalculus Mathematics Homework Help
Replies
2
Views
1K
Replies
1
Views
2K
Back
Top