# Integrate tan(x) from 0 to pi/2

## Answer

$37.3319$

## Step-by-step explanation

Problem

$\int_{0}^{\frac{\pi}{2}}\tan\left(x\right)dx$

1

The integral of the tangent function is given by the following formula, $\displaystyle\int\tan(x)dx=-\ln(\cos(x))$

$\left[-\ln\left(\cos\left(x\right)\right)\right]_{0}^{\sqrt{2}}$

## Answer

$37.3319$