There is a wire in which the protons are non-moving with a charge density of $\lambda_+$ and the electrons move at a velocity u to the right with a charge density $\lambda_-$ in a rest frame. A particle of q+ is r away from this wire and moves at a velocity of v to the right.
Q1. What is the total force on the particle in the rest frame?
Q2. What is the total force on the particle in the moving particles non moving frame?
Answer for Q1.
Since in the rest frame the total charge is $0$ it is solely a magnetic force giving me
\begin{equation} F = \frac{q v \mu_{0} \lambda^{-} u}{2 \pi r} \end{equation}
Attempt for Q2
I began with finding the relative velocities of the positive and negative charges.
For positive since it is originally non-moving i got
\begin{equation} v'=-v \end{equation}
Hovever for negative charges i used einstiens additive velocity law and got
\begin{equation} u'=\frac{u-v}{1-\frac{uv}{c^2}} \end{equation}
Then using length contraction got the equation
\begin{equation} \lambda'=\lambda \gamma \end{equation}
Plugging in the velocities into lorentz factor led me getting the equations
\begin{equation} \lambda_+'=\frac{\lambda_+}{1-\frac{v^2}{c^2}} \end{equation}
and
\begin{equation} \lambda_-'=\lambda_-\left(\frac{1-\frac{uv}{c^2}}{\sqrt{(1-\frac{v^2}{c^2})(1-\frac{u^2}{c^2})}}\right) \end{equation}
Solving for total charge denisty gave me
\begin{equation} \lambda'=\lambda_- \gamma_+ \left(\sqrt{\frac{(1 - \frac{uv}{c^2})}{(1-\frac{v^2}{c^2})(1-\frac{u^2}{c^2})}-1}\right) \end{equation}
From my understanding the answer for q1 and q2 should be the same except one will have a factor of gamma_+ because of the transformation of forces between reference frames and the concept that magnetic fields are a product of special relativity and the electric field. However i am unable to get this to work out