Motion of charged particle in magnetic field

Click For Summary

Discussion Overview

The discussion revolves around the mathematical treatment of the motion of a charged particle in a magnetic field, specifically focusing on the differential equations governing its circular motion. Participants explore various methods for solving these equations, including the use of eigenvalues and eigenvectors, while addressing initial conditions and the integration process.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant, Sparky, shares their approach to deriving the equations of motion using the Lorentz force and expresses uncertainty about their mathematical steps and the resolution of constants.
  • Another participant suggests an alternative method of integrating the coupled differential equations directly, arguing that Sparky's approach may be unnecessarily complicated.
  • Sparky questions the treatment of constants in their equations and whether they should be included in the solutions for the sine and cosine terms.
  • There is a discussion about the difference between particular and general solutions, with references to Euler's formula and the implications for the constants involved.
  • Participants discuss the importance of initial conditions and how they affect the constants in the solutions.

Areas of Agreement / Disagreement

Participants express differing views on the best approach to solving the differential equations and the treatment of constants in the solutions. There is no consensus on the correctness of Sparky's initial approach or the necessity of including certain constants.

Contextual Notes

Some participants note the complexity of the problem and the potential for algebraic mistakes, emphasizing the need for careful handling of constants and integration steps. The discussion reflects a range of mathematical techniques and assumptions that may not be universally applicable.

Who May Find This Useful

This discussion may be of interest to those studying classical mechanics, differential equations, or anyone looking to understand the mathematical modeling of charged particle dynamics in magnetic fields.

Sparky_
Messages
227
Reaction score
5
Greetings-

I'm playing with the differential equations to get the standard or classical solution for the circular motion of a charged particle in a magnetic field. I have some question on my math.

I'm doing this for fun - (just because)

Should I post this in the homework section. Does this type of question belong in the homework section?

Thanks
Sparky_
 
Physics news on Phys.org
Go ahead and show what you've got, I'll help you out.
 
Regarding the motion of a charged particle in a magnetic field –

I have said the magnetic field is in the y direction (By)

Using
[tex] F = q(v X B)[/tex]

"X" = cross product

[tex] m\frac {dv}{dt} = -q(v X B)[/tex]

I had a matrix and ended up with 2 differential equations

Below is my work -

I’m uncertain on how to resolve the constants – I do have the liberty to set the initial conditions

Once I get this method to work, I want to solve this again using Eigenvalues and Eigenvectors.


[tex] m\frac {d^2x}{dt^2} = -qB \frac{dz}{dt}[/tex]
[tex] m\frac {d^2z}{dt^2} = qB \frac{dx}{dt}[/tex]

Take time derivative of both sides (of eq. 1):
[tex] \frac {d}{dt} m\frac {d^2x}{dt^2} =\frac {d}{dt} -qB \frac{dz}{dt}[/tex]


[tex] m\frac {d^3x}{dt^3} = -qB \frac{d^2z}{dt^2}[/tex]

From equation 2:
[tex] \frac {d^2z}{dt^2} = \frac {qB}{m} \frac{dx}{dt}<br /> [/tex]

Some algebra and apply Euler’s equation:
[tex] <br /> m\frac {d^3x}{dt^3} = \frac {(-qB)(qB)}{m} \frac{dx}{dt}[/tex]
[tex] \frac {d^3x}{dt^3} = (\frac {(qB)}{m})^2 \frac{dx}{dt}[/tex]
[tex] u= \frac {dx}{dt}[/tex]

Use a substitution to reduce the order of the equation:

[tex] pick: u = e^{at}[/tex]
[tex] u’ = ae^{at}[/tex]
[tex] u’’ = a^2e^{at}[/tex]
[tex] a^2e^{at} + (\frac {(qB)}{m})^2 e^{at} = 0[/tex]
[tex] a^2 + (\frac {(qB)}{m})^2 = 0[/tex]
[tex] a = + - (\frac {(qB)}{m})[/tex]
[tex] u = e^{i\frac{qB}{m}t} + e^{-i\frac{qB}{m}t}[/tex]
[tex] u = C1cos(\frac{qB}{m}) + iC2sin(\frac{qB}{m}) + C3cos(\frac{qB}{m}) – iC4sin(\frac{qB}{m})[/tex]

[tex] <br /> u= \frac {dx}{dt}[/tex]
[tex] dx = u dt[/tex]
[tex] x = \frac{mC1}{qB}sin(\frac{qBt}{m}) - \frac{imC2}{qB}cos(\frac{qBt}{m}) + \frac{mC3}{qB}sin(\frac{qBt}{m}) + \frac{imC4}{qB}cos(\frac{qBt}{m})[/tex]
[tex] x = (\frac{mC1}{qB} + \frac{mC3}{qB}))sin(\frac{qB}{m}t) – (\frac{imC2}{qB} + \frac{imC4}{qB})cos(\frac{qB}{m}t)<br /> [/tex]

Now – I’m not sure on the steps below:
Is it correct to do the following:

[tex] \int{ \frac{d^2x}{dt^2}} = \int{ \frac{-qB}{m}\frac{dz}{dt}}[/tex]
[tex] \frac{dx}{dt} = \frac{-qBz}{m}[/tex]

[tex] <br /> z = -\frac{m}{qB}\frac{dx}{dt}[/tex]

[tex] z = K1 \frac{qB}{m}cos() + K2\frac{qB}{m}sin()<br /> [/tex]

Three questions:
1)
The big question -
Is my math correct – any gotcha’s? While I know what the correct answer is, I want to accurately work it out.


2)
Regarding the constants –

I have the freedom to say x = z = 0 at t=0.

There is some complication with the cos term at t=0 and gave x=z=0 – correct?

How do I get my constants set right?

3) Am I on the right path?

Once I’m sure this math is correct – next I want to rework this using eigenvalues / eigenvectors.

Thanks
-Sparky_
 
Ok, this is pretty complex. Let me start with how I approach the problem.

Write out the force equation, do the cross product, and find the remaining coupled DE's.
Substitute one into the other to find a DE in time. Substitute that solution into the other equation to solve the other variable as a function of time.

I find it easier to just integrate the coupled DE's with respect to the other variable, and get two equations in X, Vx, Z and Vz, instead of going to the 3rd order and doing reduction of order.

I think you made it a lot harder on yourself when you took the exponential functions and said they were equal to four trig functions with four unknowns in front.

you wrote

[itex]u=e^{\frac{iqBt}{m}}+e^{\frac{-iqBt}{m}}[/itex] and then u = [itex]\frac{dx}{dt}[/itex]

If you had integrated from Xo to X, and t0 to t, without doing all the rest of that stuff, it would have been like this:

[itex]\int dx=\int e^{\frac{iqBt}{m}}+e^{\frac{-iqBt}{m}} dt[/itex]

Giving [itex]x-x_{0} = \frac{me^{\frac{iqBt}{m}}}{iqB} -\frac{me^{\frac{-iqBt}{m}}}{iqB}[/itex] using [itex]t_{0}=0[/itex]

Having seen Eulers formula, you should recognize that this is [itex]x(t)=\frac{2mSin(\frac{qbt}{m})}{qB}+x_{0}[/itex] assuming [itex]t_{0}=0[/itex] and voila! you've got a particular solution with the constants figured out already.

Finally, on the last part where you said you weren't sure about it, I think you're missing the 2nd DE. Either way, when you integrated, you didn't add a constant, and that's no good.

I find it much easier to just do definite integrals on everything, rather than worrying about solving for the constants later on. Plus you can look at your results and start crossing things out which are zeros while substituting in your IV's or BC's without doing any more work.

overall, you managed to get the answer, so props. the good thing about having unknown constants is that if you can figure them out, they will eat up any dropped negatives or simple algebra mistakes you made along the way.

Hope this helps!
austin
 
Elegysix,

Thanks for the help.

I am going to “try” to fix / cleanup my attempt – I would like to post my cleanup and make sure I’m correct.

I’m doing this just for fun – many of my weeknights are booked – this little math practice my extend over several days.

I recall first doing this for real in school and for whatever reason this particular problem stands out as when things first starting to “click” – it’s where I actually saw how to apply differential equation tools I had been taught and my plasma professor kept making the problem more interesting by adding additional components.

Once I am convinced I have my mathematics “clean” – correcting the points you caught, I would like to redo the problem using a different differential equation technique (probably Eigenvalue / Eigenvectors) – again just for fun.

Thanks for your guidance.

-Sparky_
 
Elegysix,

I have duplicated your work for myself –

[tex] u = e^{i\frac{qB}{m}t} + e^{-i\frac{qB}{m}t}[/tex]

[tex] u= \frac {dx}{dt}[/tex]

[tex] \int{ dx} = \int{ u dt}[/tex]

[tex] x – x0 = \frac{m}{iqB}e^{frac{iqBt}{m}} - \frac{m}{iqB}e^{frac{-iqBt}{m}}[/tex]

[tex] x – x0 = \frac{m}{iqB}[cos() + isin( )] - \frac{m}{iqB}[cos() - isin( )][/tex]

Now for a question or 2:


I agree things cancel like this, but shouldn’t I also have a constant for each term like this:

[tex] <br /> x – x0 = \frac{m}{iqB}[C1*cos() + iC2*sin( )] - \frac{m}{iqB}[C3*cos() – iC4*sin( )][/tex]

I know examples from my Diff E. book place constants there in these cases.

Next question, I know from the answer is
[tex] (x - x0) = K1cos( ) + K2sin( )[/tex]

(no formal solution, just told that is the answer and a few steps pointing to using tools from differential equations)

In the answer there is a cos term.

Should I have the constants for each cos and sin term and not cancel the cos terms out?

Thanks again
Sparky_
 
When you use definite integrals, there are no arbitrary constants needed. However, what we are solving for here is a particular solution - the general solution will contain a cosine term.

[itex]\int dx = \int e^{i \frac{qBt}{m}} + e^{-i \frac{qBt}{m}} dt[/itex]

[itex]x(t)-x_{0} = \frac {me ^{i \frac{qBt}{m} } }{iqB} - \frac {me ^{-i \frac{qBt}{m} } }{iqB}[/itex] (using [itex]t_{0}=0[/itex])

using Euler's formula: [itex]sin(kt) = \frac {e^{ikt} - e^{-ikt}}{2i}[/itex] gives

[itex]x(t)-x_{0}= \frac{2m Sin( \frac{qBt}{m})}{qB}[/itex]

which is a particular solution.
 
Elegysix,

I'm not quite caught up with you.

Are we on the same page - I was asking about constants for the coefficients on each sin and cos term.

The C1, C2, C3, and C4

[tex] <br /> x – x0 = \frac{m}{iqB}[C1*cos() + iC2*sin( )] - \frac{m}{iqB}[C3*cos() – iC4*sin( )][/tex]

This would prevent the cos terms from canceling?

If I'm off here, what is my next step to get the cos term?

Thanks
-Sparky_
 
When you use definite integrals - evaluated at bounds, you do not introduce constants like the C1 you used. When you do indefinite integration, without evaluating it at the bounds, you have to use constants like that. We did not need them for what we did so far.

I substituted in a sin function for the exponentials, by Euler's formula. You can expand the exponentials into a sin and cos term like you have done, but you do not need to add constants like you've done. You will still end up with the same answer I gave before

if [itex]e^{ix}=cos(x)+isin(x)[/itex]

then

[itex]\frac{m e^{i \frac {qBt}{m} }}{iqB} - \frac{me^{i \frac {-qBt}{m} }}{iqB}= \frac{m}{iqB} [cos(\frac{qBt}{m})+isin (\frac{qBt}{m}) - cos(\frac{qBt}{m}) + isin(\frac{qBt}{m})][/itex]

combining like terms gives the result

[itex]x(t)-x_{0}= \frac{2m}{qB}sin(\frac{qBt}{m})[/itex]

like I showed before.
Based on your initial conditions, this is the solution for x(t). If you do not use initial conditions (meaning using indefinite integrals) the constants of integration will appear and the cosine terms might not cancel.
 
Last edited:
  • #10
Elegysix,

Thanks for your patience.

I’m either there or I’m close.

Answering this question may help:

So perhaps Within the notes I’m reading where the problem is set up and then just the answer is given as: x =K1*cos() + K2*sin() with no work shown, I can assume that solution was obtained with indefinite integrals?

Meaning in some old notes, I see the electron (or charged particle) and a B-field vector drawn and the Lorentz equation is written, the cross product is taken and the initial differential equation is set up.

Then the solution is given (sin + cos with coefficients).

From your help, without knowing the solution approach, I can assume he went with the indefinite integral since he has the coefficients and the cos term?

Thanks again
Sparky_
 
  • #11
It may have just been a guess to the solution since he did not work it out. We did the work and you should be able to solve this for any similar initial conditions without worrying about what the person in your notes did.

I will say though that the magnetic field was chosen to drastically simplify this problem. If the magnetic field depends on time or position, this will become much, much harder to solve.

there's a video by an MIT professor on youtube who covers this topic, the last 10 or so minutes of it he talks about the spiraling and does a demonstration if you're interested. here's the link
 
Last edited by a moderator:
  • #12
Thank You!
 

Similar threads

  • · Replies 12 ·
Replies
12
Views
1K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 14 ·
Replies
14
Views
3K