Here is an exercise I had to deal with recently
Let $\phi : f \in C([-\pi,\pi], \mathbb R) \mapsto\int_{[-\pi,\pi]} sin(x+t)f(t)dt $
I proved $\phi$ is an endomophism, and then I had to discuss its eigenvalues, eigenvectors and eigenspaces. So $\phi(f) = \lambda f$ is equivalent to $\lambda f(x) = sin(x)\int_{[-\pi,\pi]}f(t)cos(t)dt + cos(x)\int_{[-\pi,\pi]}f(t)sin(t)dt$ for all $x$ in $[-\pi,\pi]$
If $\lambda \neq 0$ then $f \in span(sin, cos)$ ($1$)
If $\lambda = 0$ then $<f,cos>=0$ and $<f,sin>=0$ so f is in the intersection of 2 hyperplanes (one is orthogonal to $cos$ and the other is orthogonal to $sin$) ($2$)
Can you expand points ($1$) and ($2$) please. Thank you
Point $(1)$ is just the formula you wrote: let $$a:=\langle f,\cos\rangle=\int_{[-\pi,\pi]}f(t)\cos(t)dt$$ and $$b:=\langle f,\sin\rangle=\int_{[-\pi,\pi]}f(t)\sin(t)dt.$$ Then, $\lambda f=a\cos(x)+b\sin(x)$ implies $f=\frac{a}{\lambda}\cos(x)+\frac{b}{\lambda}\sin(x)$.
Point $(2)$ also follows easily: suppose $a\neq 0$, then for some $x$ $a\cos(x)+b\cos(x)\neq 0$, impossible since you are assuming $\lambda=0$.