[tex] \frac{dy}{dx} (xcos(x) + 2tan(x)) :: \text {Given}\\ [/tex]
[tex] \frac{dy}{dx} xcos(x) + \frac{dy}{dx} 2tan(x) :: \text {Separation of terms}\\ [/tex]
[tex] (-1)cos(x) + xsin(x) + 2 * \frac{dy}{dx} tan(x) :: \text {Product Rule and Constant Rule}\\ [/tex]
[tex] -xsin(x) + cos(x) + 2sec(x^{2}) :: \text{Answer} [/tex]