Integral of $$$\left(- \tan{\left(x \right)} + \sec{\left(x \right)}\right) \sec{\left(x \right)}$$$

The calculator will find the integral/antiderivative of $$$\left(- \tan{\left(x \right)} + \sec{\left(x \right)}\right) \sec{\left(x \right)}$$$, with steps shown.

Related calculator: Definite and Improper Integral Calculator

Please write without any differentials such as $$$dx$$$, $$$dy$$$ etc.
Leave empty for autodetection.

If the calculator did not compute something or you have identified an error, or you have a suggestion/feedback, please contact us.

Your Input

Find $$$\int \left(- \tan{\left(x \right)} + \sec{\left(x \right)}\right) \sec{\left(x \right)}\, dx$$$.

Solution

Expand the expression:

$${\color{red}{\int{\left(- \tan{\left(x \right)} + \sec{\left(x \right)}\right) \sec{\left(x \right)} d x}}} = {\color{red}{\int{\left(- \tan{\left(x \right)} \sec{\left(x \right)} + \sec^{2}{\left(x \right)}\right)d x}}}$$

Integrate term by term:

$${\color{red}{\int{\left(- \tan{\left(x \right)} \sec{\left(x \right)} + \sec^{2}{\left(x \right)}\right)d x}}} = {\color{red}{\left(- \int{\tan{\left(x \right)} \sec{\left(x \right)} d x} + \int{\sec^{2}{\left(x \right)} d x}\right)}}$$

The integral of $$$\sec^{2}{\left(x \right)}$$$ is $$$\int{\sec^{2}{\left(x \right)} d x} = \tan{\left(x \right)}$$$:

$$- \int{\tan{\left(x \right)} \sec{\left(x \right)} d x} + {\color{red}{\int{\sec^{2}{\left(x \right)} d x}}} = - \int{\tan{\left(x \right)} \sec{\left(x \right)} d x} + {\color{red}{\tan{\left(x \right)}}}$$

The integral of $$$\tan{\left(x \right)} \sec{\left(x \right)}$$$ is $$$\int{\tan{\left(x \right)} \sec{\left(x \right)} d x} = \sec{\left(x \right)}$$$:

$$\tan{\left(x \right)} - {\color{red}{\int{\tan{\left(x \right)} \sec{\left(x \right)} d x}}} = \tan{\left(x \right)} - {\color{red}{\sec{\left(x \right)}}}$$

Therefore,

$$\int{\left(- \tan{\left(x \right)} + \sec{\left(x \right)}\right) \sec{\left(x \right)} d x} = \tan{\left(x \right)} - \sec{\left(x \right)}$$

Add the constant of integration:

$$\int{\left(- \tan{\left(x \right)} + \sec{\left(x \right)}\right) \sec{\left(x \right)} d x} = \tan{\left(x \right)} - \sec{\left(x \right)}+C$$

Answer

$$$\int \left(- \tan{\left(x \right)} + \sec{\left(x \right)}\right) \sec{\left(x \right)}\, dx = \left(\tan{\left(x \right)} - \sec{\left(x \right)}\right) + C$$$A


Please try a new game Rotatly