Absolute equation to find the max and min point

In summary: If 1< x< 2 then both x and x- 1 are positive but x- 2 is negative. The product of x and x- 2 is negative so y= x- 1- x(x- 2)= x- 1- x^2+ 2x= -x^2+ x- 1. y'= -2x+ 1 as before. That is 0 when x= 1/2 which is not between 1 and 2. There is no critical point between 1 and 2.If x> 2 then all three of x, x- 1, and
  • #1
Lifeforbetter
48
1
Homework Statement
|x -1| + |$x^2 $ - 2x|
Domain (0, 2)
Find the max and min point
Relevant Equations
F'(x) = 0
To find max and min point
X-1 > 0
x>1

$x^2$ - 2x >0
X>2

For 0<x<1
f(x) = -x +1 + -$x^2 $ +2x

For 1<x<2
f(x) = x -1 - $x^2 $ + 2x

Find each of the equation the critical point
By using f'(x) = 0
And decide which is max and min

I get x = 1/2 and x = 3/2
But it's wrong
Why?
 
Physics news on Phys.org
  • #2
This is what wolframalpha has to say on the matter.
246001

On a pedantic note, fix your cases such that [itex]x=1[/itex] is considered in one of them (depends on which way you define absolute value).

You get two candidates for local extrema. Now check which kind they are, whether by definition or by the second derivative trick. What's the story with [itex]x=1[/itex]?

As a reminder: if there is a local extremum at point [itex]a[/itex], then the derivative at that point is zero or the function is not differentiable at [itex]a[/itex] (in other words, the point [itex]a[/itex] is a critical point).

There is no equivalence, however. For [itex]x=1[/itex] there is no differentiability, so you will have to check by definition, whether it is a local extremum point.
 
Last edited:
  • #3
The problem is to find maxima and minima for y= |x- 1|+ |x^2- 2x|= |x-1|+ |x(x- 2)|.

The first thing I would do is recognize that the absolute values are 0 for x= 1, x= 0, and x= 2. So I would divide the real line into four intervals: x< 0, 0< x< 1, 1< x< 2, and x> 2.

If x< 0 then all of x- 1, x, and x- 2 are negative. The product of x and x-2 however is positive so y= -(x- 1)+ x(x- 2)= -x+ 1+ x^2- 2x= x^2- 3x+ 1. y'= 2x- 3 which is 0 when x= 3/2. But that is not less than 0. y has no critical point when x< 0.

If 0< x< 1 then x is positive but x- 1 and x- 2 are negative. The product of x and x- 2 is negative so y= -(x-1)- x(x- 2)= -x+ 1- x^2+ 2x= -x^2+ x+ 1. y'= -2x+ 1 which is 0 when x= 1/2. Yes, that is between 0 and 1 so x= 1/2, y= -1/4+ 1/2+ 1= 5/4, is a critical point.

If 1< x< 2 then both x and x- 1 are positive but x- 2 is negative. The product of x and x- 2 is negative so y= x- 1- x(x- 2)= x- 1- x^2+ 2x= -x^2+ x- 1. y'= -2x+ 1 as before. That is 0 when x= 1/2 which is not between 1 and 2. There is no critical point between 1 and 2.

If x> 2 then all three of x, x- 1, and x- 2 are positive. So y= x- 1+ x(x- 2)= x- 1+ x^2- 2x= x^2- x- 1. y'= 2x- 1 which is 0 when x= 1/2. That is not larger than 2 so there is not critical point for x> 2.

The only critical point is x= 1/2, where y= 5/4 but we also need to check x= 0, x= 1, and x= 2. When x= 0, y= |0- 1|+ |0- 0|= |-1|= 1. When x= 1, y= |1- 1|+ |1- 2|= |-1|= 1. When x= 2, y= |2- 1|+ |4- 4|= |1|= 1.

The maximum value for the function is 5/4 which happens when x= 1/2. The minimum value is 1 which happens at x= 0, 1, and 2.
 
  • Like
Likes Lifeforbetter
  • #4
HallsofIvy said:
;..

If 1< x< 2 then both x and x- 1 are positive but x- 2 is negative. The product of x and x- 2 is negative so y= x- 1- x(x- 2)= x- 1- x^2+ 2x= -x^2+ x- 1. y'= -2x+ 1 as before. That is 0 when x= 1/2 which is not between 1 and 2. There is no critical point between 1 and 2.
,,,
You have an error in the 1 < x < 2 case.
Should be ## y=-x^2+3x-1 ##
 
  • Like
Likes Lifeforbetter and HallsofIvy
  • #5
HallsofIvy said:
The problem is to find maxima and minima for y= |x- 1|+ |x^2- 2x|= |x-1|+ |x(x- 2)|.

The first thing I would do is recognize that the absolute values are 0 for x= 1, x= 0, and x= 2. So I would divide the real line into four intervals: x< 0, 0< x< 1, 1< x< 2, and x> 2.

If x< 0 then all of x- 1, x, and x- 2 are negative. The product of x and x-2 however is positive so y= -(x- 1)+ x(x- 2)= -x+ 1+ x^2- 2x= x^2- 3x+ 1. y'= 2x- 3 which is 0 when x= 3/2. But that is not less than 0. y has no critical point when x< 0.

If 0< x< 1 then x is positive but x- 1 and x- 2 are negative. The product of x and x- 2 is negative so y= -(x-1)- x(x- 2)= -x+ 1- x^2+ 2x= -x^2+ x+ 1. y'= -2x+ 1 which is 0 when x= 1/2. Yes, that is between 0 and 1 so x= 1/2, y= -1/4+ 1/2+ 1= 5/4, is a critical point.

If 1< x< 2 then both x and x- 1 are positive but x- 2 is negative. The product of x and x- 2 is negative so y= x- 1- x(x- 2)= x- 1- x^2+ 2x= -x^2+ x- 1. y'= -2x+ 1 as before. That is 0 when x= 1/2 which is not between 1 and 2. There is no critical point between 1 and 2.

If x> 2 then all three of x, x- 1, and x- 2 are positive. So y= x- 1+ x(x- 2)= x- 1+ x^2- 2x= x^2- x- 1. y'= 2x- 1 which is 0 when x= 1/2. That is not larger than 2 so there is not critical point for x> 2.

The only critical point is x= 1/2, where y= 5/4 but we also need to check x= 0, x= 1, and x= 2. When x= 0, y= |0- 1|+ |0- 0|= |-1|= 1. When x= 1, y= |1- 1|+ |1- 2|= |-1|= 1. When x= 2, y= |2- 1|+ |4- 4|= |1|= 1.

The maximum value for the function is 5/4 which happens when x= 1/2. The minimum value is 1 which happens at x= 0, 1, and 2.
Why 0 1 2 of interval included in the domain?
 
  • #6
The original post said "Domain (0, 2)". 0 and 2 are not included but 1 is. So I should have said "the minimum value is 1 which happens at x= 1."
 
  • Like
Likes Lifeforbetter
  • #7
I would say before any calculations I would do a sketch. In any old-fashioned school I think the teacher would do this in class. Graphing with devices most people have nowadays makes it less tedious too.
563F435D-33D6-4AC3-B804-497B1BDB3AFD.png
563F435D-33D6-4AC3-B804-497B1BDB3AFD.png
 
  • Like
Likes Lifeforbetter and Merlin3189
  • #8
epenguin said:
I would say before any calculations I would do a sketch. In any old-fashioned school I think the teacher would do this in class. Graphing with devices most people have nowadays makes it less tedious too.

{Graph}
Just to note: @nuuskur had a graph from WolframAlpha in his Post (#2), but the penguin's graphs show how the overall graph emerges from its basic parts.
 
  • Like
Likes epenguin
  • #9
SammyS said:
Just to note: @nuuskur had a graph from WolframAlpha in his Post (#2), but the penguin's graphs show how the overall graph emerges from its basic parts.
Thank you, because it was behind a spoiler I hadn't noticed. I must also remember this device which I have never used I think.
 
  • #10
epenguin said:
Thank you, because it was behind a spoiler I hadn't noticed. I must also remember this device which I have never used I think.
Yes.
I seldom use it either.

I suppose it's useful at times, but in this case it did more to "spoil" than to help. :wink:
 
  • #11
I still get the same maxima as Lifeforbetter's first post. Has anyone said yet why or how that is wrong?
Lifeforbetter said:
I get x = 1/2 and x = 3/2
But it's wrong
Why?
 
  • #12
Merlin3189 said:
I still get the same maxima as Lifeforbetter's first post. Has anyone said yet why or how that is wrong?
That's it the critical points x. But the question asked for value which is y
 
  • #13
Lifeforbetter said:
That's it the critical points x. But the question asked for value which is y
Just evaluate f at those critical numbers, with ##f(x) = |x -1| + |x^2 - 2x|##. How hard is that?
If x = 1/2 is a critical number, then (1/2, f(1/2)) is a critical point, and f(1/2) would be the max. or min. value. The same holds for x = 3/2, assuming that 1/2 and 3/2 are the correct values.
 
  • Like
Likes Lifeforbetter

1. What is an absolute equation?

An absolute equation is a mathematical expression that represents a relationship between two or more variables, where the values of the variables are not dependent on any other factors. It is a type of equation that provides a direct relationship between the variables, without any interference from external factors.

2. How do you find the maximum and minimum points using an absolute equation?

To find the maximum and minimum points using an absolute equation, you need to take the derivative of the equation and set it equal to zero. Then, solve for the variable to find the critical points. These critical points will be the locations of the maximum and minimum points on the graph of the equation.

3. Can an absolute equation have more than one maximum or minimum point?

Yes, an absolute equation can have multiple maximum and minimum points. These points can occur at different values of the variables and may represent different local or global extrema of the equation.

4. What is the significance of finding the maximum and minimum points in an absolute equation?

The maximum and minimum points in an absolute equation provide important information about the behavior of the equation. They can help determine the range of values that the equation can take on, as well as the locations of any peaks or valleys in the graph of the equation.

5. Are there any limitations to using an absolute equation to find the maximum and minimum points?

Yes, there are some limitations to using an absolute equation to find the maximum and minimum points. These equations may not accurately represent real-world situations due to the absence of external factors. Additionally, some equations may be too complex to solve for the critical points, making it difficult to find the maximum and minimum points.

Similar threads

  • Precalculus Mathematics Homework Help
Replies
12
Views
460
  • Precalculus Mathematics Homework Help
Replies
2
Views
495
  • Precalculus Mathematics Homework Help
Replies
6
Views
531
  • Precalculus Mathematics Homework Help
Replies
3
Views
236
  • Precalculus Mathematics Homework Help
Replies
10
Views
1K
  • Precalculus Mathematics Homework Help
Replies
2
Views
692
  • Precalculus Mathematics Homework Help
Replies
6
Views
672
  • Precalculus Mathematics Homework Help
Replies
8
Views
765
  • Precalculus Mathematics Homework Help
Replies
13
Views
277
  • Precalculus Mathematics Homework Help
Replies
10
Views
932
Back
Top