Imaginary numbers are what you feed to the algorithms(of algebraic manipulations), because if you follow through all the logic, the result might come out real.
For example:
You know that your formula to find y is: y=a+sqrt(b)+c-sqrt(d)
But alas b and d are negative.
So if you invent imaginary numbers your solution might come out real if sqrt(b)=sqrt(d).