Problem

Source: IMO Shortlist 1997, Q22

Tags: function, algebra, functional equation, polynomial, IMO Shortlist



Does there exist functions $ f,g: \mathbb{R}\to\mathbb{R}$ such that $ f(g(x)) = x^2$ and $ g(f(x)) = x^k$ for all real numbers $ x$ a) if $ k = 3$? b) if $ k = 4$?