CAS Physics 4
CAS Physics 4
[email protected]
[email protected]
1
PROBLEMS
V.1 Find the path of a particle of mass m and charge q moving in a constant and uniform electric
field of strength E.
The initial conditions are: position r0 (0,0,0) and velocity v (v0 x , v0 y ,0).
Solution:
The electric force acting on a particle is given by
F q E.
Fig. V.1
2
The above simple differential equations can be solved "by hand", however we apply computer algebra.
As the solutions of equations dex2 and dez2 are trivial, we present only solution methods for
equation dey2.
Method 1:
Using integration twice.
It can easily be seen that constant %c1 means the initial velocity component v0y. We perform the
appropriate substitution and integrate the second time.
As the y-component of the initial position vector is zero we substitute again and receive y(t).
Method 2:
Applying ode2 to get the general solution first followed by ic2 to obtain the particular solution.
Method 3:
Applying desolve to find the general solution for all DEs followed by atvalue to obtain the
particular solutions.
3
The obtained result indicates that the motion of the charged particle lies within the xy-plane. In order
to get the relation describing the trajectory of the particle in explicit form we try to eliminate the time
parameter t from the above equations for x(t) and y(t).
We recognize the trajectories as parabolas and plot for q = 1 and ,0, (which is the angle
4 4
of the original direction of motion with the positive x-axis).
You can find the graphs of the trajectories on the next page.
4
It is no problem to perform methods 1 and 2 working with DERIVE and TI-NspireCAS as well.
Both systems don't provide an appropriate tool like presented in %i18 and %i19 above.
MATHEMATICA does.
See below a possible TI-NspireCAS treatment inspired by method 3.
It's a question of taste what to prefer: the "two command"-procedure of Maxima – which
might be a bit complicated for one or the other "CASer", or the slower – but clearer from my
point of view – "step-for-step"-procedure of TI-NspireCAS. You can see how to find the
explicit form of the trajectories.
■▬▬▬▬▬▬▬▬
5
V.2 An electron of mass m and charge q is moving in a constant magnetic field.
The initial conditions are: position r0 (0,0,0) and velocity v (v0 x , v0 y ,0).
a) Calculate and analyze the trajectory of the electron.
b) Calculate the charge-to-mass ratio q/m of the electron.
Solution:
We refer to the formula given in the introduction
F q E q(v B),
In our problem is E 0 , so we have
F q (v B ) with B ( B,0,0).
As shown in part 1 we have to load the library "vect" in order to have the vector product available
which must be entered by a "~" (%i16).
We proceed in the same way as in problem V.1, starting with extracting the components of Newton's
equation:
6
First we apply desolve for calculating the general solution. Then we find the particular solution and
define the functions of the components.
[y(t), z(t)] is the parameter representation of the projection of the path onto the yz-plane. Let's inspect
the expressions and try to recognize the curve.
m v0 y m v0 y
Yes, it is a circle of radius and centre 0,0, . %o14 confirms this.
qB qB
7
Now we evaluate and draw the trajectories of an electron.
8
Let us evaluate the time td the electron needs to reach the observed plane which has a distance d from
the initial yz-plane
The relation between parameters for which y(td) = 0 and z(td) = 0 can be written in the following
compact equation:
d qB d q Bk
cos 1 2k , k arbitrary integer number.
m v0 x m v0 x
Comment:
It can easily be seen %o33 that all the electrons are focused at this observed plane (Oscilloscope
screen) for an arbitrary velocity value v0y! Consequently the initial velocity in the yz-plane has not
even to be constant with time.
q
Now we introduce in this equation the charge-to-mass ratio e _ m . Then we solve it for e_m.
m
m v0 x 2
Electrons are accelerated to the speed v0x by potential U which gives the equation eU . The
2
n
magnetic field B is proportional to the current I: Bk 0 I k . We can eliminate v0x and Bk from %o35.
b
■▬▬▬▬▬▬▬▬
9
V.3 Solve the equations of motion for a particle of mass m and electrical charge q moving in a
spatially uniform but time varying electric field of the form E ( E0 sin( t ),0,0).
Take as initial conditions: r0 ( x0 ,0,0) and velocity v0 (v0 ,0,0).
Solution:
For solving the problem we apply again functions ode2 and ic2. The solution method was presented
in the previous problems.
In our case the particle moves along a straight line, therefore Newton's equation reduces to the
following form:
For illustrating the obtained solution we define x(t) as a function and substitute appropriate values for
the parameters (E0 = 2, = 4, q = 500, m = 3, x0 = 0.5, v0 = 6).
■▬▬▬▬▬▬▬▬
10
V.4 Calculate the trajectory of a particle of mass m and electrical charge q moving in a constant
magnetic field B.
At time t = 0 position and velocity of the particle are: r0 (0,0,0) and v0 (v0 x ,0, v0 z ).
Solution:
Let us assume the co-ordinate system oriented as given in Fig. V.4.
Fig. V.4
Using such a co-ordinate system we can write the field components as follows:
Bx = 0, By = 0, Bz = .
For the components of the initial velocity we have:
q
We need the library vector for applying Newton's equation
r (v B ) :
m
Bq
We substitute to get more comfortable expressions and then extract differential Equations
m
for all components.
11
We extract differential equations for all Cartesian components:
Method 1:
By integration: Solution of DE dez2 is trivial:
In the next step we insert the above derivative into equation dex2.
It is interesting that ode2 does not return the correct solution, so I try desolve – and it works
12
We can substitute x'(0) and x(0) by copy and past in %o18 or we apply subst:
Our next step is inserting the obtained function x(t) in expression %i17 followed by integrating to get
function y(t):
In the final step we apply initial condition y(0) = 0 to find constant %c4. Then it's easy to get the
simplified result for y(t).
Method 2:
Using complex variables:
The system of equations [dex2,dey2] can be solved in an elegant way by introducing a new
complex variable
(t ) x(t ) i y (t ) where i denotes the imaginary unit.
We start adding dex2 and %idey2. Then we rewrite the resulting equation in form of a single
equation for the complex function (t).
13
At first we perform the integration:
We apply ode2 - which can be applied for 1st order DEs, too – and define (t).
14
Some manipulations give the final form of (t).
It remains to extract real and imaginary part in order to obtain requested functions x(t) and y(t).
Comparing the results we fortunately can observe that they are the same.
Bq
Finally we will resubstitute for .
m
Now having done all the work we would like to see the trajectory of the particle for one data set:
15
Some years ago we solved all problems using DERIVE. It might be interesting for the reader
to compare the solving procedures from now and then.
We think that the code doesn't need too many explanations.
16
For solving the DEs #15 and #17 we will use the DERIVE tool DSOLVE2_IV, which needs a
special syntax:
x(t ) p x (t ) q x(t ) r ( x).
We must bring the equations in the form:
17
0 )) . We do this for both equations:
Then we can apply DSOLVE_IV(p,q,r,t,t 0 ,x(t 0 ),x(t
We can define the trajectory putting all components together, substitute the provided data
and plot the curve.
18
We can define the trajectory putting all components together, substitute the provided data
and plot the curve.
Then there was given the hint to proceed applying DSOLVE and the remainder of the exercise
was left to the reader to complete.
Method 3 could not be applied using DERIVE but there was a screen shot of a Mathematica-
procedure applying DSolve:
It is clear that the kinetic energy depends only on the initial velocity v0, i.e. it remains
constant.
Note: The result obtained is the result we could have expected because the magnetic force is
always perpendicular to the displacement, which means that it does not do any work.
■▬▬▬▬▬▬▬▬
19
V.5 Calculate the trajectory of a particle of mass m and electrical charge q moving in a constant
electric and magnetic field which are mutually perpendicular.
Solution:
Let us assume the co-ordinate system oriented as given in Fig. V.5.
Fig. V.5
We enter position vector and velocity vector followed by the field vectors and proceed like in the
problems above.
20
Below are all components of the particular solution describing the trajectory.
■▬▬▬▬▬▬▬▬
21
V.6 Calculate the trajectory of a particle of mass m and electrical charge q moving in a constant
electric and magnetic field which are oriented in opposite direction to each other.
Take this problem as an exercise.
You may assume that the co-ordinate system is oriented as given in Fig. V.6.
Fig. V.6
Electric and magnetic field are given as E ( E ,0,0) and B ( B,0,0).
Assume the following initial conditions: x0 0, y0 0, z0 0; v (v0 x , v0 y ,0)
Solution:
The equation of the trajectory is
q t 2 E m v0 y q t B m v0 y qt B
tr (t ) t v0 x , sin , cos 1 .
2m q B m qB m
22
V.7 Solve the equations of motion for a charged particle of mass m and charge q moving in an
qB
oscillating electric field E ( E cos( t ), E sin( t ),0), where , and a uniform and
m
constant magnetic field oriented perpendicular to this electric field B (0,0, B ). Take as
initial conditions r0 (0,0,0), v0 (0,0,0).
Solution:
We can work as before and apply the third method.
We receive the components of the trajectory in explicit form and define them as functions:
23
As you can see it is necessary to calculate the limit, substitution does not work because the
denominator of x(t and y(t) equals zero.
Finally we will plot the trajectory based on a set of parameters.
24
We will demonstrate how to perform "Method 1" with TI-NspireCAS:
25
We plot the projection of the space curve onto the xy-plane.
26
■▬▬▬▬▬▬▬▬
V.8 Investigate the motion of a particle moving from infinity towards the nucleus of an atom
with Z protons. Assume that the mass of particle m is much smaller than the mass of the
nucleus M.
Solution:
Total energy of the particle En, which is the sum of the kinetic energy and the potential energy is
constant. Thus
Ek + Ep = En = const (*)
1 2Z e2
Ek m(r 2 r 2 2 ), Ep r (e = elementary charge)
2
Assuming that the mass of the particle is much smaller than the mass of the nucleus we can consider
the position of the nucleus as a fixed one. Thus, the area mapped out per second by the position vector
is constant:
r 2 C.
Hence, substituting the above relations into the equation for the conservation of energy (*) s to the
equation
m C 2 dr C 2 2Z e 2
2
2 En (**)
2 r 4 d r r
27
1
We introduce a new variable: ( ) ,
r ( )
calculate the derivative
dr ( ) d ( ) 1 d ( )
r 2 ( ) 2
d d ( ) d
and substitute both into the equation (**):
2
d ( ) 4Z e2 2 En
2
( ) A ( ) B where A , B .
d
2
mC mC 2
Hence, the equation for the conversion of the energy is now in a simpler form.
d ( )
Differentiating this equation and cancelling the factor 2 , we obtain the following equation:
d
d 2 ( ) A
( ) 0.
d 2
2
We will solve this equation supported by the ode2 function:
The constants %k1, %k2 can be calculated from the initial conditions as follows. The trajectory of the
particle at infinity is of course just a straight line. Suppose that this straight line, when extrapolated,
passes the nucleus at a distance d. This means that at time t = 0, we can write the following two initial
conditions (see Fig. V.8):
r ( ) 0 ( ) 0
and
sin( )
y ( ) r ( )sin( ) y ( ) lim d.
( )
r
Fig. V.8
28
%k2 was easy to find. %k1 can be found from the second initial condition. Then we can plot the
trajectory:
The form of the graph gives the idea that there might be asymptotes.
We start with the limits for tending to 0 and infinity.
29
We can conclude that y = d which is y = 0.05 is the horizontal asymptote. Next page shows additional
explanation. The result given in %o16 will become clear later.
Now for the second asymptote: We try to find its slope first. According to the sketch it is tan(α) when
r(α) tends to infinity which is equal to (α) becomes 0.
So we have to solve the equation:
Unfortunately we cannot solve this equation in one step with Maxima (with DERIVE it is possible).
There are some ways to overcome this deficiency. We will show tow of them:
4
We know that our asymptote has the form y x b. We need to know b. But let me show a second
3
way to find the slope of the asymptote:
30
The idea is to find the intersection point(s) of the asymptote and the graph in infinity. Is it possible to
derive the implicit form of the graph? Let's try.
Some manipulation is necessary to obtain a reasonable form of eq2 (implicit form of the trajectory).
31
We prepare the expressions for the plot and then plot the trajectory again but now together with the
two asymptotes.
We can do without complicated search for the asymptotes when we identify the graph as a
hyperbola first. Then it is easy work to find its asymptotes.
As the first ideas for this collection of physics problems treated by means of computer
algebra were realized with DERIVE we will finish with the DERIVE solution. We will also do
the initial calculations to get the differential equation and we will find the asymptotes directly.
32
We reduce the differential equation:
Now we have solved the differential equation. For the syntax of DSOLVE2 see page 17. We
find the constants in the same way as we did with Maxima.
33
We plot the trajectory with different ranges for :
Now we can see the meaning of the Maxima result in %o16 above (right plot).
We find the implicit form of the curve and use a tool from the DERIVE Newsletter #83:
34
■▬▬▬▬▬▬▬▬
Additional Explanation
The total energy and angular momentum of the particle are constant.
Total energy of the particle is the sum of kinetic energy and potential energy
Ek + Ep = En = const
Kinetic energy:
1 1 1
Ek m v 2 m (vx 2 v y 2 ) m (vr 2 v 2 )
2 2 2
dr d
vr and v are the polar components of the velocity: vr r, v r r .
dt dt
So we have in polar coordinates:
1 1
Ek m (vr 2 v 2 ) m (r 2 r 2 2 ).
2 2
Potential energy:
Q1 Q2 Q Qz r 2e Ze 2Ze 2
Ep
r r r r
35