When does the function $$f(x)=a\cdot \sin(x)+b\cdot \cos(x)-x$$ have exactly one real root ($a$ and $b$ are real numbers) ?
When does $f(x)$ have a multiple root , in other words for which real numbers $a$ and $b$ does the system $$a\cdot \sin(x)+b\cdot \cos(x)=x$$ $$a\cdot \cos(x)-b\cdot\sin(x)=1$$ have a real solution $x$ ?
A root with multiplicity $3$ occurs, if we have $a=1$ and $b=0$. The function $f(x)=\sin(x)-x$ and the first two derivates are $0$ for $x=0$. If we choose $a=4$ and $b=-6$, we have $5$ real simple roots. The choice $a=1$ and $b=1$ leads to a unique simple root.
$f(x)$ has always a real root because of $$\lim_{x\rightarrow \pm \infty} f(x)=\mp \infty$$
Any ideas ?
A necessary, but insufficient condition for a solution to exist is the fact that
$x^2+1=a^2+b^2$
Which can be obtained by squaring both equations and adding them together.
Most likely, you will need to analyse the equation with the aid of a graphical depiction, in order to determine sufficient conditions for solutions to exist.
Update: Dividing the initial equation by the derivative equation, we obtain:
$\displaystyle \frac{a\sin{x} + b\cos{x}}{a\cos{x}-b\sin{x}} = x$
$\displaystyle \frac{\tan{x}+\frac{b}{a}}{1-\frac{b}{a}\times\tan{x}} = x$
Which is equivalent to:
$\displaystyle \tan{ ( x+\tan^{-1}{\frac{b}{a})}} = x$
This definitely requires graphical aid, but it is significantly easier to handle.