Find all functions that satisfy
for all real numbers and .
Solutions — 2
Solution 1
Substituting into the given equation, we obtain
which is equivalent to
If then (3) implies , or equivalently, .
Substituting now into the original equation and applying gives us
or equivalently, where . In the other case, is expressed in the same form with .
We show that the function satisfies the original equation if and only if . Substituting into the original equation and simplifying leads to
This equality must hold for every real number . For that, all coefficients in the left hand side must be zeros. From the leading term, we get , implying or . From the quadratic term, we get , implying or . Altogether, only works. It makes the constant term also zero. Hence is the only function that satisfies the given equation.
Solution 2
Substituting into the original equation gives
or equivalently,
This implies that either or for any real number .
Consider the case . Substituting into the original equation leads to
which must hold for any real number . Substituting for gives
which must also hold for any real number . Hence for any real number , i.e., is an even function. Eliminating the two terms with in (4) gives , or equivalently, . Substituting now into the original equation gives
As is an even function and , the equation (5) simplifies to which is equivalent to .
Hence for any real number , where is some constant. We proceed like in Solution 1.