Finding Global Max and Min values of an Absolute Function

Click For Summary

Homework Help Overview

The discussion revolves around finding the global maximum and minimum values of the function y=0.5x^3 - abs(1-3x) over the interval [-2, 2]. Participants are exploring the behavior of the function, particularly around points of non-differentiability due to the absolute value component.

Discussion Character

  • Exploratory, Assumption checking, Problem interpretation

Approaches and Questions Raised

  • Participants discuss the identification of local and global extrema, with some attempting to find critical points by evaluating the function at specific values and others suggesting the use of a piecewise definition to analyze the function's behavior more clearly.

Discussion Status

There is ongoing exploration of the function's characteristics, with some participants questioning the number of local minima and maxima. Guidance has been offered regarding the non-differentiability at certain points and the implications for finding extrema. Multiple interpretations of the function's behavior are being considered.

Contextual Notes

Participants note the challenge posed by the absolute value in the function, leading to discussions about the piecewise representation and the necessity of checking endpoints in addition to critical points for determining maxima and minima.

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   Reactions: 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   Reactions: Wi_N

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
4K
Replies
2
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K