I have the following logarithm to compute,
$$\log{2}+\log{ \left( \frac{p \left( x \right)}{p \left( x \right)+q \left( x \right)} \right)}$$
Then, in the solution,
$$\log{ \left( \frac{p \left( x \right)}{\frac{p \left( x \right)+q \left( x \right)}{2}} \right)}$$
How 2 got inside the log?