Magnetic field due to current in wire 1 at point P distant r from the wire is
B=‌
µ0
4Ï€
‌
i1
r
[cos‌θ+cos‌θ] B=‌
µ0
2Ï€
‌
i1‌cos‌θ
r
(directed perpendicular to the plane of paper, inwards) The force exerted due to this magnetic field on current element i2dl is dF=i2dlB‌sin‌90∘ ∴dF=i2dl[‌