# Feynman’s trick applied to Contour Integration

A friend of mine was the TA for a graduate level  Math course for Physicists. And an exercise in that course was to solve  integrals using Contour Integration. Just for fun, I decided to mess with him by trying to solve all the contour integral problems in the prescribed textbook for the course [Arfken and Weber’s  ‘Mathematical methods for Physicists,7th edition”  exercise (11.8)] using anything BUT contour integration.

You can solve a lot of them them exclusively by using Feynman’s trick. ( If you would like to know about what the trick is – here is an introductory post) The following are my solutions:

All solutions in one pdf

Arfken-11.8.1

Arfken-11.8.2

Arfken-11.8.3

Arfken-11.8.4*

Arfken-11.8.5

Arfken-11.8.6 & 7 – not applicable

Arfken-11.8.8

Arfken-11.8.9

Arfken-11.8.10

Arfken-11.8.11

Arfken-11.8.12

Arfken-11.8.13

Arfken-11.8.14

Arfken-11.8.15

Arfken-11.8.16

Arfken-11.8.17

Arfken-11.8.18

Arfken-11.8.19

Arfken-11.8.20

Arfken-11.8.21 & Arfken-11.8.23* (Hint: Use 11.8.3)

Arfken-11.8.22

Arfken-11.8.24

Arfken-11.8.25*

Arfken-11.8.26

Arfken-11.8.27

Arfken-11.8.28

*I forgot how to solve these 4 problems without using Contour Integration. But I will update them when I remember how to do them. If you would like, you can take these to be challenge problems and if you solve them before I do send an email to 153armstrong(at)gmail.com and I will link the solution to your page. Cheers!

# Feynman’s trick of parametric integration applied to Laplace Transforms

Parametric Integration is an Integration technique that was popularized by Richard Feynman but was known since Leibinz’s times. But this technique rarely gets discussed beyond a niche set of problems mostly in graduate school in the context of Contour Integration.

A while ago, having become obsessed with this technique I wrote this note on applying it to Laplace transform problems  and it is now public for everyone to take a look.

I would be open to your suggestions, comments and improvements on it as well. Cheers! Once when lecturing in class Lord Kelvin used
the word ‘mathematician’ and then interrupting himself asked his class:
Do you know what a mathematician is?’

Stepping to his blackboard he
wrote upon it the above equation.

Then putting his finger on what he had written, he turned to
his class and said, ‘A mathematician is one to whom that is as obvious
as that twice two makes four is to you.

## ** Two interesting ways to arrive at the Gaussian Integral

Woah… The backlash that Lord Kelvin got after this post was just phenomenal.

There are many ways to obtain this integral (click here to know about other methods) , but here are two interesting ways to arrive at the Gaussian Integral which you may/may not have seen and may/may not be easy to follow.

## Gamma Function to the rescue

If you know about factorials (5!= 5.4.3.2.1), you know that they make sense only for integers.

But  Gamma function
extends this to non-integers values.  This integral form allows you to
calculate factorial values such as (½)!, (¾)! and so on.

The same can be used to evaluate the Gaussian Integral as follows:

## Differentiating under the Integral sign

In this technique known as ‘Differentiating under the integral sign’, you choose an integral whose boundary values are easy integrals to evaluate.

Here I(0) and I(∞); and differentiate with respect to a parameter β instead of the variable x to obtain the result.

# Intro to Parametric Integration

Parametric integration is one such technique that once you are made
aware of it, you will never for the love of god forget it. It goes by many names : ‘Differentiation under the Integral sign’, ‘Feynman’s famous trick’ , ‘Parametric Integration’ and so on.

Let me
demonstrate :

Now this integral might seem familiar to you if you have taken a calculus course before and to evaluate it is rather simple as well.

Knowing this you can do lots of crazy stuff. Lets differentiate this
expression wrt to the parameter in the integral – s (Hence the name
parametric integration ). i.e

Look at that, by simple differentiation we have obtained the expression
for another integral. How cool is that! It gets even better.

Lets differentiate it once more:

.

.

.

If you keep on differentiating the expression n times, one gets this :

Now substituting the value of s to be 1, we obtain the following
integral expression for the factorial. This is known as the gamma
function.

There are lots of ways to derive the above expression for the gamma
function, but parametric integration is in my opinion the most subtle
way to arrive at it. 😀

# On the beauty of Parametric Integration and the Gamma function

Parametric integration is one such technique that once you are made aware of it, you will never for the love of god forget it. Let me demonstrate :

Now this integral might seem familiar to many of you and to evaluate it is rather simple as well. $\int\limits_0^{\infty} e^{-sx} dx = \frac{1}{s}$

Knowing this you can do lots of crazy stuff. Lets differentiate this expression wrt to the parameter in the integral – s (Hence the name parametric integration ). i.e $\frac{d}{ds}\int\limits_0^{\infty} e^{-sx} dx = \frac{d}{ds}\left(\frac{1}{s}\right)$ $\int\limits_0^{\infty} x e^{-sx} dx = \frac{1}{s^2}$

Look at that, by simple differentiation we have obtained the expression for another integral. How cool is that! It gets even better.
Lets differentiate it once more: $\int\limits_0^{\infty} x^2 e^{-sx} dx = \frac{2*1}{s^3}$ $\int\limits_0^{\infty} x^3 e^{-sx} dx = \frac{3*2*1}{s^4}$ $\vdots$

If you keep on differentiating the expression n times, one gets this : $\int\limits_0^{\infty} x^n e^{-sx} dx = \frac{n!}{s^{n+1}}$

Now substituting the value of s to be 1, we obtain the following integral expression for the factorial. This is known as the gamma function. $\int\limits_0^{\infty} x^n e^{-x} dx = n! = \Gamma(n+1)$

There are lots of ways to derive the above expression for the gamma function, but parametric integration is in my opinion the most subtle way to arrive at it. 😀