Finding Global Max and Min values of an Absolute Function

Click For Summary
The function y=0.5x^3 - abs(1-3x) has a global minimum at x=-2 with a value of -11 and a local minimum at x=sqrt(2). The global maximum occurs at x=1/3, while a local maximum is found at x=2. To analyze the function, it is recommended to use a piecewise definition for the absolute value component, which allows for easier differentiation. The maximum cannot be found by setting the derivative to zero due to non-differentiability at that point. Visual inspection or plotting the function can also aid in identifying these extrema.
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
Question: A clock's minute hand has length 4 and its hour hand has length 3. What is the distance between the tips at the moment when it is increasing most rapidly?(Putnam Exam Question) Answer: Making assumption that both the hands moves at constant angular velocities, the answer is ## \sqrt{7} .## But don't you think this assumption is somewhat doubtful and wrong?

Similar threads

  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 30 ·
2
Replies
30
Views
3K
Replies
2
Views
2K
  • · Replies 36 ·
2
Replies
36
Views
6K
Replies
1
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 15 ·
Replies
15
Views
3K
Replies
2
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K