You're almost there. Dividing the numerator and denominator by $\cos x$ gives $$\frac{\sin x - \cos x}{\cos x + \sin x} = \frac{\tan x - 1}{1 + \tan x},$$ and then observe that $\tan \frac{\pi}{4} = 1$. Then recall the tangent addition identity $$\tan(\alpha - \beta) = \frac{\tan \alpha - \tan \beta}{1 + \tan \alpha \tan \beta}.$$ For what suitable choices of $\alpha$, $\beta$, does the identity match the expression you have?
Okay, so since there's some confusion about the direction in which you're going, and since you already basically have done the proof and just need to see it put all together, here it is: $$\begin{align*} \tan(x - \tfrac{\pi}{4}) &= \frac{\tan x - \tan \frac{\pi}{4}}{1 + \tan x \tan \frac{\pi}{4}} \\ &= \frac{\tan x - 1}{1 + \tan x} \\ &= \frac{\sin x - \cos x}{\cos x + \sin x} \\ &= \frac{-(\sin x - \cos x)^2}{\cos^2 x - \sin^2 x} \\ &= \frac{- \sin^2 x + 2 \sin x \cos x - \cos^2 x}{\cos 2x} \\ &= \frac{-1 + \sin 2x}{\cos 2x} \\ &= \tan 2x - \sec 2x. \end{align*}$$ Going in the other direction, we might write $$\begin{align*} \tan 2x - \sec 2x &= \frac{\sin 2x}{\cos 2x} - \frac{1}{\cos 2x} \\ &= \frac{2 \sin x \cos x - 1}{\cos^2 x - \sin^2 x} \\ &= \frac{2 \sin x \cos x - \sin^2 x - \cos^2 x}{(\cos x + \sin x)(\cos x - \sin x)} \\ &= \frac{-(\cos x - \sin x)^2}{(\cos x + \sin x)(\cos x - \sin x)} \\ &= \frac{\sin x - \cos x}{\cos x + \sin x} \\ &= \frac{\tan x - 1}{1 + \tan x} \\ &= \frac{\tan x - \tan \frac{\pi}{4}}{1 + \tan x \tan \frac{\pi}{4}} \\ &= \tan(x - \tfrac{\pi}{4}).\end{align*}$$