Finding minimum electrostatic energy

1. The problem statement, all variables and given/known data
There are 2 small metal balls of radius r1 and r2 and are kept at very large distance , what should be ratio of charges on them for electrostatic energy to be minimum

2. Relevant equations
E=Q^2/(8πϵR)
Self Energy3. The attempt at a solution
In this problem, electric potential must be zero since the balls are at a very large distance from each other, so I was considering the self energy of metallic spheres which is E . How to find the charge ratio for minimum electrostatic energy?

Well, if the spheres are far away from one another, it's safe to assume their mutual electrostatic energy will be negligible. The total energy of the system will then simply be the sum of their self energies, you just need to find the minimum of that energy. Note that the total charge of the system must be constant, [itex]q_{1}+q_{2}=Q=const.[/itex], so the expression you obtain for the total energy should be a single variable function (in this case, a function of charge) for which the minimum is easy to find.

Well, if the spheres are far away from one another, it's safe to assume their mutual electrostatic energy will be negligible. The total energy of the system will then simply be the sum of their self energies, you just need to find the minimum of that energy. Note that the total charge of the system must be constant, [itex]q_{1}+q_{2}=Q=const.[/itex], so the expression you obtain for the total energy should be a single variable function (in this case, a function of charge) for which the minimum is easy to find.

yes i know that already but failed to find the correct ratio , what would it be ?

1. The problem statement, all variables and given/known data
There are 2 small metal balls of radius r1 and r2 and are kept at very large distance , what should be ratio of charges on them for electrostatic energy to be minimum

2. Relevant equations
E=Q^2/(8πϵR)
Self Energy3. The attempt at a solution
In this problem, electric potential must be zero since the balls are at a very large distance from each other, so I was considering the self energy of metallic spheres which is E . How to find the charge ratio for minimum electrostatic energy?

Electrostatic energy = work needed to bring q1 from infinity to r away from q2. What is that work?
As someone else pointed out, your constraint is that q1 + q2 = Q = constant.