Docsity

Normal and Error Functions: Un-normalized and Normalized Gaussians, Erf, Erfc, and Erfi - , Study notes of Physics

Partial preview of the text

Download Normal and Error Functions: Un-normalized and Normalized Gaussians, Erf, Erfc, and Erfi - and more Study notes Physics in PDF only on Docsity!

H* The un - normalized Gaussian is given by: L g @ x _D : = Exp @- x ^ 2 D g @ x D ‰-x^2 H It looks like this: *L Plot @ g @ x D , 8 x, - 3 , 3 <D

  • 3 - 2 - 1 1 2 3

H* The area under the curve is: L area = Integrate @ g @ x D , 8 x, - Infinity, Infinity <D p H Note this is equal to Euler Gamma @ 1 ê 2 D : L Gamma @ 1 ê 2 D p H We can define a normalized Gaussian with area one as: L G @ x _D : = g @ x D ê Sqrt @ Pi D G @ x D ‰-x 2 p H It looks like this: *L

Plot @ G @ x D , 8 x, - 3 , 3 <D

  • 3 - 2 - 1 1 2 3

H* The area under the curve is: L Integrate @ G @ x D , 8 x, - Infinity, Infinity <D 1 H We can estimate the width as the distance between the inflection points, which we find by setting the second derivative to zero: *L Solve @ D @ D @ G @ x D , x D , x D ã 0 , x D ::x Ø -

, :x Ø

H* The standard normal distribution is defined to have both area and width of one: L phi @ x _D : = Exp @- x ^ 2 ê 2 D ê Sqrt @ 2 ***** Pi D phi @ x D ‰-^ x^2 2 2 p Integrate @ phi @ x D , 8 x, - Infinity, Infinity <D 1 Solve @ D @ D @ phi @ x D , x D , x D ã 0 , x D 88 x Ø - 1 <, 8 x Ø 1 << H The erf function is: L erf @ x _D : = Integrate @ 2 ***** G @ t D , 8 t, 0 , x <D H This is a built in function in Mathematica called Erf @ x D. Note that Erf @ x D is antisymmetric or odd with special values Erf @-¶D=- 1 , Erf @ 0 D= 0 , Erf @¶D= 1. The plot is: *L

Plot @ Erfc @ x D , 8 x, - 3 , 3 <D

  • 3 - 2 - 1 1 2 3

H* The imaginary error function is Erfi with Erfi @-¶D=-¶ , Erfi @ 0 D= 0 , Erfi @¶D=¶ and the plot looks like: L Plot @ Erfi @ x D , 8 x, - 3 , 3 <D

  • 3 - 2 - 1 1 2 3
  • 60
  • 40
  • 20 20 40 60 H* As in the textbook we can expand Erf @ x D in a Taylor Series about x = 0 , keeping the first 10 terms: *L Series @ Erf @ x D , 8 x, 0 , 10 <D 2 x p

2 x^3 3 p

x^5 5 p

x^7 21 p

x^9 108 p

  • O@xD^11 H* This is the approximation for x << 1. L H The asymptotic series in the book can be considered a Taylor series about as: *L Series @ Erf @ x D , 8 x, Infinity, 10 <D 1 + ‰-x 2

p x

2 p x^3

4 p x^5

8 p x^7

16 p x^9

+ OB

x

F

11 H* This is Boas Eq.10.4 with some rearrangement of terms. Use this series for x >> 1. L H Compare to Taylor seriex of ArcTanh @ x D about zero: *L

Plot @ ArcTan @ x D , 8 x, - 5 , 5 <D

  • 4 - 2 2 4

Series @ ArcTan @ x D , 8 x, 0 , 10 <D x - x^3 3

x^5 5

x^7 7

x^9 9

  • O@xD^11 H* There is an asymptotic series for this also about that is: *L Series @ ArcTan @ x D , 8 x, Infinity, 10 <D p 2

x

3 x^3

5 x^5

7 x^7

9 x^9

+ OB

x

F

11 H* Finally we can apply this to the Euler Gamma to get: *L FullSimplify @ Series @ Gamma @ p + 1 D , 8 p, Infinity, 3 <DD ‰J-^1 - LogB^ 1 p FN^ p+OB^ 1 p F 4 2 p p + p 2 6 p

p 2 144 p^3 ê^2

139 p 2 25 920 p^5 ê^2

+ OB

p

F

7 ê 2 H* With some simplification this also reduces to Boas Eq.11.5, which are the first few terms of the asymptotic series expansion for Sterling's Formula. We can pick out just the first term and simplify it: *L FullSimplify @ Exp @H- 1 - Log @ 1 ê p DL p *D *** Sqrt @ 2 ***** Pi ***** p D , p > 0 D ‰-p^ p 1 2 +p^2 p H With a bit of algebra this is equal to p p e - p^ 2 p p that is just Eq.11.1 or Sterling's Formula. *L