# Absolute Value Equations

**Absolute Value Equations** are equations involving expressions with the absolute value functions. This wiki intend to demonstrate and discuss problem solving techniques that let us solve such equations.

A very basic example would be

Find all values of \(x\) satisfying \[|x-2| + |x-4| = 4\]

Usually, the basic approach is to analyze the behaviour of the function before and after the point where they reach 0. For example, for \(|x-a|\) one could analyze the cases where \(x > a\) or \(x < a\), or even \(x = a\) if required. However, these problems are often simplified with a more sophisticated approach like being able to eliminate some of the cases, or graphing the functions. In this wiki, we intend to discuss this techniques along with strategies on when to use which.

#### Contents

## Methodology

Introduction to the Absolute Value Equations

Methodology to solve the absolute value equations: The techniques used to solve absolute value equations and when to use which one?

Take an example to describe the following methodology.

1) understanding the absolute value- positive, negative case (or graph approach)

2) Determining the possible solutions

3) Verifying solutions

## Technique - Squaring Both Sides

Explain - How do we use this technique to solve absolute value equations?

Remember to verify the possible solutions - why and how?

2-3 examples in increasing order of difficulty - explaining how we squared both sides to solve more difficult problems

followed by 1-2 TIY problems -relevant to be solved by case work technique

Suppose we have an equation of the form \(\lvert a \rvert = \lvert b \rvert\). Since both sides are positive, we can square them without adding extraneous solutions: \[a^2=b^2\] Then solve it as an ordinary equation: \[\begin{align} a^2-b^2&=0 \\ (a+b)(a-b)&=0 \end{align}\]

So we see that \(a=-b\) or \(a=b\).

Solve the equation \(\lvert 3x+4 \rvert = \lvert 2x-7 \rvert\) for real \(x\).

We square both sides to obtain: \[(3x+4)^2=(2x-7)^2\]

Here we don't need to expand both sides, just apply the difference of two squares to find the factors: \[\begin{align} (3x+4+2x-7)(3x+4-2x+7)&=0 \\ (5x-3)(x+11)&=0 \end{align} \]

The solutions are \(\left\{\dfrac{3}{5}, -11\right\}. \ _ \square\)

## Technique - Casework

Because absolute value can be defined as piecewise functions, then depending on where the value of \(x \) is with respect to the number line, you have to work with a different "piece" of the piecewise function.

General steps:

Using the definition of absolute value as a piecewise function, "undo" the absolute value sign(s) and write cases. For example, we know that the expression in the absolute value sign can either be positive or negative.

Solve each case for \( x\).

Verify the solutions.

Find all real values of \(x\) such that \( | 3x – 4 | – 2 = 3.\)

Solution:We first isolate the absolute value onto one side:\[\begin{align} | 3x – 4 | – 2 & = 3\\ | 3x – 4 | &= 5. \end{align}\]

Now, we "undo" the absolute value signs and split the equation into its two cases, the positive case and the negative case:

\[\begin{align} (3x – 4) = 5 &\text{ or } –(3x – 4) = 5\\ 3x – 4 = 5 &\text{ or } –3x + 4 = 5\\ 3x = 9 &\text{ or } –3x = 1\\ x = 3 &\text{ or } x = –\frac{1}{3}. \ _\square \end{align}\]

Find all real values of \(x \) such that \( |x+1| + |2x+3| = 5 \).

SolutionThere are four possible cases, but one will be eliminated due to impossibility:

\(\textbf{1.}\) \( x+1 \) and \( 2x+3 \) both positive

\[ x+1 + 2x+3 = 5 \] \[ 3x + 4 = 5 \] \[ 3x = 1 \] \[ x = \dfrac{1}{3} \]

\(\textbf{2.}\) \( x+1 \) negative, \( 2x + 3 \) positive

\[ - x - 1 + 2x + 3 = 5 \] \[ x + 2 = 5 \] \[ x = 3 \]

However, when \( x = 3 \), \( x+1 \) and \( 2x+3 \) are both positive, so this is not a valid solution to the equation.

\(\textbf{3.}\) \( x+1 \) negative, \( 2x+3 \) negative

\[ -x - 1 - 2x - 3 = 5 \] \[ -3x - 4 = 5 \] \[ -3x = 9 \] \[ x = -3 \]

\(\textbf{4.}\) \( x +1 \) positive, \( 2x + 3 \) negative

This is an impossible case. Graph the two lines if you are not convinced.

The solution set is \( \boxed{ \left \{ -3, \dfrac{1}{3} \right \} } \)

## Find all real values of \(x\) such that

\[|x+2|+|2x+6|+|3x-3|=12\]

In this problem we are dealing with 3 terms of absolute value. Their turning points (the value of \(x\) such that it changes sign) of each terms are \(x=-2, x=-3, x=1\) respectively. Hence, we need to check the case \(-\infty < x \leq -3\), \(-3<x\leq -2\), \(-2 < x \leq 1\), \(1<x<\infty\).

Case 1 : \(-\infty < x \leq -3\)

In this case, the three terms will always be negative. Hence,

\[\begin{aligned} -(x+2)-(2x+6)-(3x-3)&=12 \\ x &= -\frac{17}{6} \end{aligned}\]

However, \(x=-\frac{17}{6} >-3\) is not within the domain \(-\infty < x \leq -3\). Thus this solution is not valid.

Case 2 : \(-3<x\leq -2\)

In this case, the three terms will be negative, positive and negative respectively. Hence,

\[\begin{aligned} -(x+2)+(2x+6)-(3x-3)&=12 \\ x &= -\frac{5}{2} \end{aligned}\]

\(x=-\frac{5}{2}\) lies between \(-3\) and \(-2\) is within the domain. Thus \(\boxed{x=-\frac{5}{2}}\) is one of the solution.

Case 3 : \(-2 < x \leq 1\)

In this case, the three terms will be positive, positive and negative respectively. But

\[\begin{aligned} (x+2)+(2x+6)-(3x-3)=5 \neq 12 \end{aligned}\]

Thus there is no solution within this domain.

Case 4 : \(1<x<\infty\)

In this case, the three terms is always positive. Hence,

\[\begin{aligned} (x+2)+(2x+6)+(3x-3)&=12 \\ x &= \frac{7}{6} \end{aligned}\]

\(x=\frac{7}{6}\) lies between \(1\) and \(\infty\) is within the domain. Thus \(\boxed{x=\frac{7}{6}}\) is one of the solution.

In conclusion, \(x=-\frac{5}{2}\) and \(x=\frac{7}{6}\) are the solutions for the equation.

Find all real values of \( x \) such that \( |x||x+1| = 2 \).

Solution\(\textbf{1.}\) \(x, x+1 \) both positive

\[ x(x+1)-2 = 0 \] \[ x^2 +x - 2 = 0 \] \[ x = 1, x = -2 \]

Reject \( x = -2 \) because it does not make both \(x \) and \( x +1 \) positive.

\(\textbf{2.}\) \(x\) negative, \( x + 1 \) positive

\[ -x(x+1)-2 = 0 \] \[ -x^2 - x - 2 = 0 \] \[ x^2 + x + 2 = 0 \] \[ x = \dfrac{-1 \pm \sqrt{1 - 4 \cdot 1 \cdot 2 }}{2} \]

We only asked for real solutions, so at this point we know to ignore this case because we're going to get imaginary results.

\(\textbf{3.}\) \(x\) positive, \( x +1 \) negative

This is an impossible case (graph the lines and you'll see why) so we can ignore it.

\( \textbf{4.}\) \(x, x+1 \) both negative

Because they're both negative, the negatives end up "canceling" and become positive, which was what we had in case one. However, the restriction is different from case 1 (here, both\( x \) and \( x +1 \) have to be negative, not positive ), so instead of rejecting \( x = -2 \), we reject \( x = 1 \) from this specific case. Basically, in this specific case 4, \( x = 1 \) is not a possible solution, but it does not mean it's not a possible solution for case 1 because we're simply going piece by piece in this piecewise function--we in the end will take the union of all possible solutions.

Thus, the solutions are \( \boxed{\left \{ -2, 1 \right \} } \).

## Technique - Sketching Graph

Sometimes absolute value equations have a ridiculous number of cases and it would take too long to go through every single case. Therefore, we can instead graph the absolute value equations using the definition of absolute value as a piecewise function. To get each piece, you must figure out the domain of each piece. This method is highly beneficial when the question writer asks for the number of solutions instead of the actual solutions. Let's work through some examples to see how this is done.

Find all real solutions to \( |3x-4| = 5 \).

Solution:To graph this, there are two possible cases: when \( 3x - 4\) is positive, and when \( 3x-4 \) is negative.

When is \( 3x-4 \) positive?

\[ 3x - 4 > 0 \] \[ 3x > 4 \] \[ x > \dfrac{4}{3} \]

(and also, when \( x < \dfrac{4}{3} \), \( 3x- 4 \) will be negative).

We know that there will be a "turning point" at \( x = \dfrac{4}{3} \) for the graph of \( y = |3x-4| \).

Finally, using the definition of absolute value, we know that when \( x > \dfrac{4}{3} \), \( y = 3x - 4 \), and when \( x \leqslant \dfrac{4}{3} \), \( y = -3x + 4 \). We now just need to graph \( y = 5 \) and look for the intersections.

You can see that the solutions are \( \boxed{ \left \{ -\dfrac{1}{3} , 3 \right \}} \).

Another benefit of this graphing technique is that you do not need to verify any of the solutions--since we are only graphing the pieces that are actually mathematically possible, we get all the solutions we are looking for, no less and no more. If you could not discern the solutions from the picture, you can simply solve the equation for each case.

Find all real solutions to \( |x+1| + |2x+3| = 5 \).

Solution:The possible cases are that \( \textbf{1. } x+1, 2x+3 \) both are positive; \( \textbf{2. } x+1 \) negative and \( 2x+3 \) positive, and \( \textbf{3. } x+1 , 2x + 3 \) both are negative. We need to figure out the domains for which each of these hold.

Case \( \textbf{1. } \) holds when \( x > -1 \). Case \( \textbf{3. } \) holds when \( x < -\dfrac{3}{2} \). Case \( \textbf{2. } \) holds when \( -\dfrac{3}{2} < x< -1 \). Now, let's write our piecewise function:

When \( x > -1 \), \( y = x+1 + 2x + 3 = 3x + 4 \). When \( -\dfrac{3}{2} < x< -1 \), \( y = -x -1 + 2x + 3 = x + 2 \). When \( x < - \dfrac{3}{2} \), \( y = -x - 1 -2x - 3 = -3x -4 \).

As you can see in the graph, the solutions of \(x \) are \( \boxed{ \left \{ -3, \dfrac{1}{3} \right \}} \) .

Find all real solutions to \( |x||x+1| = 2 \).

SolutionTo graph this, we again only look at the possible cases and when they would occur: \( \textbf{1. } x, x+1 \) both positive, \( \textbf{2. } x, x+1 \) both negative, and \( \textbf{3. } x \) negative, \( x+1 \) positive.

Case \( \textbf{1. } \) is true when \( x>0 \), case \( \textbf{2. } \) is true when \( x<-1 \), and case \(\textbf{3. } \) is true when \( -1 < x < 0 \).

When \( x>0 \) and when \( x< -1 \) , then we have \( y = x(x+1) = x^2 + x \). When \( -1 < x < 0 \), then we have \( y = -x(x+1) = -x^2 - x \).

It is evident that the solutions are \( \boxed{ {-2, 1}} \).

## Problem Solving - Miscellaneous

Any other technique (fact, definition) you can use to solve the problems? Otherwise move on to the followings.

3-4 examples solved by using a mix of more than one of above techniques.

Add guiding text in between. Guiding text means phrasing the section in a way that it keeps on telling the reader what's going on this section.

3-4 TIY problems - using multiple techniques to solve

## What is the sum of all real numbers \(x\) satisfying \[ x^2-\sqrt{x^2} = \lvert x-1 \rvert +5?\]

Observe that \(\sqrt{x^2}=\lvert x \rvert.\) Then the given equation becomes \[ x^2-\lvert x \rvert= \lvert x-1 \rvert +5.\]

If \(x<0,\) then we rewrite the equation to obtain \[\begin{align} x^2-(-x)&=-(x-1)+5\\ x^2+2x-6&=0\\ x&=-1\pm \sqrt{7}\\ x&=-1-\sqrt{7}. \qquad (\text{since } x<0) \end{align}\]

If \(0\le x<1,\) then we rewrite the equation to obtain \[\begin{align} x^2-x&=-(x-1)+5\\ x^2&=6\\ x&=\pm \sqrt{6}, \end{align}\] which do not satisfy the assumption \(0\leq x<1.\) Thus there are no solutions in this interval.

If \(x\ge 1,\) then we rewrite the equation to obtain \[\begin{align} x^2-x&=x-1+5\\ x^2-2x-4&=0\\ x&=1\pm \sqrt{5}\\ x&=1+\sqrt{5}. \qquad (\text{since } x\ge 1) \end{align}\]

Therefore, the above three cases give two solutions \(x=-1-\sqrt{7}\) and \(x=1+\sqrt{5},\) the sum of which is \(\sqrt{5}-\sqrt{7}.\) \(_\square\)

IMO 1959/2Solve the equation \(\sqrt{x+\sqrt{2x-1}}+\sqrt{x-\sqrt{2x-1}}=A\) for real \(x\) (where the square roots are only defined for non-negative values) when:

- \(A=\sqrt{2}\)
- \(A=1\)
- \(A=2\)

Here we don't see any absolute value involved with the equation. Before doing anything note that our first restriction for \(x\) is \(x \geq \dfrac{1}{2}\) and for \(A\) is \(A>0\). Intuitively we could square both sides to get rid of some square roots: \[\begin{align} x+\sqrt{2x-1}+x-\sqrt{2x-1}+2\sqrt{x^2-(2x-1)}&=A^2 \\ 2x+2\sqrt{(x-1)^2}&=A^2 \end{align}\]

Great! We find a perfect square inside the square root, so an absolute value will appear: \[2x+2|x-1|=A^2\]

Now we are going to find the possible cases for \(A\):

When \(x-1 > 0\) we have: \[\begin{align} 2x+2(x-1)&=A^2 \\ x&=\dfrac{A^2+2}{4} \end{align}\] Then, by our assumption of \(x-1 > 0\) we get that this solution only works when \(A^2 > 2\).

When \(x-1 \leq 0\) something interesting happens: \[\begin{align} 2x-2(x-1)&=A^2 \\ 2&=A^2 \end{align}\]

So, when \(A^2=2\) the equation becomes independent of \(x\), so any value of the interval \(x \in \left[\dfrac{1}{2},1\right]\) will be a solution for the first point.

When \(A=1\) there are no solutions by our restriction of \(A^2 \geq 2\). Finally, when \(A=2\) we have: \[\begin{align} x&=\dfrac{2^2+2}{4}\\ x&=\dfrac{3}{2}._\square \end{align}\]

What happens if we allow the square roots to admit negative values?

Sometimes, in minimization problems, it often helps us to see that the value of an expression inside the absolute value is at least 0.

\[ y = \Big| \big| \small| x - 5 \small| + 5 \big| - 5 \Big| + 5 \]

What is the smallest possible value of \(y\)?

\[\] **Notation**: \( | \cdot | \) denotes the absolute value function.

**Cite as:**Absolute Value Equations.

*Brilliant.org*. Retrieved from https://brilliant.org/wiki/absolute-value-equations/