To show an operator is compact I understand you have to show the operator is the limit of finite rank operators. However the proof I have doesn't do this.
I have an operator $$k:C0[,\pi]) \to C([0, \pi])$$ given by $$(Ku)(x)=\int^\pi _0 (sin x+ cos t)u(t) dt$$ where $u \in C([0, \pi])$
I have the proof to show the operator is compact.
Firstly we show the operator is bounded and it follows that $||Ku|| \leq 2 \pi ||u||$. Hence the operator is bounded.
It says in my notes that $(Ku)(x)=\mathrm{a}\ \mathrm{sin}\ x + b$ for some constants a,b. How do we get this?
From this it follows that $\mathrm{Ran} K \subset \ \mathrm{span}\{\sin,1\}$
Which shows that the operator is compact.
Why do we have to look at the range of K? What role does this play in showing the operator is compact?
There is a theorem that so-called finite-rank operators between normed spaces are compact. It goes like this:
(Proof given in the text)
In your case $K$ is bounded and its range is spanned by 2 vectors, i.e. it's 2-dimensional, hence it is compact by the theorem.
For your first question, on why you can write $(Ku)(x) = a\sin x + b$, see the answer by @Tryss.