当x >= 0时,原方程化为x^2 - 2x - 3 = 0
即(x-3)(x+1) = 0,解得x=3
当x < 0时,原方程化为x^2 + 2x - 3 = 0
即(x+3)(x-1) = 0,解得x = -3
所以原方程的解为x = 3或x = -3
当x >= 0时,原方程化为x^2 - 2x - 3 = 0
即(x-3)(x+1) = 0,解得x=3
当x < 0时,原方程化为x^2 + 2x - 3 = 0
即(x+3)(x-1) = 0,解得x = -3
所以原方程的解为x = 3或x = -3