I'm trying to implement an equal power crossfade between two uncorrelated signals ($A$ and $B$). From what I understand I need to setup the crossfade in the following way
Come up with a function $f(x)$ that determines the gain applied to a signal where $x$ is from $0$ to $1$. And $0$ represents being all the way faded to signal $A$,and $1$ represents all the way faded to signal $B$.
$f(x)$ should satisfy: \begin{cases}\begin{align} f(x)^2 + f(1-x)^2 &= 1\\ f(1) &= 1\\ f(0) &= 0 \end{align}\end{cases}
So I could use the square root cross-fade $f(x) = \sqrt{x}$:
Or I could use the $\cos$ cross-fade $f(x) = \cos\left(\frac{π}{2}x\right)$:
My question is where does this $f(x)^2 + f(1-x)^2 = 1$ restriction come from? I know that we interpret sound pressure on a logarithmic scale but I don't understand why a quadratic relationship is required between two signals to maintain equal perceived volume.