Integrate 2tanx
![Integrate 2tanx](integrate-2tanx/step-1.gif)
To integrate 2tanx, also written as ∫2tanx dx, we focus on the constant 2 and how it impacts the integration.
![](integrate-2tanx/step-2.gif)
A constant can be brought outside of the integral sign to simplify the integration.
![∫tanx dx = -ln|cosx| + C](integrate-2tanx/step-3.gif)
We use a standard proof from formula booklet, as shown above, and therefore ∫tanx dx = -ln|cosx| + C.
![](integrate-2tanx/step-4.gif)
Hence we substitute that into the equation and reintroduce the constant.
![∫2tanx dx = -2ln|cosx| + C](integrate-2tanx/step-5.gif)
After simplifying, the answer is ∫2tanx dx = -2ln|cosx| + C.