Hello

I got a question here about absolute values in inequalities that's been bugging me for a while.

The questions is: Solve, for x in terms of a, the inequality

|x^2-3ax+2a^2|<|x^2+3ax-a^2|

where x is a real number, a is a real number and a is not equal to 0.

I tried the graphical method, where i drew two parabolas representing the two quadratic equations, and then compare their values in different segments of the graph when the absolute function has been removed for both graphs, as well as considering two cases when a>0 or a<0.

Eventually I arrived at the solution, which happens to be x>a/2>0 OR x<a/2<0.

However that took me two full pages of working to get the answer. For a simple school assignment question like this, I can't help but wonder if there is any simpler, or non-graphical, method to derive the answer?

Any thoughts?

Thanks.