プリンキピア

第22章付録:深層学習のための数学

22.5.3. Change of Variables22.5.3 変数変換

Just as with differentiation, there are a number of rules which make the computation of integrals more tractable. In fact, every rule of differential calculus (like the product rule, sum rule, and chain rule) has a corresponding rule for integral calculus (integration by parts, linearity of integration, and the change of variables formula respectively). In this section, we will dive into what is arguably the most important from the list: the change of variables formula.
英語のヒント
微分と同じように、積分の計算をより扱いやすくするいくつかの規則がある。実際、微分法のどの規則(積の規則、和の規則、連鎖律など)にも、積分法に対応する規則(それぞれ部分積分、積分の線形性、変数変換の公式)がある。この節では、このリストの中でおそらく最も重要なもの、つまり変数変換の公式に入り込む。
First, suppose that we have a function which is itself an integral:
英語のヒント
まず、それ自体が積分である関数があるとする。
F(x)=∫0xf(y)dy.(22.5.14)
Let’s suppose that we want to know how this function looks when we compose it with another to obtain F(u(x)). By the chain rule, we know
英語のヒント
この関数を別の関数と合成してF(u(x))を得たときにどう見えるかを知りたいとしよう。連鎖律により、次がわかる。
ddxF(u(x))=dFdu(u(x))⋅dudx.(22.5.15)
We can turn this into a statement about integration by using the fundamental theorem (22.5.10) as above. This gives
英語のヒント
上と同じように基本定理(式(22.5.10))を使うと、これを積分についての言明に変えられる。これにより次が得られる。
F(u(x))−F(u(0))=∫0xdFdu(u(y))⋅dudydy.(22.5.16)
Recalling that F is itself an integral gives that the left hand side may be rewritten to be
英語のヒント
Fがそれ自体積分であることを思い出すと、左辺は次のように書き直せる。
∫u(0)u(x)f(y)dy=∫0xdFdu(u(y))⋅dudydy.(22.5.17)
Similarly, recalling that F is an integral allows us to recognize that dFdx=f using the fundamental theorem (22.5.10), and thus we may conclude
英語のヒント
同様に、Fが積分であることを思い出すと、基本定理(式(22.5.10))を使ってdFdx=fであることがわかるので、次のように結論できる。
∫u(0)u(x)f(y)dy=∫0xf(u(y))⋅dudydy.(22.5.18)
This is the change of variables formula.
英語のヒント
これが変数変換の公式である。
For a more intuitive derivation, consider what happens when we take an integral of f(u(x)) between x and x+ϵ. For a small ϵ, this integral is approximately ϵf(u(x)), the area of the associated rectangle. Now, let’s compare this with the integral of f(y) from u(x) to u(x+ϵ). We know that u(x+ϵ)≈u(x)+ϵdudx(x), so the area of this rectangle is approximately ϵdudx(x)f(u(x)). Thus, to make the area of these two rectangles to agree, we need to multiply the first one by dudx(x) as is illustrated in Fig. 22.5.2.
英語のヒント
もっと直観的に導くため、xとx+ϵの間でf(u(x))の積分をとると何が起きるかを考えよう。小さなϵについては、この積分はおよそϵf(u(x))であり、これは対応する長方形の面積である。では、これをu(x)からu(x+ϵ)までのf(y)の積分と比べよう。u(x+ϵ)≈u(x)+ϵdudx(x)であることはわかっているので、この長方形の面積はおよそϵdudx(x)f(u(x))である。したがって、図22.5.2に示すように、これら二つの長方形の面積を一致させるには、最初の長方形にdudx(x)を掛ける必要がある。
Fig. 22.5.2図22.5.2
Visualizing the transformation of a single thin rectangle under the change of variables.
英語のヒント
変数変換による1枚の細い長方形の変換の視覚化。
This tells us that
英語のヒント
これにより次がわかる。
∫xx+ϵf(u(y))dudy(y)dy=∫u(x)u(x+ϵ)f(y)dy.(22.5.19)
This is the change of variables formula expressed for a single small rectangle.
英語のヒント
これは、1枚の小さな長方形について表した変数変換の公式である。
If u(x) and f(x) are properly chosen, this can allow for the computation of incredibly complex integrals. For instance, if we even chose f(y)=1 and u(x)=e−x2 (which means dudx(x)=−2xe−x2), this can show for instance that
英語のヒント
u(x)とf(x)を適切に選べば、これによって信じられないほど複雑な積分も計算できる。たとえば、f(y)=1とu(x)=e−x2を選びさえすれば(これはdudx(x)=−2xe−x2を意味する)、たとえば次を示せる。
e−1−1=∫e−0e−11dy=−2∫01ye−y2dy,(22.5.20)
and thus by rearranging that
英語のヒント
そして、並べ替えると次がわかる。
∫01ye−y2dy=1−e−12.(22.5.21)