There should be a chapter in your textbook about solving equation of the form:
a sin(x) + b cos(x) = c.
We can just divide both sides by (k2 + 1)1/2, to get:
[tex]\frac{1}{2\sqrt{k ^ 2 + 1}} = \frac{k}{\sqrt{k ^ 2 + 1}} \cos(\theta) - \frac{1}{\sqrt{k ^ 2 + 1}} \sin(\theta)[/tex]
Now, let angle [tex]\alpha[/tex], be an angle such that:
[tex]\cos \alpha = \frac{k}{\sqrt{k ^ 2 + 1}}[/tex], and [tex]\sin \alpha = \frac{1}{\sqrt{k ^ 2 + 1}}[/tex], such angle does exist, because:
[tex]\sin ^ 2 \alpha + \cos ^ 2 \alpha = \frac{k ^ 2}{k ^ 2 + 1} + \frac{1}{k ^ 2 + 1} = 1[/tex]
Now, your equation will become:
[tex]\frac{1}{2\sqrt{k ^ 2 + 1}} = \cos(\alpha + \theta)[/tex], which is easy to solve. Right? :)