Differentiate sec squared? Watch
In general, if , then . You can apply this logic to the differentiation you're trying to do.
The derivative of secx is secx tanx. Use the chain rule.
To integrate, is the derivative of tanx... (it's in the formula book)