a<b<c<d. How do you find the solution(s) of |x-a|+|x-c|=|x-b|+|x-d|? It is verifiable that, for (a,b,c,d)=(1,2,3,5),x=72 is a solution.

2 Answers
Jan 12, 2018

You need case analysis.

Explanation:

There are several cases, in the point view of the value of x.

[Case1]
If x<a, the equation will be

(xa)(xc)=(xb)(xd)
2x+a+c=2x+b+d
a+c=b+d

This result is inconsistent with the fact a<b<c<d. So there is no solutions in this case.

[Case2]
If ax<b,

(xa)(xc)=(xb)(xd)
a+c=2x+b+d
2x=a+bc+d
x=a+bc+d2

For example, if (a,b,c,d)=(1,2,3,5), x=1+23+52=52.
But this is an inappropriate solution as the result is inconsistent with 1x<2.

Then, proceed to the following cases.
[Case3] bx<c

(xa)(xc)=(xb)(xd)
a+c=b+d
a+d=b+c

If a+d equals to b+c, every x that satisfy bx<c is the solution. Otherwise, no x in this domain will be the answer.

[Case4] cx<d

(xa)+(xc)=(xb)(xd)
2xac=b+d
2x=ab+c+d
x=ab+c+d2

When (a,b,c,d)=(1,2,3,5), the solution is
x=12+3+52=72 and this is the appropriate solution.(372<5

[Case5] dx
In this case, there is no solution. The reason is same as [Case1].

Jan 12, 2018

Here is the alternative way(drawing the graph)

Explanation:

Let f(x)=|xa|+|xc|.

This can be written as a piecewise function:
f(x)=2x+a+c (x<a)
f(x)=a+c (ax<c)
f(x)=2xac (cx)

You can write g(x)=|xb|+|xd| as a piecewise function in the same way.

Then, draw the two graphs: y=f(x) and y=g(x).
The graphs below is for (a,b,c,d)=(1,2,3,5). You can see that the two graphs crosses at (72,3).
graph{(abs(x-1)+abs(x-3)-y)(abs(x-2)+abs(x-5)-y)=0 [-6.05, 13.95, -1.64, 8.36]}