I want to solve the following circuit using KCL. I'm calling \$ i_1 \$ the current that flows across \$R_1 \$, \$ i_2\$ the current that flows across \$ R_2 \$ and \$ i _3 = 10A \$.
I'm assuming that the current \$ i_3 \$ is so strong that it is the only one entering the node, while \$ i_1 \$ and \$ i_2 \$ will leave the node.
\$i_1 = \left( \frac{15+V_x}{3} \right) \$ because we are going against the direction of \$ i_1 \$, so it's a voltage rise.
\$i_2 = \left( \frac{V_x}{2} \right) \$
\$i_3 = 10 A \$
So I setted KCl equation in this way:
$$ -i_1 -i_2 + i_3 = 0$$ $$ -\left( \frac{15+V_x}{3} \right) - \left( \frac{V_x}{2} \right) + 10 = 0$$ $$-2(15) -2V_x -3 V_x + 60 = 0 $$ $$V_x = \left( \frac{30}{5} \right) = 6 $$
The correct result is \$ V_x = 18V\$. And from that voltage I will calculate the currents.
I cannot find the error in my procedure. What am I doing wrong? Thank You