I was doing a question in which one step included solving this integral
$$ \int \frac{t}{\cos^2 t}\,dt $$
So what book did was $$ \int t\sec^2 t\,dt $$
And then applied integration by parts .
Whereas what I did was $$ \int \frac{t} {1-\sin^2t}\, dt $$
$$ \int\frac{t}{(1+ \sin t)(1- \sin t)}\, dt $$
And then using partial fraction . $$ \frac{A}{1+ \sin t} + \frac{B}{1-\sin t} = t $$
$A = \frac{3\pi}{4}$ and $B = \frac{\pi}{4}$
Which when put in $$ \frac{A}{1+ \sin t} + \frac{B}{1-\sin t} = t $$ it did not satisfy the equation.
Which I think means that the values of $A$ and $B$ are incorrect.
So could someone tell where I went wrong?
There are no constants $A$ and $B$ such that $\frac A {1+\sin t} +\frac B {1-\sin t}=t$ so your method does not work.