We have,
∫dx9+16cos2x
⇒∫dx32+(4cosx)2
Using formula
∫dxa2+x2=1atan−1xa
⇒∫dx32+(4cosx)2=13tan−1(4cosx3)+C