函数 $f(x)=\tan x +\cos x-|\tan x-\cos x|$ 在区间 $\left(-\dfrac{\pi}{2},\dfrac{\pi}{2}\right)$ 内的图象是 \((\qquad)\)
【难度】
【出处】
2016年第二十七届“希望杯”全国数学邀请赛高一(二试)
【标注】
【答案】
D
【解析】
当 $\tan x\leqslant \cos x$,即 $x\in \left(-\dfrac{\pi}{2},\theta\right]$($0<\theta<\dfrac{\pi}{2}$)时,$$f(x)=2\tan x;$$当 $\tan x>\cos x$,即 $x\in \left(0,\dfrac{\pi}{2}\right)$($0<\theta<\dfrac{\pi}{2}$)时,$$f(x)=2\cos x.$$
题目
答案
解析
备注