0. Fundamental understanding¶
Indefinite integral
First of all, we confirm the understanding of fundamentals for Integral substitution.Let f(t) satisfy dF(t)dt=f(t), Then, F(t)=∫f(t)dx
Let φ(x) be function with respect to x,
dF(φ(x))dx=dF(φ)dφdφ(x)dx=f(φ)dφ(x)dx ∵ (1)
Therefore, F(φ(x))=∫f(φ)dφ(x)dxdx=∫f(φ)dφ
Definite Integral
From (2), ∫baf(φ)dφ(x)dxdx=[F(φ(x))]ba=F(φ(b))−F(φ(a))
On the other hand,
Let φ(a),φ(b) be φ(a)=α, φ(b)=β,
∫βαf(t)dt=[F(t)]βα=F(β)−F(α)
Consequently,
∫baf(φ(x))dφ(x)dxdx=∫βαf(t)dt
1. Apply "Integral by substitution"¶
In this section, let us think about following integral. Obviously, you don't have to apply Integral by substitution. Nonetheless, for the sake of intuitive, we're gonna apply "Integral by substitution":)
∫108x2dx
Let φ(x)=x2, dφdx=2,
∫202φ212dφ=∫20φ2dφ=83
This example can be visualized as below,
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
%matplotlib inline
x = np.linspace(0,3, 101)
y1 = 8 *(x ** 2)
y2 = x **2
plt.figure(figsize=(14,6))
plt.plot(x,y1,label='before substitution')
plt.plot(x,y2,label='after substitution')
x1_area = np.where(x <=1)[0]
x2_area = np.where(x <=2)[0]
plt.fill_between(x[x1_area],y1[x1_area],np.zeros(x1_area.shape))
plt.fill_between(x[x2_area],y2[x2_area],np.zeros(x2_area.shape))
plt.legend(fontsize=14)
plt.title('Integral by substitution',fontsize=16)
plt.show()
What we did was Instead of calculating blue colored area, calculated green area. And we somehow extend Δx to 2 times (φ=2dx) :)
No comments:
Post a Comment