Find the magnetic field at point P due to a straight line segment AB of length 6 cm carrying a current of 5 A. (See figure) ( N-A)

From the JEE Main 2019 · 12 Apr · Shift 2 paper. Try it, check your answer, then read the worked solution below.
Find the magnetic field at point P due to a straight line segment AB of length 6 cm carrying a current of 5 A. (See figure) ( N-A)

Try it yourself first, then check your working against this.
Worked solution
P is 4 cm above the midpoint (3-4-5 triangle), and each end subtends an angle with sin = 3/5 at P.
(A)
Concepts used: finite straight wire
Every past question tagged to the same part of the syllabus, with solutions.
Past questions on the same topic (Biot-Savart law), each with a worked solution.
Timed, in the real format, and marked the moment you submit.