Solving for x in |x+3|+|x-1|=5

  • Thread starter Thread starter nickadams
  • Start date Start date
AI Thread Summary
The equation |x+3| + |x-1| = 5 represents the sum of distances from x to -3 and 1, aiming to equal 5. To solve it effectively, the number line is divided into three intervals: (-∞, -3), (-3, 1), and (1, ∞). In each interval, the absolute values are expressed as piecewise functions, leading to different equations to solve. For x ≤ -3, the solution is x = -7/2; for x > 1, the solution is x = 3/2. The interval (-3, 1) yields no valid solutions, indicating that there are only two points where the original equation holds true.
nickadams
Messages
182
Reaction score
0

Homework Statement



|x+3|+|x-1| = 5

Homework Equations



absolute value = distance from origin
distance between 2 points on a line = |x1-x2|

so |x+3| can be viewed as the distance from x to -3
and |x-1| can be viewed as the distance from x to 1

so we are trying to find a point x which has a distance from -3 and a distance from 1 that combine to equal 5...

The Attempt at a Solution



The options that add up to equal 5 are (0+5), (5+0), (2+3), (3+2), (1+4), (4+1)

if |x+3| = 0, then x=-3... that gives 4 instead of 5
if |x+3| = 5, then x=2 or -8... that gives 6 and 14 instead of 5
if |x+3| = 3, then x=0 or -6... that gives 4 and 10 instead of 5
if |x+3| = 2, then x=-1 or -5... that gives 4 and 8 instead of 5
if |x+3| = 1, then x=-2 or -4... that gives 4 and 6 instead of 5
if |x+3| = 4, then x=1 or -7... that gives 4 and 12 instead of 5^ not only is that a really inefficient way to try to solve it. but I also couldn't get the answer! :(

can someone please tell me a way to solve these problems?
edit: I just realized I neglected all the options where x is not an integer...
 
Last edited:
Physics news on Phys.org
nickadams said:

Homework Statement



|x+3|+|x-1| = 5


Homework Equations



absolute value = distance from origin
distance between 2 points on a line = |x1-x2|

so |x+3| can be viewed as the distance from x to -3
and |x-1| can be viewed as the distance from x to 1

so we are trying to find a point x which has a distance from -3 and a distance from 1 that combine to equal 5...

The Attempt at a Solution



The options that add up to equal 5 are (0+5), (5+0), (2+3), (3+2), (1+4), (4+1)

if |x+3| = 0, then x=-3... that gives 4 instead of 5
if |x+3| = 5, then x=2 or -8... that gives 6 and 14 instead of 5
if |x+3| = 3, then x=0 or -6... that gives 4 and 10 instead of 5
if |x+3| = 2, then x=-1 or -5... that gives 4 and 8 instead of 5
if |x+3| = 1, then x=-2 or -4... that gives 4 and 6 instead of 5
if |x+3| = 4, then x=1 or -7... that gives 4 and 12 instead of 5


^ not only is that a really inefficient way to try to solve it. but I also couldn't get the answer! :(

can someone please tell me a way to solve these problems?
So the approach is not only ineffecient, but ineffective as well.

Divide the number line into three intervals: (-∞, -3), (-3, 1), and (1, ∞)

If x is in (-∞, -3), the equation can be written as -(x + 3) + -(x - 1) = 5. Can you solve this?

Now look at the resulting equation in each of the other two intervals.

The basic idea I am using is that |x - a| = -(x -a) if x < a, and |x - a| = x - a if x > a.
 
nickadams said:

Homework Statement



|x+3|+|x-1| = 5


Homework Equations



absolute value = distance from origin
distance between 2 points on a line = |x1-x2|

so |x+3| can be viewed as the distance from x to -3
and |x-1| can be viewed as the distance from x to 1

so we are trying to find a point x which has a distance from -3 and a distance from 1 that combine to equal 5...

The Attempt at a Solution



The options that add up to equal 5 are (0+5), (5+0), (2+3), (3+2), (1+4), (4+1)

if |x+3| = 0, then x=-3... that gives 4 instead of 5
if |x+3| = 5, then x=2 or -8... that gives 6 and 14 instead of 5
if |x+3| = 3, then x=0 or -6... that gives 4 and 10 instead of 5
if |x+3| = 2, then x=-1 or -5... that gives 4 and 8 instead of 5
if |x+3| = 1, then x=-2 or -4... that gives 4 and 6 instead of 5
if |x+3| = 4, then x=1 or -7... that gives 4 and 12 instead of 5


^ not only is that a really inefficient way to try to solve it. but I also couldn't get the answer! :(

can someone please tell me a way to solve these problems?
"not only is that a really inefficient way to try to solve it... " True !

An instructive way to solve it (in my opinion) is to graph y = |x+3|+|x-1| .

Alternatively,
consider the piecewise definition of the absolute value.

Consider separately the graphs: y = |x+3|, and y = |x-1| .​
 
Mark44 said:
So the approach is not only ineffecient, but ineffective as well.

Divide the number line into three intervals: (-∞, -3), (-3, 1), and (1, ∞)

If x is in (-∞, -3), the equation can be written as -(x + 3) + -(x - 1) = 5. Can you solve this?

Now look at the resulting equation in each of the other two intervals.

The basic idea I am using is that |x - a| = -(x -a) if x < a, and |x - a| = x - a if x > a.

Ok great!

so if x <= -3 ... -3-x+1-x = 5 ; (ans: x=-7/2)

if 1 >= x >= -3 ... x+3+1-x = 5 (0=1 :frown: ) I realize that this indicates there is no solution for x in this interval but is there anything else to be learned from the result or should I just accept it as indicating no answer in the interval?

if x > 1 ... x+3+x-1 = 5 ; (ans: x=3/2)
 
nickadams said:
...
if 1 >= x >= -3 ... x+3+1-x = 5 (0=1 :frown: ) I realize that this indicates there is no solution for x in this interval but is there anything else to be learned from the result or should I just accept it as indicating no answer in the interval?
...

Notice that everywhere on this interval, x+3+1-x = 4. So, it can's be 5.
 
I picked up this problem from the Schaum's series book titled "College Mathematics" by Ayres/Schmidt. It is a solved problem in the book. But what surprised me was that the solution to this problem was given in one line without any explanation. I could, therefore, not understand how the given one-line solution was reached. The one-line solution in the book says: The equation is ##x \cos{\omega} +y \sin{\omega} - 5 = 0##, ##\omega## being the parameter. From my side, the only thing I could...
Essentially I just have this problem that I'm stuck on, on a sheet about complex numbers: Show that, for ##|r|<1,## $$1+r\cos(x)+r^2\cos(2x)+r^3\cos(3x)...=\frac{1-r\cos(x)}{1-2r\cos(x)+r^2}$$ My first thought was to express it as a geometric series, where the real part of the sum of the series would be the series you see above: $$1+re^{ix}+r^2e^{2ix}+r^3e^{3ix}...$$ The sum of this series is just: $$\frac{(re^{ix})^n-1}{re^{ix} - 1}$$ I'm having some trouble trying to figure out what to...
Back
Top