We need to derivate the next given function:

First, we have a subtraction, which means that we can derivate both expressions separately:

For 2x:

for x²tanx, the expression represents a multiplication. Therefore, we use the next rule:

Then:

The whole derivate would be:

Simplify the signs for the expression:
