We are given the functional equation
f(x)+2f(x1)=3x,x=0.
Our aim is to determine the set
S={x∈R:f(x)=f(−x)}.
First we must obtain an explicit expression for f(x). To do this we write the given relation once for x and once for x1.
For x itself we already have
f(x)+2f(x1)=3x(1).
Now replace x by x1 everywhere in (1). Because x=0, this substitution is legitimate and yields
f(x1)+2f(x)=x3(2).
Thus we have a pair of simultaneous linear equations in the two unknowns
A=f(x),B=f(x1).
Written explicitly, the system is
⎩⎨⎧A+2B=3x,2A+B=x3.
We now solve this system. From elementary algebra, when we have
{A+2B=C1,2A+B=C2,
the solution is obtained by elimination. Multiplying the first equation by 2 gives
2A+4B=6x(3).
Subtract (2) from (3):
(2A+4B)−(2A+B)=6x−x3.
The left‐hand side simplifies to 3B, so
3B=6x−x3.
Dividing by 3 gives
B=2x−x1.
Thus
f(x1)=2x−x1.
We substitute this value of B back into equation (1):
A+2(2x−x1)=3x.
Expanding the brackets we get
A+4x−x2=3x.
Now isolate A (which is f(x)):
A=3x−4x+x2=−x+x2.
So we have obtained an explicit formula valid for every non-zero real number:
f(x)=−x+x2,x=0.
With the function in hand, we can now find S. By definition,
f(x)=f(−x).
Using our formula for f on both sides, we write
−x+x2=−(−x)+−x2.
Carefully simplifying the right‐hand side:
−(−x)=x,−x2=−x2,
so the equality becomes
−x+x2=x−x2.
To clear the denominators we multiply both sides by x (remember, x=0):
x(−x+x2)=x(x−x2).
Performing the multiplication term by term, we obtain
−x2+2=x2−2.
Now we move all terms to one side:
−x2+2−(x2−2)=0⟹−x2+2−x2+2=0.
This simplifies to
−2x2+4=0.
Dividing by −2 gives
x2−2=0.
Finally, solving for x we get
x2=2⟹x=±2.
Both solutions are non-zero real numbers, so they are admissible. No other real numbers satisfy the equality f(x)=f(−x).
Therefore
S={2,−2},
which clearly contains exactly two elements.
Hence, the correct answer is Option A.