Đạo hàm của hàm số $y=\left(3x-1\right)\cos x$ là
Chọn phương án D.
$y'=(3x-1)'\cos x+(3x-1)(\cos x)'=2\cos x-(3x-1)\sin x$.