
As we can observe that y is a fraction of two functions say u and v where,

As we know that to find the derivative of fraction of two function we apply quotient rule of differentiation.
By quotient rule, we have –

∵ u is the product of two function x and tan x, so we will be applying product rule of differentiation –

using equation 2 and 3, we get –
