nice one ramkumar_novemeber! In fact, the first time I tried this problem I tried to solve through your line of thinking. I tried so many substitutions, but didnt think of secx - tanx = 1/t. Simple but elegant!
Guide to latex:
http://www.goiit.com/posts/list/community-shelf-a-guide-to-latex-48056.htm