Quantcast
Channel: Quod Erat Demonstrandum
Viewing all articles
Browse latest Browse all 265

利用比較係數做積分

$
0
0

之前談過積分的某技巧,見

http://johnmayhk.wordpress.com/2012/02/07/integration-by-parts/

現談另一個。

例 1

考慮多項式 P(x),易知

\frac{d}{dx}P(x)e^x=(P(x)+P'(x))e^x

注意到

P(x)P(x)+P'(x) 皆是多項式,且它們的次數(degree)相同,

換言之

多項式乘 e^x 後求導(differentiate),得多項式乘 e^x,且該多項式的次數不變;

逆向地,

多項式乘 e^x 後求積(integrate),理應得多項式乘 e^x,且該多項式的次數不變。

舉例,求

\int x^3e^xdx

不妨設

\int x^3e^xdx=(ax^3+bx^2+cx+d)e^x+C

兩邊求導(differentiate with respect to x),得

x^3e^x=(ax^3+bx^2+cx+d)e^x+(3ax^2+2bx+c)e^x

x^3e^x=(ax^3+(b+3a)x^2+(c+2b)x+(d+c))e^x

現比較係數,得

a=1
b+3a=0 \Rightarrow b=-3
c+2b=0 \Rightarrow c=6
d+c=0 \Rightarrow d=-6

於是

\int x^3e^xdx=(x^3-3x^2+6x-6)e^x+C

注:上法只用求導法和比較係數,沒用積分技巧。

例 2

易知

\frac{d}{dx}\tan x=\tan^2x + 1

\frac{d}{dx}P(\tan x)=P'(\tan x)(\tan^2x + 1)

其中 P(\tan x) 是以 \tan x 為不定元的多項式(polynomial in \tan x

可見

對 polynomial in \tan x 求導,得到的也是 polynomial in \tan x,不過次數(degree)增加 1;

逆向地,

對 polynomial in \tan x 求積,得到的理應也是 polynomial in \tan x,不過次數減少 1。

那麼,比如求

\int \tan^3xdx

我們可以用類似例一的方法,設

\int \tan^3xdx=a\tan^2x+b\tan x+c

嗎?這裡要多一些考慮。先看看如此設定會有何問題:

把上式求導,得

\tan^3x=2a\tan x(\tan^2x+1)+b(\tan^2x+1)

\tan^3x=2a\tan^3x+b\tan^2x+2a\tan x+b

比較係數,得

2a=1 \Rightarrow a=\frac{1}{2}
b=0
2a=0 \Rightarrow a=0

咦,出現不協調!明顯是設定的自由度(degree of freedom)不夠。為了增加自由度,我們可設

\int \tan^3xdx=a\tan^2x+b\tan x+cx+d\int \tan xdx

(注:求導後,cx 變成多項式的常數,\int \tan xdx 變成多項式的不定元 \tan x

把上式求導,得

\tan^3x=2a\tan^3x+b\tan^2x+(2a+d)\tan x+c

比較係數,得

2a=1 \Rightarrow a=\frac{1}{2}
b=0
2a+d=0 \Rightarrow d=-1
c=0

於是

\int \tan^3xdx

=\frac{1}{2}\tan^2x-\int \tan xdx

=\frac{1}{2}\tan^2x+\ln|\cos x|+C

多舉一例,求

\int \tan^4xdx

\int \tan^4xdx=a\tan^3x+b\tan^2x+c\tan x+Dx+e\int \tan xdx

把上式求導,得

\tan^4x=3a\tan^4x+2b\tan^3x+(3a+c)\tan^2x+(2b+e)\tan x+(D+c)

比較係數,得

3a=1 \Rightarrow a=\frac{1}{3}
2b=0 \Rightarrow b=0
3a+c=0 \Rightarrow c=-1
2b+e=0 \Rightarrow e=0
D+c=0 \Rightarrow D=1

於是

\int \tan^4xdx=\frac{1}{3}\tan^3x-\tan x+x+C

例 3

\int e^x\sin xdx

時,大家又可否用類似以上方法處理之?

johnmayhk-too-easy-wrong



Viewing all articles
Browse latest Browse all 265

Trending Articles