Two magnets A and B are identical and these are arranged as shown in fig.(3)
Their length is negligible in comparison to the separation between them. A magnetic needle is placed between the magnets at point p which gets deflected through al angle under the influence of magnets. The ratio of distances d1 and d2 will be
Applying tangent law, we get