已知变量 $x$ 和 $\theta$ 都在 $\mathbb R$ 上变化,求 $\dfrac{x^2+2x\sin\theta+2}{x^2+2x\cos\theta+2}$ 的取值范围.
【难度】
【出处】
无
【标注】
【答案】
$\left[2-\sqrt 3,2+\sqrt 3\right]$
【解析】
根据题意,有\[\dfrac{x^2+2x\sin\theta+2}{x^2+2x\cos\theta+2}=\begin{cases} 1,&x=0,\\ \dfrac{u+\sin\theta}{u+\cos\theta},&x\ne 0,\end{cases}\]其中 $u=\dfrac x2+\dfrac 1x$,$u$ 的取值范围是 $\left(-\infty,-\sqrt 2\right]\cup\left[\sqrt 2,+\infty\right)$.考虑几何意义和图形的对称性,有\[k=\dfrac{u+\sin\theta}{u+\cos\theta}\]的取值范围是射线 $y=x$,$x\in\left[\sqrt 2,+\infty\right)$ 上的点到单位圆上的点的斜率的取值范围,为 $\left[2-\sqrt 3,2+\sqrt 3\right]$.
综上所述,所求的取值范围是 $\left[2-\sqrt 3,2+\sqrt 3\right]$.

答案
解析
备注