I solved the first one I posted but the second one still gets me I can get to
2sin(X)cos(X)-(sin(X))/(cos(X))=(sin(X))/(cos(X))cos(2X)
but I don't know which identity to use for cos(2X) in the left side.
the original identity is sin(2X)-tan(X)=tan(X)cos(2X)