Solve for x:
A|x + E| + B =
C|x + E| + D
SOLUTION
C > 0 ? "Subtract" : "Add" abs(C)|x + E| C > 0 ? "from" : "to" both sides:
(A|x + E| + B) - C|x + E| =
(C|x + E| + D) - C|x + E|
A - C|x + E| + B = D
B > 0 ? "Subtract" : "Add" abs(B) B > 0 ? "from" : "to" both sides:
(A - C|x + E| + B) - B =
D - B
A - C|x + E| = D - B
Divide both sides by A - C.
\dfrac{A - C|x + E|}{A - C} =
fraction(D-B, A-C)
Simplify.
|x + E| = SIMPLIFIED
Because the absolute value of an expression is its distance from zero, it has two solutions, one negative and one positive:
x + E = - SIMPLIFIED
or
x + E = SIMPLIFIED
Calculate the solution where x + E is negative.
x + E = - SIMPLIFIED
E > 0 ? "Subtract" : "Add" abs(E) E > 0 ? "from" : "to" both sides:
x + E - E = - SIMPLIFIED - E
x = - SIMPLIFIED - E
Change the term to an equivalent fraction with a denominator of SIMPLIFIED_DENOM.
x = - SIMPLIFIED - E\cdot fraction(SIMPLIFIED_DENOM,SIMPLIFIED_DENOM)
x = - SIMPLIFIEDE > 0 ? "-" : "+" fraction(abs(E)*SIMPLIFIED_DENOM,SIMPLIFIED_DENOM)
x = NEG_RESULT
Then calculate the solution where x + E is positive.
x + E = SIMPLIFIED
E > 0 ? "Subtract" : "Add" abs(E) E > 0 ? "from" : "to" both sides:
x + E - E = SIMPLIFIED - E
x = SIMPLIFIED - E
Change the term to an equivalent fraction with a denominator of SIMPLIFIED_DENOM.
x = SIMPLIFIED - E\cdot fraction(SIMPLIFIED_DENOM,SIMPLIFIED_DENOM)
x = SIMPLIFIEDE > 0 ? "-" : "+" fraction(abs(E)*SIMPLIFIED_DENOM,SIMPLIFIED_DENOM)
x = POS_RESULT
A > 0 ? "Subtract" : "Add" A|x + E| A > 0 ? "from" : "to" both sides:
(A|x + E| + B) - A|x + E| =
(C|x + E| + D) - A|x + E|
B = C - A|x + E| + D
D > 0 ? "Subtract" : "Add" abs(D) D > 0 ? "from" : "to" both sides:
B - D =
(C - A|x + E| + D) - D
B - D = C - A|x + E|
Divide both sides by C - A.
fraction(B-D, C-A) =
\dfrac{C - A|x + E|}{C - A}
Simplify.
SIMPLIFIED = |x + E|
Because the absolute value of an expression is its distance from zero, it has two solutions, one negative and one positive:
- SIMPLIFIED = x + E
or
SIMPLIFIED = x + E
Calculate the solution where x + E is negative.
- SIMPLIFIED = x + E
E > 0 ? "Subtract" : "Add" abs(E) E > 0 ? "from" : "to" both sides:
- SIMPLIFIED - E = x + E - E
- SIMPLIFIED - E = x
Change the term to an equivalent fraction with a denominator of SIMPLIFIED_DENOM.
- SIMPLIFIED - E\cdotfraction(SIMPLIFIED_DENOM,SIMPLIFIED_DENOM) = x
- SIMPLIFIEDE > 0 ? "-" : "+" fraction(abs(E)*SIMPLIFIED_DENOM,SIMPLIFIED_DENOM) = x
NEG_RESULT = x
Then calculate the solution where x + E is positive.
SIMPLIFIED = x + E
E > 0 ? "Subtract" : "Add" abs(E) E > 0 ? "from" : "to" both sides:
SIMPLIFIED - E = x + E - E
SIMPLIFIED - E = x
Change the term to an equivalent fraction with a denominator of SIMPLIFIED_DENOM.
SIMPLIFIED - E\cdot fraction(SIMPLIFIED_DENOM,SIMPLIFIED_DENOM) = x
SIMPLIFIEDE > 0 ? "-" : "+" fraction(abs(E)*SIMPLIFIED_DENOM,SIMPLIFIED_DENOM) = x
POS_RESULT = x
Thus, the correct answer is SOLUTION.
The absolute value cannot be negative. Therefore, there is no solution.