An infinitely long wire carrying a current of 2 A is bent at a right angle as shown in the Figure. What is the magnetic field magnitude in Tesla a point P, 10 cm from the corner?

I can not draw pic here but I will try to describe it:
Point P is in right side straight from bend place. and y-axis (I mean from where it is bending ) is pointing down. X_axis is straight(as we know), and Y_axis is pointing down. Current I_1 in X_axis is flowing in opposite direction from point P, but I_2 in Y-axis is flowing upwards.

To calculate the magnetic field at point P, you can use the Biot-Savart law, which states that the magnetic field at a point due to a current-carrying wire is directly proportional to the current and inversely proportional to the distance from the wire.

First, you need to calculate the magnetic field contributions from each segment of the wire separately. Let's call the right side of the wire (I_1) and the top side of the wire (I_2).

For the right side of the wire (I_1):
1. Determine the distance between point P and the wire segment carrying current I_1. In this case, the distance will be 10 cm or 0.1 meters.
2. Use the Biot-Savart law to calculate the magnetic field contribution from this segment at point P. The formula is:

dB = (μ₀ / 4π) * (I_1 * dl₁ × r₁) / (r₁³)

where dB is the infinitesimal magnetic field contribution, μ₀ is the permeability of free space (4π × 10⁻⁷ T•m/A), I_1 is the current in the segment, dl₁ is the length element of the wire segment, and r₁ is the distance between the length element and point P.

For the top side of the wire (I_2):
1. Determine the distance between point P and the wire segment carrying current I_2. In this case, the distance will also be 10 cm or 0.1 meters.
2. Use the Biot-Savart law to calculate the magnetic field contribution from this segment at point P. The formula is the same as before but with I_2, dl₂, and r₂ for the current, length element, and distance, respectively.

Once you have calculated the magnetic field contributions from both segments, you can add them together to find the total magnetic field at point P. Since the segments are at a right angle, the fields will be perpendicular, so you can use the Pythagorean theorem to calculate the magnitude of the total magnetic field:

B_total = √(B_I₁² + B_I₂²)

I hope this helps! If you have any further questions, feel free to ask.