Question

$$2 \tan B+ \cos B= \frac{ { \cos }^{ 2 } B+2 \sin B }{ \cos B }$$