Finding Global Max and Min values of an Absolute Function

Wi_N
Messages
119
Reaction score
8

Homework Statement


y=0.5x^3 - abs(1-3x), [-2,2]

The Attempt at a Solution



So i found the min value y(-2)=-11 and i found lokal min at x=sqrt2
There is a sharp max somewhere around x=0.3 but i cannot for the life of me find how to get that point.
Also i wrote there is only 1 local min and that was wrong apparently but plotting it i only see one local min.
 
Physics news on Phys.org
Wi_N said:

Homework Statement


y=0.5x^3 - abs(1-3x), [-2,2]

The Attempt at a Solution



So i found the min value y(-2)=-11 and i found lokal min at x=sqrt2
There is a sharp max somewhere around x=0.3 but i cannot for the life of me find how to get that point.
Also i wrote there is only 1 local min and that was wrong apparently but plotting it i only see one local min.
Replace the absolute values by writing the function with a piecewise definition.
|1 - 3x| = 1 - 3x, if x <= 1/3, and |1 - 3x| = -(1 - 3x), if x >= 1/3. On each part of these intervals, you have a function whose graph is a straight line.
 
  • Like
Likes Wi_N
Mark44 said:
Replace the absolute values by writing the function with a piecewise definition.
|1 - 3x| = 1 - 3x, if x <= 1/3, and |1 - 3x| = -(1 - 3x), if x >= 1/3. On each part of these intervals, you have a function whose graph is a straight line.

1/54

thanks
 
Wi_N said:
1/54
?
What does this have to do with your problem?
 
Mark44 said:
?
What does this have to do with your problem?
thats the max value of the function.
 
Wi_N said:

Homework Statement


y=0.5x^3 - abs(1-3x), [-2,2]

The Attempt at a Solution



So i found the min value y(-2)=-11 and i found lokal min at x=sqrt2
There is a sharp max somewhere around x=0.3 but i cannot for the life of me find how to get that point.
Also i wrote there is only 1 local min and that was wrong apparently but plotting it i only see one local min.

You cannot find the maximum by setting the derivative to zero, because the maximum occurs at a point of non-differeniability. In a case like this one, you can split up the function into two parts: (i) the part where ##-2 \leq x \leq 1/3##; and (ii) the part where ##1/3 \leq x \leq 2.## On each part you can look for maxima and minima by finding interior optima (if any)----where the derivative vanishes---and checking for endpoint maxima or minima. Or, you can just plot the thing and inspect it visually.

In this case you have a global maximum at ##x = 1/3## and a local maximum at ##x=2##. You have a global minimum at ##x=-2## and a local minimum at ##x = \sqrt{2}.## Note that at both global optima the derivative fails to vanish. The derivative is zero at the local minimum but nonzero at the local max.
 
  • Like
Likes Wi_N
Prove $$\int\limits_0^{\sqrt2/4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx = \frac{\pi^2}{8}.$$ Let $$I = \int\limits_0^{\sqrt 2 / 4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx. \tag{1}$$ The representation integral of ##\arcsin## is $$\arcsin u = \int\limits_{0}^{1} \frac{\mathrm dt}{\sqrt{1-t^2}}, \qquad 0 \leqslant u \leqslant 1.$$ Plugging identity above into ##(1)## with ##u...
Back
Top