\(\dfrac{1}{cosx}-\dfrac{cosx}{1+sinx}=\dfrac{1+sinx-cos^2x}{cosx\left(1+sinx\right)}\)
\(=\dfrac{\left(1+sinx\right)-\left(1+sinx\right)\left(1-sinx\right)}{cosx\left(1+sinx\right)}\)
\(=\dfrac{\left(1+sinx\right)\left(1-1+sinx\right)}{\left(1+sinx\right)\cdot cosx}=\dfrac{sinx}{cosx}=tanx\)
=>ĐPCM