Consider a charged particle of charge q and mass m being projected from the origin with a velocity u in a region of uniform magnetic field $\mathbf{B} = - B \hat{\mathbf{k}} $ with a resistive force being present given by F = kv. Finally, it comes to rest. Find its dispalcement.
Now, I had a problem with the computations of this. Basically, I approached this in 2 different ways, in one where I found distance, and in the other, I found displacement, yet both answers seemed to match.
METHOD 1:
$$ \mathbf{F} = -v (qB \hat{\mathbf{r}} + k \hat{\boldsymbol{\theta}} )$$ $$\implies m \frac{|\mathbf{dv}|}{dt} = |\mathbf{v}|\sqrt{q^2B^2 + k^2}$$ $$\implies |\mathbf{v}|\frac{|\mathbf{dv}|}{|\mathbf{ds}|} = \frac{|\mathbf{v}|}{m}\sqrt{q^2B^2 + k^2}$$ Simplifying and integrating, we get the required value of distance as the integral of $|\bf{ds}|$ is the distance traversed.
Thus,
$$\Delta S = \frac{um}{\sqrt{q^2B^2 + k^2}}$$
METHOD 2:
Writing the velocity and acceleration in cartesian coordinates, we get,
$$\mathbf{F} = qB(v_x \hat{\mathbf{j}} - v_y \hat{\mathbf{i}}) - k(v_x \hat{\mathbf{i}} + v_y \hat{\mathbf{j}})$$ Thus, $$a_x = \frac{-1}{m}(qBv_y + kv_x)$$ $$a_y = \frac{1}{m}(qBv_x - kv_y)$$
Hence, we get
$$dv_x = \frac{-1}{m}(qB(dy) + k(dx))$$ $$dv_y = \frac{1}{m}(qB(dx) - k(dy))$$
Integrating these 2, we get 2 linear equations for $x$ and $y$, which upon solving gives us the value of the final $x$ and $y$ coordinates.
Thus, finally we get
$$x = \frac{umk}{q^2B^2 + k^2}$$ $$y = \frac{umqB}{q^2B^2 + k^2}$$
Squaring and adding and then taking the square-root, we get, $$\Delta S = \frac{um}{\sqrt{q^2B^2 + k^2}}$$
Now, I feel like the 2nd expression is for displacement and not distance.
Thus, my question is, what am I doing wrong? I don't find any logical flaws in either argument. However, distance clearly will not be equal to displacement. What is the error here?