μ₀m4πd³
μ₀2√2M4πd³
μ₀√2M4πd³
μ₀2M4πd³
The magnetic field at P due to horizontal magnet above its mid point
B₁=μ₀M/4πd³
The magnetic field at P due to vertical magnet above its mid point
B₂=μ₀M/4πd³
Hence the net magnetic field at point P=√B₁²+B₂²=μ₀√2M/4πd³