If $f(x) = \sqrt{x-4\sqrt{x-4}}+\sqrt{x+4\sqrt{x-4}}$ ; then $f(\sqrt {7})=\; ?$
I tried solving this equation through many methods, I tried rationalizing, squaring, etc. But after each of them, the method became really lengthy and ugly.
I also noted that once we substitute $\sqrt {7}$ the inner part of the radical becomes imaginary. How to proceed with this piece of information?
Please help me with this problem. Any more innovative methods would be appreciated.
Answer: $4$.
Edit $[7^{th}$ March, $2021]$:
I was told yesterday that this question was wrong and that we were supposed to find $f(2\sqrt5)$. Although I can solve with $2\sqrt5$ the same way as given below in the answers.... What I don't understand is that why $\sqrt7$ doesn't work. Can someone please help?
To answer your latest edit, if a complex number $x$ is not nonnegative real, there are two cases with regard to its square root:
$x<0$. In this case what I have learned is $\sqrt x=\sqrt{-x} i$. Maybe some math textbooks will consider this illegal but many authors comfortably regard $\sqrt{-1}$ as $i$.
$x=a+bi$ where $b\ne0$. In this case there are two numbers whose square equal to $x$ and one should avoid writing $\sqrt x$.
If $x=\sqrt 7$, it is ok to ask: find all complex numbers $z$ such that $z^2=\sqrt7 - 4\sqrt {\sqrt 7 - 4}$. It's also ok to ask you to find all complex numbers $z$ such that $z^2=\sqrt 7 + 4\sqrt {\sqrt 7 -4}$. Each will have two solutions (one being the opposite of the other). If you add the two (separate) solutions with positive real part you will get $4$. If you add the two solutions with negative real part you will get $-4$.