Answer:
The force on the charge is caused by the magnetic field created by the current in the wire. So, first we need to calculate the magnitude and direction of the magnetic field, then we will use this magnetic field to calculate the force on the charge.
Ampere's Law will help us to find the magnetic field created by the wire.
The direction of the B-field can be found by right-hand rule. Point your thumb in the direction of the current. Curl your fingers around the wire. The direction that the four fingers point is the direction of the B-field, it is around the wire.
At the point (0,a,0) the B-field is directed towards +z-direction.
So,
Now, we can calculate the force by using the following formula:
In order to do the cross product, we should use determinant.