In Thierry Roncalli's book Introduction to Risk Parity and Budgeting (2013), he gives an example of particular solutions to the Risk Budgeting portfolio such as for the $n=2$ asset case.
The risk contributions are:
$$ \frac{1}{\sigma(x)} \cdot \begin{bmatrix} w^2\sigma_1^2 + \rho w(1-w) \sigma_1 \sigma_2 \\ (1-w)^2\sigma_2^2 + \rho w(1-w) \sigma_1 \sigma_2 \\ \end{bmatrix} $$
The vector $[b,1-b]$ are the risk budgets.
He presents the optimal weight $w$ as:
$$ w^* = \frac {(b - \frac{1}{2}) \rho \sigma_1\sigma_2 - b\sigma_2^2 +\sigma_1\sigma_2\sqrt{(b - \frac{1}{2})^2\rho^2 + b(1-b)}} {(1-b)\sigma_1^2 - b\sigma_2^2 + 2(b - \frac{1}{2})\rho\sigma_1\sigma_2} $$
How are these weights derived ? I don't need a full derivation (it would be helpful though), I just don't know how it is derived.
Is it done by setting the risk contributions equal to the budgets?
$$ \begin{bmatrix} b \\ 1-b \\ \end{bmatrix} = \frac{1}{\sigma(x)} \cdot \begin{bmatrix} w^2\sigma_1^2 + \rho w(1-w) \sigma_1 \sigma_2 \\ (1-w)^2\sigma_2^2 + \rho w(1-w) \sigma_1 \sigma_2 \\ \end{bmatrix} $$