Question
Question: A square loop of side $\ell$ having uniform linear charge density $\lambda$ is placed in $xy$ plane ...
A square loop of side ℓ having uniform linear charge density λ is placed in xy plane as shown in the figure. There is a non-uniform electric field E=ℓa(x+ℓ)i^ where a and ℓ are constants. The resultant electric force on the loop is having value naλℓ. Find value of n.

5
Solution
The force on a charged element dq in an electric field E is dF=dqE. For a linear charge density λ, dq=λdl. So, dF=λdlE.
The electric field is E=ℓa(x+ℓ)i^, always in the i^ direction.
-
Side AB (x=ℓ, y from 0 to ℓ): E=2ai^. Force FAB=∫0ℓλdy(2ai^)=2aλℓi^.
-
Side BC (y=ℓ, x from ℓ to 2ℓ): E=ℓa(x+ℓ)i^. Force FBC=∫ℓ2ℓλdxℓa(x+ℓ)i^=25aλℓi^.
-
Side CD (x=2ℓ, y from 0 to ℓ): E=3ai^. Force FCD=∫0ℓλdy(3ai^)=3aλℓi^.
-
Side DA (y=0, x from 2ℓ to ℓ): E=ℓa(x+ℓ)i^. Force FDA=∫2ℓℓλdxℓa(x+ℓ)i^=−25aλℓi^.
Summing these forces: Ftotal=(2aλℓ+25aλℓ+3aλℓ−25aλℓ)i^=(2+3)aλℓi^=5aλℓi^.
Comparing with naλℓ, we find n=5.