I know the method of solving the equation like this $|2x+1|=|3x+9|$ but the problem is if the same equation would be like this $| 2x+1 | = x | 3x+9 |$, how can I solve this?
Solving equations with multiple absolute values
-
0I disagree that this is an *exact* duplicate of a previous question. Consider me to have voted to reopen. – 2010-08-24
2 Answers
Both equations you mention can be solved in the same way. As others have said in the comments on your question here and the comments and answers on this question, $|ax-b|=\begin{cases} ax-b & \text{ if } x\ge \frac{b}{a} \\\\ b-ax & \text{ if } x< \frac{b}{a} \end{cases}$, where I'll call $\frac{b}{a}$ a "turning point" value. So, for any equation an absolute value, there is at least one turning point value of the variable for each absolute value. In both of your examples, the turning point values are $-\frac{1}{2}$ and $-3$. The $n$ (2 in your examples) turning point values divide the number line into $n+1$ (3 in your examples) regions where, within each region, each absolute value can be replaced by either the expression inside the absolute value or its opposite. Each resulting equation can then be solved, restricting solutions to the corresponding region on the number line.
Let's consider a different example: $x|4x-1|=|3x-2|$. The turning points are $\frac{1}{4}$ and $\frac{2}{3}$.
$\begin{matrix} \leftarrow & \frac{1}{4} & \text{---} & \frac{2}{3} & \rightarrow \\\\ x(1-4x)=(2-3x) & | & x(4x-1)=(2-3x) & | & x(4x-1)=(3x-2) \\\\ x-4x^2=2-3x & | & 4x^2-x=2-3x & | & 4x^2-x=3x-2 \\\\ 0=4x^2-4x+2 & | & 4x^2+2x-2=0 & | & 4x^2-4x+2=0 \\\\ \text{no }x\in\mathbb{R} & | & x=-1\text{ or }x=\frac{1}{2} & | & \text{no }x\in\mathbb{R} \end{matrix}$
(edit: Note that between any two adjacent regions, the only change in the equations at the tops of the regions is the one term with turning point at the boundary between the two regions.)
Now, the solutions for each region-specific equation apply only to that region, so the solutions -1 and $\frac{1}{2}$ in the middle region only apply to the interval $[\frac{1}{4},\frac{2}{3}]$, so -1 is not a solution (it's not in the interval) but $x=\frac{1}{2}$ is a solution (and it's the only solution to $x|4x-1|=|3x-2|$).
Regardless of the algebraic method of solution, graphing both sides of the equation and looking for points of intersection is a good way to check your solution.
To solve $|f(x)|=g(x)|h(x)|$ in general, find the sets $P=\{x:f(x)g(x)\ge 0\}$ and $N=\{x:f(x)g(x)\lt 0\}$.
Then solve the two equations
- $f(x)=g(x)h(x)$ - but discard solutions that are not in $P$.
- $f(x)=-g(x)h(x)$ - but discard solutions that are not in $N$.
You will be left with the solutions of $|f(x)|=g(x)|h(x)|$.