\(=\left(\dfrac{2sinx.cosx}{cos2x}-\dfrac{sinx}{cosx}\right)\left(2sinx.cosx-\dfrac{sinx}{cosx}\right)\)
\(=sinx\left(\dfrac{2cosx}{cos2x}-\dfrac{1}{cosx}\right).sinx\left(2cosx-\dfrac{1}{cosx}\right)\)
\(=sin^2x\left(\dfrac{2cos^2x-\left(2cos^2x-1\right)}{cosx.cos2x}\right)\left(\dfrac{2cos^2x-1}{cosx}\right)\)
\(=sin^2x\left(\dfrac{1}{cosx.cos2x}\right)\left(\dfrac{cos2x}{cosx}\right)=\dfrac{sin^2x}{cos^2x}=tan^2x\)