I found this problem from Precalculus 7th ed, James Stewart, chapter 1.8, problem 128.
"Recall that $ |a-b| $ is the distance between a and b on the number line. For any number x, what do $|x-1|$ and $|x-3|$ represent? Use this interpretatin to solve the inequality $|x-1| < |x-3|$ geometrically. In general, if a < b, what is solution of the inequality $|x-a| < |x-b|$ ? "
*I know that $|x-1|$ is the distance between x and 1, and geometrically, if $x = 2$, the distance between 1 and x is equal to the distance between 3 and x, at this point we can see that for $ x < 2 $ the distance between x and 3 is bigger than the distance between x and 1. I wanted to check this solution using the formal way to solve this inequality so I wrote the next solution, but I wasn't able to check it because, apparently, I did something wrong and I can't figure out what was wrong.
$|x-1| < |x-3|$
$-|x-3| < x-1 < |x-3|$
$-|x-3| < x-1 \land x-1 < |x-3|$
$(-x+1 < x-3 < x-1) \land (x-1 < x-3 \lor x-1 > -x+3)$
$(-x+1 < x-3 \land x-3 < x-1) \land (x-1 < x-3 \lor x-1 > -x+3)$
$(4 < 2x \land -3 <-1) \land (-1 < -3 \lor 2x > 4)$
$(2 < x \land -3 <-1) \land (-1 < -3 \lor x > 2)$
My question is what I did wrong? and how to improve my formal solution, Thank you very much in advance for taking the time to read this.
EDIT: First of all, thank you everyone for all your answers now I can see various ways to solve this problem. Regarding my "cumbersome" solution Mr @AnuragA pointed out my mistake and now I came with this new solution, I hope now It is ok, Thank you again, and if you can point out any error in this new solution I will appreciate it.
$|x-1| < |x-3|$
$-|x-3| < x-1 < |x-3|$
$[|x-3| > -x+1] \land [x-1 < |x-3|]$
$[x-3 > -x + 1 \lor -x + 1 < -(x-3)]\land[x-3>x-1 \lor x-1<-(x-3)] $
$[2x > 4 \lor 1 < 3]\land[-3>-1 \lor 2x<4] $
$[x >2 \lor \{ x \in \Bbb R \Bbb \}]\land[\{ x \in \emptyset \} \lor x<2] $
$[ x \in \Bbb R \Bbb ]\land[ x<2] $
$x<2$

We can visually see the answer to this question and use the knowledge of geometry.