I agree with the main idea of your argument, but how can it be set in the "space of all differentiable linear functions" when trigonometric functions aren't linear? I think the argument would hold on the space of real analytic functions. Maybe that is more restrictive than necessary.