I'm trying to write a delta-epsilon proof that:

$\displaystyle \lim_{x\to a}kf(x)=k\left(\lim_{x \to a}f(x)\right)=b\quad\text{(k is constant)}$

I know that $\displaystyle \lim_{x\to a}kf(x)$ exists if $\displaystyle \forall\epsilon>0\exists\delta>0$ such that:

$\displaystyle 0<|x-a|<\delta \Rightarrow |kf(x)-b|<\epsilon$

And $\displaystyle k\left(\lim_{x\to a}f(x)\right)$ exists if $\displaystyle \forall\epsilon>0\exists\delta>0$ such that:

$\displaystyle 0<|x-a|<\delta \Rightarrow k|f(x)-b|<\epsilon$

I don't understand how I can write a proof using an arbitrary function and limit. So far I have only been proving specific limits with the epsilon delta method, not writing any algebraic proofs like this. Can someone offer some help? Thanks

Edit: I had a thought, but I'm not sure I wrote that second one out right, cause wouldn't I simply have to prove: $\displaystyle |kf(x)-b|=k|f(x)-b|$ (which isn't true)?