GATE 2023 CS – Question 9
$f(x)$ and $g(y)$ are functions of $x$ and $y$, respectively, and $f(x) = g(y)$ for all real values of $x$ and $y$. Which one of the following options is necessarily TRUE for all $x$ and $y$?
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (B) $f(x)=g(y)=\text{constant}$
Explanation
Since x and y vary independently, the left side cannot depend on x and the right side cannot depend on y. So both must equal the same constant.