hi! pleas click the image, if possible, please explain how I can prove this trigonometric identity?

Given trigonometric identity to prove:
[tex]\frac{\cos^2t+4\cos t+4}{\cos t+2}=\frac{2\sec t+1}{\sec t}[/tex]Take Left hand side of the equation:
[tex]\begin{gathered} \frac{\cos^2t+4\cos t+4}{\cos t+2}=\frac{\cos ^2t+2\times2\times\cos t+2^2}{\cos t+2} \\ =\frac{(\cos t+2)^2}{\cos t+2} \\ =\cos t+2 \end{gathered}[/tex]Take Right hand side of the equation:
[tex]\begin{gathered} \frac{2\sec t+1}{\sec t}=\frac{\frac{2}{\cos t}+1}{\frac{1}{\cos t}} \\ =\frac{\frac{2+\cos t}{\cos t}}{\frac{1}{\cos t}} \\ =\cos t+2 \end{gathered}[/tex]So, we have LHS = RHS.
Hence, proved.