Step 1: Simplify the ratio first.
The numerator is $1 + \cos 2x = 2\cos^2 x$. The denominator is $1 - \cos 2x = 2\sin^2 x$.
Dividing, the ratio is $\dfrac{\cos^2 x}{\sin^2 x} = \cot^2 x$.
Step 2: Take the square root.
The root of $\cot^2 x$ is $|\cot x|$. On $\left(0, \frac{\pi}{2}\right)$ the cotangent is positive, so the root is just $\cot x$.
Step 3: Switch to tan inverse.
For a positive number $u$ we have $\cot^{-1} u = \tan^{-1}\dfrac{1}{u}$.
So $\cot^{-1}(\cot x) = \tan^{-1}\left(\dfrac{1}{\cot x}\right) = \tan^{-1}(\tan x)$.
Step 4: Check the range.
The rule $\tan^{-1}(\tan x) = x$ holds for $x \in \left(-\frac{\pi}{2}, \frac{\pi}{2}\right)$. Our $x$ is in $\left(0, \frac{\pi}{2}\right)$, so it holds.
Final Answer:
The expression equals $x$.
\[ \boxed{x} \]