Let $ \alpha \ne \pm 1 $ be a real number. Find all functions $ f : \mathbb R \to \mathbb R $ and $ g : ] 0 , \infty [ \to \mathbb R $ such that $$ f ( \ln x + \alpha \ln y ) = g ( \sqrt x ) + g( \sqrt y ) \quad \forall x , y > 0 \text . $$
My work:
Interchanging $ x $ and $ y $ we obtain $$ f ( \ln x + \alpha \ln y ) = f ( \ln y + \alpha \ln x ) \quad \forall x , y > 0 \text . $$ Let $$ a = \ln x + \alpha \ln y \quad \text {and} \quad b = \ln y + \alpha \ln x \text . $$ Then $$ x = \exp \left( \frac { \alpha b - a } { \alpha ^ 2 - 1 } \right) \quad \text {and} \quad y = \exp \left( \frac { \alpha a - b } { \alpha ^ 2 - 1 } \right) \text , $$ hence $$ f ( a ) = f ( b ) = g \left( \exp \left( \frac { \alpha b - a } { 2 ( \alpha ^ 2 - 1 ) } \right) \right) + g \left( \exp \left( \frac { \alpha a - b } { 2 ( \alpha ^ 2 - 1 ) } \right) \right) \text . $$ It follows that $ f $ is a constant function. Let $ f ( x ) = c $. Then if $ x = y $, we have $ g ( \sqrt x ) = \frac c 2 $, so $ g $ is constant and $ g ( x ) = \frac c 2 $.
I am not sure about the conclusion that $ f $ is constant.