Step 1: Use the Pythagorean identity to replace $\sec^2 x$. We know $\sec^2 x = 1 + \tan^2 x$. Substitute: \[ \sec^2 x + 5\tan x + 5 = 1 + \tan^2 x + 5\tan x + 5 = \tan^2 x + 5\tan x + 6 \]
Step 2: Factor the quadratic in $\tan x$. We need two numbers that multiply to $6$ and add to $5$: those are $2$ and $3$. \[ \tan^2 x + 5\tan x + 6 = (\tan x + 2)(\tan x + 3) \]