Denote by $\mathbb{Q}^{+} $ the set of all positive rational numbers. Determine all functions $f: \mathbb{Q}^{+} \rightarrow \mathbb{Q}^{+}$ which satisfy the following equation for all $x,y \in \mathbb{Q}^{+}:$ $$f\left ( f(x)^{2}y \right )=x^{3}f(xy).$$
What I have tried is ... By substituting $y=1$, we get $$f\left ( f(x)^{2} \right )=x^{3}f(x).$$
Then, whenever $f(x)=f(y)$, we have $$x^{3}= \frac{f\left ( f(x)^{2} \right )}{f(x)}= \frac{f\left ( f(y)^{2} \right )}{f(y)}=y^{3}$$ which implies $x=y$, so the function $f$ is injective. and I think I'm stuck here, any help will be appreciated, thanks.
Note that it's an Olympiad question (IMO2010 SL, Problem A5).
Ok, I'll complete with your solution...
$$f\left ( f(x)^{2}y \right )=x^{3}f(xy) \tag{1}.$$
$$f\left ( f(x)^{2} \right )=x^{3}f(x) \tag{2}.$$
Now replace $x$ by $xy$ in $(2)$ , now apply $(2)$ twice, second time to $\left (y, f(x)^{2} \right )$ instead of $(x,y)$ $$f\left ( f(xy)^{2} \right )=(xy)^{3}f(xy)=y^{3}f\left ( f(x)^{2}y \right )=f\left ( f(x)^{2} f(y)^{2} \right )$$ Since $f$ is injective, we get $$f(xy)^{2}=f(x)^{2}f(y)^{2}$$ $$f(xy)=f(x)f(y)$$
Therefore, $f$ is multiplicative. This also implies $f(1)=1$ and $f(x^n)=f(x)^n$ for all integers $n.$
Then the function equation $(1)$ can be re-written as $$f\left ( f(x) \right )^{2} f(y)=x^{3}f(x)f(y)$$ $$f\left ( f(x) \right )=\sqrt{x^{3}f(x)} \tag{3}$$
Let $g(x)=xf(x)$. Then, by $(3),$ we have $$g\left ( g(x) \right )=g\left (xf(x) \right )=xf(x)\cdot f\left (xf(x) \right )=xf(x)^{2} f\left ( f(x) \right )=xf(x)^{2}\sqrt{x^{3}f(x)}=\left ( xf(x) \right )^{5/2}=\left ( g(x) \right )^{5/2}$$
and, by induction, $$\underset{n+1}{\underbrace{g ( g(....g}}(x)....) )=\left ( g(x) \right )^{(5/2)^{n}} \tag{4}$$
for every positive integer $n.$
Consider $(4)$ for a fixed $x.$ The left-hand side is always rational, so $\left ( g(x) \right )^{(5/2)^{n}}$ must be rational for every $n$. We show that this is possible only if $g(x)=1$. Suppose that $g(x)\neq 1$ and let the prime factorization of $g(x)$ be $g(x)=p_{1}^{\alpha _{1}}... p_{k}^{\alpha _{k}}$ where $p_{1}...p_{k}$ are distinct primes and $\alpha _{1}...\alpha _{k}$ are nonzero integers. Then the unique prime factorization of $(4)$ is
$$\underset{n+1}{\underbrace{g ( g(....g}}(x)....) )=\left ( g(x) \right )^{(5/2)^{n}} =p_{1}^{(5/2)^{n}{\alpha _{1}}}...p_{k}^{(5/2)^{n}{\alpha _{k}}}$$
where the exponents should be integers. But this is not true for large values of $n$, for example $(\frac{5}{2})^{n} \alpha _{1}$ cannot be a integer number when $2^{n}\not{\mid } \alpha $. Therefore $g(x) \neq 1$ is impossible.
Hence, $g(x)=1$ and thus $f(x)=\frac{1}{x}$ for all $x$.
The function $f(x)=\frac{1}{x}$ satisfies the equation $(1)$:
$$f\left ( f(x)^{2}y \right )=\frac{1}{f(x)^{2}y}=\frac{1}{(\frac{1}{x}^{2})y}=\frac{x^{3}}{xy}=x^{3}f(xy).$$
AND WE'RE DONE. "SP3ED"