**I **want to solve the equation **f(f(-1))=sqrt(2)+g(f(2)), where**

**f:=x->a/x^2-3*x+2 **and **g:=x->a*sin(2*x), **a is an unknow. I tried

**restart:**

**f:=x->a/x^2-3*x+2:**

**g:=x->a*sin(2*x):**

**solve(f(f(-1))=sqrt(2)+g(f(2)),a):**

**evalf(%);**

and receive** 13.02210936+4.135282756*I. **This is a complex solution**. **I know that, the equation has a real number is **-5.81218**. How can I get this real solution?