Motion of an electron in a Magentic Field

AI Thread Summary
The discussion focuses on plotting the motion of an electron in a magnetic field using MATLAB, specifically in the x-y plane with the initial position at the origin. The user is experiencing issues with the motion appearing as a spiral rather than the expected circular path. The equations provided for updating velocity and position are based on the Lorentz force, but integration errors may be causing the spiral trajectory. The community suggests that the equations are correct, and the spiral motion could stem from numerical integration inaccuracies. Proper adjustments in the integration method may help achieve the desired circular motion.
Wiseman101
Messages
8
Reaction score
0

Homework Statement


Plot the motion of an electron in the x-y plane due to a magnetic field in the z plane. The initial position is at the origin. The initial velocity can be chosen at will.

Homework Equations


F = q(vXB)

The Attempt at a Solution


The program I am using is Matlab. I tried plotting the motion using the following set of equations, but the motion was a spiral, not circular. Any pointers in the right direction would be much appreciated!
(Vx is the velocity in the x direction, x is the position, etc..)

w=q/m

Vx(i+1) = Vx(i) + w*(Vy(i)*B)*dt
x(i+1) = x(i) + Vx(i)*dt

Vy(i+1) = Vy(i) + w*( -Vx(i)*B)*dt
y(i+1) = y(i) + Vy(i)*dt
 
Physics news on Phys.org
It's probably spiral in MATLAB because of integration errors. It seems you think that the motion has to be circular because a magnetic field always applies a force perpendicular to the electron's motion, and you'd be right.
 
Well as long as my equations are right then that's ok:smile:
 
TL;DR Summary: I came across this question from a Sri Lankan A-level textbook. Question - An ice cube with a length of 10 cm is immersed in water at 0 °C. An observer observes the ice cube from the water, and it seems to be 7.75 cm long. If the refractive index of water is 4/3, find the height of the ice cube immersed in the water. I could not understand how the apparent height of the ice cube in the water depends on the height of the ice cube immersed in the water. Does anyone have an...
Thread 'Variable mass system : water sprayed into a moving container'
Starting with the mass considerations #m(t)# is mass of water #M_{c}# mass of container and #M(t)# mass of total system $$M(t) = M_{C} + m(t)$$ $$\Rightarrow \frac{dM(t)}{dt} = \frac{dm(t)}{dt}$$ $$P_i = Mv + u \, dm$$ $$P_f = (M + dm)(v + dv)$$ $$\Delta P = M \, dv + (v - u) \, dm$$ $$F = \frac{dP}{dt} = M \frac{dv}{dt} + (v - u) \frac{dm}{dt}$$ $$F = u \frac{dm}{dt} = \rho A u^2$$ from conservation of momentum , the cannon recoils with the same force which it applies. $$\quad \frac{dm}{dt}...
Back
Top