- #1
KleZMeR
- 127
- 1
Hi,
I am trying to use DSolve in Mathematica 6.0.1.0, in order to find equations of motion (x[t], y[t]) from second-order differential equations. I have looked through much documentation, and attempted numerous codes to figure this out, but get many errors or the same answer every time. This is my first Mathematica course. I derived the second order equations by hand, which is found in many books.
I do not see how the equations of motion I am to show, x[t], y[t], are produced by DSolve.
Below is stated problem and attempt.
Electron injected with initial velocity Vo into crossed field; E=Ey, B=Bz,
and: w=omega, Vd=(Ey/Bz)
Also given: w=1, Vox=Voy=2, Vd=1, (I do not know why these are given, unless they are initial conditions, and even so, they still do not change my outcome)
a) Use F = q (E + V x B) and show by hand that motion is governed by these equations (I did this):
x''[t] + (w^2)x = (w^2)*Vd*t - w*Voy
y''[t] + (w^2)y = -(w^2)*Vd*t + w*Vox
b) Use DSolve to show that the solutions to these equations are:
x[t] = (1/w)*(Vox - Vd)*sin(wt) + (Voy/w)*(cos(wt) - 1) + Vd*t
y[t] = (Voy/w)*sin(wt) - (1/w)*(Vox - Vd)*(cos(wt) - 1)
So I am having trouble with part b)... I am sure that I am missing much in my attempt at solving it, but all other inputs either give me an error, or do not change the output, any help or suggestions would be appreciated, thanks.
I am trying to use DSolve in Mathematica 6.0.1.0, in order to find equations of motion (x[t], y[t]) from second-order differential equations. I have looked through much documentation, and attempted numerous codes to figure this out, but get many errors or the same answer every time. This is my first Mathematica course. I derived the second order equations by hand, which is found in many books.
I do not see how the equations of motion I am to show, x[t], y[t], are produced by DSolve.
Below is stated problem and attempt.
Electron injected with initial velocity Vo into crossed field; E=Ey, B=Bz,
and: w=omega, Vd=(Ey/Bz)
Also given: w=1, Vox=Voy=2, Vd=1, (I do not know why these are given, unless they are initial conditions, and even so, they still do not change my outcome)
a) Use F = q (E + V x B) and show by hand that motion is governed by these equations (I did this):
x''[t] + (w^2)x = (w^2)*Vd*t - w*Voy
y''[t] + (w^2)y = -(w^2)*Vd*t + w*Vox
b) Use DSolve to show that the solutions to these equations are:
x[t] = (1/w)*(Vox - Vd)*sin(wt) + (Voy/w)*(cos(wt) - 1) + Vd*t
y[t] = (Voy/w)*sin(wt) - (1/w)*(Vox - Vd)*(cos(wt) - 1)
So I am having trouble with part b)... I am sure that I am missing much in my attempt at solving it, but all other inputs either give me an error, or do not change the output, any help or suggestions would be appreciated, thanks.