Calculus Review

Here’s a quick refresher on a few useful ideas from calculus.

u-substitution

Steps:

  1. Choose u=g(x) where g(x) is a function inside the integral.
  2. Compute du/dx and solve for dx.
  3. Substitute u and dx into the integral.
  4. Integrate with respect to u.
  5. Substitute the definition of u back in to get the answer in terms of x.

Example:

xex2dx

Let u=x2, so that du/dx=2x or dx=du2x.

xex2dx=xeududx=12eudu=12eu+C=12ex2+C.

Integration by Parts

Basically, integration by parts is the ‘product rule’ for derivatives in reverse (i.e., integration instead of differentiation).

The formula is always udv=uvvdu.

Steps:

  1. Identify the parts of the integral u and dv.
  2. Differentiate u to get du.
  3. Integrate dv to get v.
  4. Substitute into the formula.

Example:

xexdx.

Let u=x and dv=exdx. Then du=dx and v=ex. xexdx=xexexdx=xexex+C=ex(x1)+C.

Tip
A Gamma-Poisson Relationship

Sometimes repeated application of integration by parts until reaching some kind of a base-case is the most elegant way to solve a problem.

Problem 3.19 from Casella & Berger asks one to show the relation x1Γ(α)zα1ezdz=y=0α1xyexy!,α=1,2,3,...

First, notice what the left- and right-hand-sides are: RHS: P(Y<α), where YPoisson(x)LHS: P(Z>x), where ZGamma(α,1).

Recall also that if αN+, then Γ(α)=(α1)!.

Notice that repeated application of the differential ddz to zα1 will yield a factorial term (α1)!.

Let u=1Γ(α)zα1 and dv=ezdz. Therefore, dudz=ddz1Γ(α)zα1=(α1)1Γ(α)zα2=1Γ(α1)zα2. Also, dv=v=ezdz=ez. x1Γ(α)zα1ezdz=1Γ(α)zα1(ez)|z=xz=+x1Γ(α1)zα2ezdz. Observe that as z, ez0, so what remains is 1Γ(α)xα1ex+x1Γ(α1)zα2ezdz. Repeat integration by parts until one is left with the term, x1Γ(1)z1ezdz. Performing another u-substitution, similar to the first example above, let u=z and dv=ezdz. Thus du/dz=1 and v=ez. As a result, we have that 1Γ(1)=1xzezdz=ex+ex. These correspond to the y=1 and y=0 terms of the series in the problem statement’s RHS series summation.

As such, we have shown that repeated integration by parts yields the following relation x1Γ(α)zα1ezdz=1(α1)!xα1ex+1(α2)!xα2ex++ex+ex=y=0α1xyexy!.