# What is the difference between ($\tan x \sec^2x$) and ($\sin x/\cos^3x$)? Why is the answer to the integration different?

$$\int \:\frac{\left(\sin x+\tan x\right)}{3\cos^2x}dx$$

I know I have to split the equation into

$$\frac{1}{3}\int \:\left(\:\frac{\sin x}{\cos x}\right)\left(\frac{1}{\cos x}\right)dx+\frac{1}{3}\int \:\left(\:\tan x\right)\left(\frac{1}{\cos^2x}\right)dx$$

I know that for the first part, it is $$\frac{1}{3}\int \tan x\sec xdx$$ which is $$\sec x$$.

However, for the second part, wouldn't it be $$\frac{1}{3}\int \tan x \sec^2xdx$$

If I used $$u=\tan x$$ then $$du=\sec^2xdx$$ so wouldn't the answer be $$\frac{1}{6}\tan^2x$$

However, the book is saying that the second part is supposed to be $$\frac{1}{6}\sec^2x$$ because I was supposed to convert the second part into $$\frac{1}{3}\int \frac{\sin x}{\cos^3x}dx$$ and let $$u=\cos x$$

What I am doing wrong? Why can't it be $$\tan \sec^2x$$ instead of $$\sin x/\cos^3x$$?

• Remember $\sec^2{\theta}=1+\tan^2{\theta}$ – user41736 Mar 4 '16 at 6:49

Recall that

$$1 + \tan^2 x = \sec^2 x$$

or, since I dislike the secant,

$$\frac{1}{\cos^2 x} = \frac{\sin^2 x + \cos^2 x}{\cos^2 x} = 1+\tan^2 x.$$

Therefore, your answer and the book's answer only differ by a constant.

Both the answers differ by a constant(1/6). So both the answers and both the methods are correct. The constant of integration takes care of the constant(1/6).

Both are right as when you differentiate $1/6tan^2x$ with chain rule you get $\frac{1}{6}.2tanx.sec^2x=1/3.tanx.sec^2x$ also differentiating $1/6sec^2x$ you get the same answer . so both are right.

• Note the constants can be $c,c'$ as integration gives a family of curves and an exact constant gives a specific curve – Archis Welankar Mar 4 '16 at 6:48