A weird absolute value problem

Click For Summary

Homework Help Overview

The discussion revolves around expressing the function f(x) = |x| + |x - 2| without using absolute value signs. Participants explore the implications of absolute values and how to represent the function in piecewise notation based on different intervals of x.

Discussion Character

  • Exploratory, Assumption checking, Problem interpretation

Approaches and Questions Raised

  • Participants discuss the need to break down the absolute values into cases based on the sign of the expressions inside them. They consider intervals where the expressions change from negative to non-negative and question whether graphing is necessary to identify these intervals.

Discussion Status

There is an active exploration of how to determine the intervals for the piecewise function. Some participants suggest that understanding the definition of absolute values is crucial, while others question the necessity of graphing the function to find these intervals. Multiple interpretations of the problem are being discussed without a clear consensus.

Contextual Notes

Participants note that the absolute values |x| and |x - 2| change their expressions at specific points (x = 0 and x = 2), which divides the number line into three intervals. The discussion includes uncertainty about how to identify these intervals without graphing.

lLovePhysics
Messages
169
Reaction score
0
Please help me out here with this problem:

37. Express the function f(x)=l x l + l x-2 l

without using absolute value signs.

Okay, I've took a sneak peak at the answer key and it is given in kinda of like piece-wise notation where they have 3 equations and different intervals of x for them.

Are you suppose to just take off the signs? f(x)= 2x-2 but know I know there is a catch... Does the range still apply or something?
 
Physics news on Phys.org
Yes, you take of the signs carefully!

A pretty standard way to handle absolute values is to use "cases": |x|= x if x\ge 0[, |x|= -x is x&amp;lt; 0.<br /> <br /> Here you have both |x| which &quot;breaks&quot; at x= 0 and |x-2| which &quot;breaks&quot; when x-2= 0 or x= 2.<br /> <br /> Look at the <b>three</b> cases: x&amp;lt; 0, 0\le x&amp;lt; 2, and x\ge 2.<br /> <br /> If x&lt; 0, then both x and x-2 are negative so |x|= -x and |x-2|= -(x-2)= 2- x. In that case, |x|+ |x-2|= -x+ 2- x= 2- 2x.<br /> If 0\le x&amp;lt; 2 then x is non-negative but x- 2 is still negative so |x|= x and |x-2|= -(x-2)= 2- x. In that case, |x|+ |x-2|= x+ 2-x= 2.<br /> Finally, if 2\le x, both x and x- 2 are positive so |x|= x and |x-2|= x-2. In that case, |x|+ |x-2|= x+ x-2= 2x- 2.
 
HallsofIvy said:
Yes, you take of the signs carefully!

A pretty standard way to handle absolute values is to use "cases": |x|= x if x\ge 0[, |x|= -x is x&amp;lt; 0.<br /> <br /> Here you have both |x| which &quot;breaks&quot; at x= 0 and |x-2| which &quot;breaks&quot; when x-2= 0 or x= 2.<br /> <br /> Look at the <b>three</b> cases: x&amp;lt; 0, 0\le x&amp;lt; 2, and x\ge 2.<br /> <br /> If x&lt; 0, then both x and x-2 are negative so |x|= -x and |x-2|= -(x-2)= 2- x. In that case, |x|+ |x-2|= -x+ 2- x= 2- 2x.<br /> If 0\le x&amp;lt; 2 then x is non-negative but x- 2 is still negative so |x|= x and |x-2|= -(x-2)= 2- x. In that case, |x|+ |x-2|= x+ 2-x= 2.<br /> Finally, if 2\le x, both x and x- 2 are positive so |x|= x and |x-2|= x-2. In that case, |x|+ |x-2|= x+ x-2= 2x- 2.
<br /> <br /> Okay, so how do you know they have three cases? Should you graph the function first to find out how it looks and then divide them up into intervals or is there a faster and easier way to do it without the graphing calculator?
 
lLovePhysics said:
Okay, so how do you know they have three cases? Should you graph the function first to find out how it looks and then divide them up into intervals or is there a faster and easier way to do it without the graphing calculator?

I would just make a plot of this function on a piece of paper (it is faster than on a graphing calculator). Then its 3-component structure becomes obvious.

Eugene.
 
No you don't need graph the function
You only need to understand the definition of |x|

|x|= x if x>0, |x|=-x if x<0 (and |x|=0 if x=0 naturally)
Do the same for |x-2|
|x-2|=x-2 if x-2>0 etc. as explained you above.

How the things (inside absolute value )go out depends on its sign (e.g.
|-5|=-(-5) =5 |1|=1 )
So you only have to find when the expressions inside absolute value become positive /negative depending on x

Lastly if you read HallSoftIvy's post again carefully you will understand it
 
I know how HallsofIvy found the bototm part but I just don't understand how she found the intervals. Do you need to graph it first to find it?

I know the graph of l x l and l x-2 l

However, how come their fulls graphs don't show up? Do you just take their x-intercepts (lowest y value) to obtain the intervals and solve for f(x) in those intervals?
 
Last edited:
lLovePhysics said:
I know how HallsofIvy found the bototm part but I just don't understand how she found the intervals.

Oh no. HallsofIvy is, atually, a he, not a she. o:)

Do you need to graph it first to find it?

Well, say, to break the absolute value of |A|, one must check if it's negative, or non-negative. So, to break the absolute value of |x| + |x - 2|, you should check whether they are negative or nonnegative.

x is negative for x < 0, and non-negative for the rest.
x - 2 is negative for x < 2, and non-negative for the rest.

So, for x < 0, both x, and x - 2 are negative.
0 <= x < 2, then x is non-negative, but x - 2 is negative.
And for x >= 2, they are both positive.

From the 3 intervals above, you can easily break the absolute value. Pretty simple, right? :)
 
I said in my original post- there are two absolute values: |x| and |x-2|. |x| itself changes "formulas" when x= 0. |f(x)|, for any function f, changes when f(x)= 0. Therefore, |x| changes when x= 0, |x-2| changes when x- 2= 0 or x= 2. Those two values divide the number line into 3 parts: x< 0, 0< x< 2, and x> 2.
 
VietDao29 said:
Well, say, to break the absolute value of |A|, one must check if it's negative, or non-negative. So, to break the absolute value of |x| + |x - 2|, you should check whether they are negative or nonnegative.

x is negative for x < 0, and non-negative for the rest.
x - 2 is negative for x < 2, and non-negative for the rest.

So, for x < 0, both x, and x - 2 are negative.
0 <= x < 2, then x is non-negative, but x - 2 is negative.
And for x >= 2, they are both positive.

From the 3 intervals above, you can easily break the absolute value. Pretty simple, right? :)

I still don't know what you are talking about. Negatives and non-negatives, that is. Why is it important that x is negative/non negative? Isn't the absolute value of x always positive? How do you know the graph will "break" when x=0 or x=2? How do you not know that they will keep going like the shape of a "V"?

For example, the graph f(x)=l x l has the shape of a V but it doesn't "break" when x=0... I just don't know how you guys can find where the graph changes without graphing or substituting points.


HallsofIvy said:
I said in my original post- there are two absolute values: |x| and |x-2|. |x| itself changes "formulas" when x= 0. |f(x)|, for any function f, changes when f(x)= 0. Therefore, |x| changes when x= 0, |x-2| changes when x- 2= 0 or x= 2. Those two values divide the number line into 3 parts: x< 0, 0< x< 2, and x> 2.

What do you mean by changes "formulas"? Are you saying that if x=0 then the function becomes: f(x)= l x-2 l? and when x=2 then the function becomes: f(x)=l x l? Then there will be 2 "breaks" and therefore 3 parts.. Is this what you guys are all trying to tell me??
 
  • #10
If you are trying to do problems involving absolute values, you should know exactly what |x| means! What does YOUR textbook say is the definition of |x|?
 
  • #11
HallsofIvy said:
If you are trying to do problems involving absolute values, you should know exactly what |x| means! What does YOUR textbook say is the definition of |x|?

Here's what my text says:


The absolute value of x (written) as l x l ) is defined as follows:

if x=>, then l x l = x;

if x<0, then l x l= -x ( note that -x is a positive number)

l x l=> 0 for all values of x
 
  • #12
ilovephysics, y = |x| does break at x=0. What do we mean when we say break... we mean that the equation of the line has changed...

A line has an equation of the form y = mx + b... so if we write y=|x| in this form:

when x < 0, y = -x

when x > 0, y = x

So as we go along the x-axis from the negative end to the positive end... we have a straight line going downwards (a negative slope)... but at x = 0 it changed to positive slope... so that's a break. it's a different equation...

The breaks can only occur when the value within the absolute values changes sign or in other words when that value is 0... because that's how the absolute value is defined...

First find the points when the value inside an absolute value changes sign...

For your example you have two absolute value signs |x| and |x-2|... for |x|, x changes sign when x = 0... |x-2|, x-2 changes sign when x-2 = 0 ie when x =2

So those are the only 2 points when a break can happen...

Then you can analyze what happens at x<=0, then 0<x<=2, then x>2... within each range your equation can be written as a line in the form of y=mx+b. Use the definition of absolute value to write the equation for these 3parts...
 
Last edited:
  • #13
learningphysics said:
ilovephysics, y = |x| does break at x=0. What do we mean when we say break... we mean that the equation of the line has changed...

A line has an equation of the form y = mx + b... so if we write y=|x| in this form:

when x < 0, y = -x

when x > 0, y = x

So as we go along the x-axis from the negative end to the positive end... we have a straight line going downwards (a negative slope)... but at x = 0 it changed to positive slope... so that's a break. it's a different equation...

The breaks can only occur when the value within the absolute values changes sign or in other words when that value is 0... because that's how the absolute value is defined...

First find the points when the value within an absolute value changes sign...

For your example you have two absolute value signs |x| and |x-2|... |x| changes sign when x = 0... |x-2| changes sign when x-2 = 0 ie when x =2

So those are the only 2 points when a break can happen...

Then you can analyze what happens at x<=0, then 0<x<=2, then x>2... within each range your equation can be written as a line in the form of y=mx+b. Use the definition of absolute value to write the equation for these 3parts...

Oh ok. I think I get it now, thanks! :smile:
 
  • #14
HallsofIvy said:
Yes, you take of the signs carefully!

A pretty standard way to handle absolute values is to use "cases": |x|= x if x\ge 0[, |x|= -x is x&amp;lt; 0.<br /> <br /> Here you have both |x| which &quot;breaks&quot; at x= 0 and |x-2| which &quot;breaks&quot; when x-2= 0 or x= 2.<br /> <br /> Look at the <b>three</b> cases: x&amp;lt; 0, 0\le x&amp;lt; 2, and x\ge 2.<br /> <br /> If x&lt; 0, then both x and x-2 are negative so |x|= -x and |x-2|= -(x-2)= 2- x. In that case, |x|+ |x-2|= -x+ 2- x= 2- 2x.<br /> If 0\le x&amp;lt; 2 then x is non-negative but x- 2 is still negative so |x|= x and |x-2|= -(x-2)= 2- x. In that case, |x|+ |x-2|= x+ 2-x= 2.<br /> Finally, if 2\le x, both x and x- 2 are positive so |x|= x and |x-2|= x-2. In that case, |x|+ |x-2|= x+ x-2= 2x- 2.
<br /> <br /> I think I finally get what they mean by &quot; express the function without using absolute value signs.&quot; Do they mean that you need to take the absolute value sign off and instead did what you did above?<br /> <br /> So like for l x l, if x is negative then l x l must equal -x without the absolute value signs because then -x would equal -(-x), which is a positve number. So whenever you are trying to solve these problems one should always follow that format? It is either everything instead the absolute value remains positive (unaffected) or negative (so that if the expression inside is negative it will turn positve)? Thanks! <img src="https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f642.png" class="smilie smilie--emoji" loading="lazy" width="64" height="64" alt=":smile:" title="Smile :smile:" data-smilie="1"data-shortname=":smile:" /><br /> <br /> Edit: Also, did you choose those parts because you wanted to make some negative and some positve? For example, did you want to make l x l both negative and positve and l x-2 l both negative and positive as well? I&#039;m just not sure how you can up with the \geq, &amp;gt;, \;and\;&amp;lt; signs.
 
Last edited:
  • #15
f(x)= |x|, itself, is "expressed without absolute value signs" exactly as you give the definition: |x|= x if x\ge 0, -x is x< 0. It changes formula, as you put it when the quantity inside the abwsolut value signs is equal to 1.; Your problem involved |x|+ |x-2| so I immediately asked myself "where do those change formula?". That would be at x= 0 and x= 2. Everything else follows from that.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
11
Views
3K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 6 ·
Replies
6
Views
5K
  • · Replies 7 ·
Replies
7
Views
3K
Replies
13
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K