>>828
d/dx(x*tanx + logcosx)=tanx+x*sec^2x+(1/cosx)*(-sinx)
=tanx+x*sec^2x-tanx
=x*sec^2x