$$\ln P + \ln(Dx^4) = - Cx$$
where $P$, $D$ and $C$ are constants. $x$ is the variable of interest which is length parameter (hence $x$is always a non-negative number)
$$\ln P + 4 \ln x + \ln D + Cx = 0$$
Ley $Y = \ln P + \ln D$
$$ 4 \ln x + Cx^2 + Y= 0$$
take derivative w.r.t . x, we get
$$ \frac{4}{x} + 2Cx = 0$$ $$ 4 + 2Cx^2 = 0$$ $$x^2 = \frac{-2}{C}$$
Now that I have $-ve$ sign, I first took square to kill the negative sign, then took the $\sqrt{}$ again. $$x^4 = \frac{4}{C^2} \Rightarrow x = \sqrt{\frac{2}{C}}$$