How to differentiate y=tanx (implicit and logarithmic)