Legal Notice, Disclaimer, and Book Ordering Information:

(* Legal Notice, Disclaimer, and Book Ordering Information:

Last Modified: FIO January 1, 1995

Mathematica For Physics
Robert L. Zimmerman and Fredrick I. Olness
MathSource Number: 0206-862 

ISBN 0-201-53796-6
For ordering information, call 1-800-822-6339
Addison-Wesley Publishing Company

Communication with the authors:
Fredrick I. Olness:  olness@mail.physics.smu.edu
Robert L. Zimmerman: bob@zim.uoregon.edu

Copyright 1995, Addison-Wesley Publishing Company, Inc. The material in
this file may be distributed freely  so long as the content remains
unchanged, and the copyright and  reference notices are included. The
publisher grants permission for the noncommercial use of these programs
and program segments.  All other uses require the prior written consent
of the publisher.    

All rights are reserved with regard to the  material in the
"Mathematica For Physics" text, and may not be reproduced, stored in a
retrieval system, or transmitted,  in any form or by any means,
electronic, mechanical, photocopying,  recording, or otherwise, without
the prior written permission  of the publisher. 

The programs and applications presented in this book have been included
for  their instructional value. They have been tested with care but are
not  guaranteed for any particular purpose. The publisher does not
offer any  warranties or representations, nor does it accept any
liabilities with  respect to the programs or applications. 

 *)

Chapter 7, Section 1, Problem 3:   
Compton  Scattering

<<mainDir:subDir:ch7init.m  (* Mac  Version *)

<<mainDir/subDir/ch7init.m  (* Unix Version *)

Solution

Clear["Global`*"];

p1 = h/lam0{1,0,0,1};
p2 = m     {1,0,0,0};

p3= h/lam1{1,     Sin[o1], 0,    Cos[o1]};
p4= m gamf{1, -vf Sin[o2], 0, vf Cos[o2]};

eq1= p1+p2 == p3+p4 //Thread;
eq1 //ColumnForm

eq2= ( m^2 == (p1+p2-p3).eta.(p1+p2-p3)
            //Simplify
            //ExpandAll
       )

lamRule= Solve[eq2,lam1][[1]] //ExpandAll

eq3= eq1[[1]] /.lamRule

gamfRule= Solve[eq3,gamf][[1]] //Simplify

(m gamf-m) /.gamfRule //Simplify

eq4= eq1[[{2,4}]] //Simplify

sol1= Solve[eq4,{gamf,Sin[o1]}][[1]]

eq5= Sin[o1] == (Sin[o1] /.sol1);

sol2= Solve[eq5,{Tan[o2]}][[1]] /.lamRule //Simplify