Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

7.3 Chapter Summary

This chapter focused on methods for simplifying sums and integrals. This chapter can be summarized with 4 main techniques:

  1. Sums and integrals of linear functions are linear functions of sums and integrals (you can move linear functions outside a sum or an integral),

  2. Integration/summation by parts,

  3. Integration by substitution/change of variables, and

  4. Change of density.

Interactive Tools:

  1. Change of Density Visualizer - Use this tool to visualize changes of density.

Sums and Integrals of Sums and Products

Definitions and examples are all available in Section 7.1.

  1. Sums and integrals are linear so, given f(x)=ag(x)+bh(x)f(x) = a g(x) + b h(x) then:

    all xf(x)=aall xg(x)+ball xh(x),all xf(x)dx=aall xg(x)dx+ball xh(x)dx.\begin{aligned} &\sum_{\text{all } x} f(x) = a \sum_{\text{all } x} g(x) + b \sum_{\text{all } x} h(x), \\ &\int_{\text{all } x} f(x) dx = a \int_{\text{all } x} g(x) dx + b \int_{\text{all } x} h(x) dx. \end{aligned}
  2. Integration by Parts:

    Given f(x)=g(x)h(x)f(x) = g(x) h'(x),

    x=abf(x)dx=g(x)h(x)x=ababg(x)h(x)dx\int_{x = a}^b f(x) dx = g(x) h(x) \Big|_{x = a}^b - \int_{a}^b g'(x) h(x) dx

    where h(x)=ddxh(x)h'(x) = \frac{d}{dx} h(x) and g(x)=ddxg(x)g'(x) = \frac{d}{dx} g(x).

  3. Tail Integrals/Sums:

    By integration/summation by parts, if XX is nonnegative random variable, then:

    E[X]={x=0Pr(X>x)dx if continuousx=1Pr(Xx) if discrete\mathbb{E}[X] = \begin{cases} \int_{x = 0}^\infty \text{Pr}(X > x) dx & \text{ if continuous} \\ \sum_{x = 1}^{\infty} \text{Pr}(X \geq x) & \text{ if discrete} \end{cases}

Change of Variables:

Definitions and examples are all available in Section 7.2.

  1. To integrate by change of variables (“uu-substitution”):

    Suppose that f(x)=gh(x)=g(h(x))f(x) = g \circ h(x) = g(h(x)) and that h(x)h(x) is a monotonic function. Let u=h(x)u = h(x) and du(x)=h(x)dxdu(x) = h'(x) dx.

    Let h1h^{-1} denote the inverse function that recovers xx from uu, x=h1(u)x = h^{-1}(u).

    Then:

    g(h(x))dx=g(u)h(h1(u))du=g~(u)du.\int g(h(x)) dx = \int \frac{g(u)}{h'(h^{-1}(u))} du = \int \tilde{g}(u) du.

    Let G~\tilde{G} denote the indefinite integral of g~(x)=g(u)/h(h1(u))\tilde{g}(x) = g(u)/h'(h^{-1}(u)). Then:

    abg(h(x))dx=G~(u)h(a)h(b)=G~(h(b))G~(h(a)).\int_{a}^b g(h(x)) dx = \tilde{G}(u) \Big|_{h(a)}^{h(b)} = \tilde{G}(h(b)) - \tilde{G}(h(a)).
  2. Applying the change of variables formulas to probability densities produces the change of density formula:

    If XX is a continuous random variable with density fXf_X, and Y=h(X)Y = h(X) for some differentiable, monotonic function hh, then:

    fY(y)=fX(x)1h(x) at x=h1(y).f_Y(y) = f_X(x) \frac{1}{|h'(x)|} \text{ at } x = h^{-1}(y).

    If h(x)=σx+sh(x) = \sigma x + s for some σ>0\sigma > 0, then we can use the linear change of density formula:

    fY(y)fX(h1(y))=fX(xsσ).f_Y(y) \propto f_X(h^{-1}(y)) = f_X\left( \frac{x - s}{\sigma} \right).