To say that the graph of f is symmetric about the line x=a is to mean that f(x1)=f(x2) whenever x1,x2 are real numbers whose sum is 2a. Hence, by hypothesis,
f(41−x)=f(41+x)andf(43−x)=f(43+x)for all x∈R.
Letting y=41−x, we deduce from the first condition that f(y)=f(21−y) for all y∈R. Letting y=43−x in the second relation, we see that f(y)=f(23−y) for all y∈R. Therefore,
f(21−y)=f(23−y)for all y∈R.
Hence, letting x=21−y we see that f(x)=f(1+x) for all x∈R, as desired.
Consider the function
f(x)=sin2(2πx).
Then, for all x∈R,
f(41−x)=sin2(2π(41−x))=(sin(2π)cos(2πx)−cos(2π)sin(2πx))2=cos2(2πx)=f(41+x).
f(43−x)=sin2(2π(43−x))=(sin(23π)cos(2πx)−cos(23π)sin(2πx))2=cos2(2πx)=f(43+x).
Since it's nonnegative and not a constant function, this f does the job.