Determine all solutions to the following. $$ \lvert x+12\rvert +\lvert x-5\rvert =15.$$
How can I solve problems like this? Should I try graphing the function? Should I somehow consider various cases? Or should I square both sides and try to use identities like $|x-5|^2=(x-5)^2$?
We know $|a+ib|=+\sqrt{a^2+b^2}$ where $a,b$ are real.
If we take $x$ to be real,
If $x<-12, -12-x+5-x=-7-2x=15\implies 2x=-22,x=-11$ which is impossible
If $-12\le x\le 5, x+12+(5-x)=17\ne 15$
If $x>5, x+12+x-5=15,2x=8,x=4$ which is impossible as $x>5$
If we allow complex values of $x,x=a+ib$(say) where $a,b$ are real.
So, $\sqrt{(a+12)^2+b^2}+\sqrt{(a-5)^2+b^2}=15$
As we know the locus of the points whose the sum of the distances from the two foci $(-12,0);(5,0)$ are constant(the length of the major axis ), is ellipse.
Now, we can simplify to find the equation of the ellipse.
Observe that the distance of the foci is $\sqrt{(-12-5)^2+(0-0)^2}=17>15=$ the length of the major axis.
So, there is no solution in real $(a,b)$