Giải các phương trình:
a) \(\left|x^2+1\right|=\left|x^3-5x^2-2x+4\right|\)
b) \(\left|\frac{2x+1}{x-5}\right|=x+5\)
c) \(\left|x^2-1\right|+\left|x\right|=1\)
d) \(\frac{3}{\left|x+3\right|-1}=\left|x+2\right|\)
e) \(\left|x+1\right|+\left|x-1\right|=1+\left|1-x^2\right|\)
g) \(\left|3-2x\right|-\left|x\right|=5\left(\left|2+3x\right|+x-2\right)\)