当前位置:网站首页>[combinatorics] recursive equation (the non-homogeneous part is an exponential function and the bottom is the characteristic root | example of finding a special solution)
[combinatorics] recursive equation (the non-homogeneous part is an exponential function and the bottom is the characteristic root | example of finding a special solution)
2022-07-03 17:23:00 【Programmer community】
List of articles
- One 、 The nonhomogeneous part is Exponential function And The bottom is the case of characteristic root
- Two 、 The nonhomogeneous part is Exponential function And The bottom is the case of characteristic root Example
One 、 The nonhomogeneous part is Exponential function And The bottom is the case of characteristic root
Linear Nonhomogeneous recurrence equation with constant coefficients :
H
(
n
)
−
a
1
H
(
n
−
1
)
−
⋯
−
a
k
H
(
n
−
k
)
=
f
(
n
)
H(n) - a_1H(n-1) - \cdots - a_kH(n-k) = f(n)
H(n)−a1H(n−1)−⋯−akH(n−k)=f(n) ,
n
≥
k
,
a
k
≠
0
,
f
(
n
)
≠
0
n\geq k , a_k\not= 0, f(n) \not= 0
n≥k,ak=0,f(n)=0
The left side of the above equation And “ Linear homogeneous recurrence equation with constant coefficients ” It's the same , But not on the right
0
0
0 , It's based on
n
n
n Of function
f
(
n
)
f(n)
f(n) , This type of recursive equation is called “ Linear Nonhomogeneous recurrence equation with constant coefficients ” ;
The nonhomogeneous part is Exponential function And The bottom is the case of characteristic root :
If the above “ Linear Nonhomogeneous recurrence equation with constant coefficients ” Of Nonhomogeneous part
f
(
n
)
f(n)
f(n) It's an exponential function ,
β
n
\beta^n
βn ,
If
β
\beta
β yes
e
e
e Heavy characteristic root ,
The special solution form of the nonhomogeneous part is :
H
∗
(
n
)
=
P
n
e
β
n
H^*(n) = P n^e \beta^n
H∗(n)=Pneβn ,
P
P
P Is constant ;
The above special solution
H
∗
(
n
)
=
P
n
e
β
n
H^*(n) = P n^e \beta^n
H∗(n)=Pneβn , Into the recursive equation , Solve the constant
P
P
P Value , Then the complete special solution is obtained ;
“ Linear Nonhomogeneous recurrence equation with constant coefficients ” The general solution is
H
(
n
)
=
H
(
n
)
‾
+
H
∗
(
n
)
H(n) = \overline{H(n)} + H^*(n)
H(n)=H(n)+H∗(n)
Use the above solution Special solution , And recurrence equation General solution of homogeneous part , Form the complete general solution of the recursive equation ;
Two 、 The nonhomogeneous part is Exponential function And The bottom is the case of characteristic root Example
Recurrence equation :
H
(
n
)
−
5
H
(
n
−
1
)
+
6
H
(
n
−
2
)
=
2
n
H(n) - 5H(n-1) + 6H(n-2)=2^n
H(n)−5H(n−1)+6H(n−2)=2n, Seeking special solution ?
View its characteristic root :
The standard form of recurrence equation is :
H
(
n
)
−
5
H
(
n
−
1
)
+
6
H
(
n
−
2
)
=
2
n
H(n) - 5H(n-1) + 6H(n-2)=2^n
H(n)−5H(n−1)+6H(n−2)=2n ,
Homogeneous part is
H
(
n
)
−
5
H
(
n
−
1
)
+
6
H
(
n
−
2
)
=
0
H(n) - 5H(n-1) + 6H(n-2)=0
H(n)−5H(n−1)+6H(n−2)=0
Write the characteristic equation :
x
2
−
5
x
+
6
=
0
x^2 - 5x + 6 = 0
x2−5x+6=0 ,
Characteristic root
q
1
=
2
,
q
2
=
3
q_1= 2, q_2 = 3
q1=2,q2=3
Find the recurrence equation Special solutions corresponding to Nonhomogeneous parts ,
The standard form of recurrence equation is :
H
(
n
)
−
5
H
(
n
−
1
)
+
6
H
(
n
−
2
)
=
2
n
H(n) - 5H(n-1) + 6H(n-2)=2^n
H(n)−5H(n−1)+6H(n−2)=2n
The nonhomogeneous part is
2
n
2^n
2n , It's an exponential function , But the bottom line is
1
1
1 Heavy characteristic root ,
At this time, the bottom is
e
e
e The special solution is constructed by repeating the special solution form of the characteristic root
H
∗
(
n
)
=
P
n
e
β
n
H^*(n) = P n^e \beta^n
H∗(n)=Pneβn
The form of the special solution is
H
∗
(
n
)
=
P
n
1
2
n
=
P
n
2
n
H^*(n) = P n^1 2^n = Pn2^n
H∗(n)=Pn12n=Pn2n , among
P
P
P Is constant ;
The special solution is substituted into the above recursive equation :
P
n
2
n
−
5
P
(
n
−
1
)
2
n
−
1
+
6
P
(
n
−
2
)
2
n
−
2
=
2
n
Pn2^n - 5P(n-1)2^{n-1} + 6P(n-2)2^{n-2} = 2^n
Pn2n−5P(n−1)2n−1+6P(n−2)2n−2=2n
All items are constructed
2
n
2^n
2n
P
n
2
n
−
5
P
(
n
−
1
)
2
n
2
+
6
P
(
n
−
2
)
2
n
4
=
2
n
Pn2^n - \cfrac{5P(n-1)2^{n}}{2} + \cfrac{6P(n-2)2^n}{4} = 2^n
Pn2n−25P(n−1)2n+46P(n−2)2n=2n
Divide left and right by
2
n
2^n
2n
P
n
−
5
P
(
n
−
1
)
2
+
3
P
(
n
−
2
)
2
=
1
Pn - \cfrac{5P(n-1)}{2} + \cfrac{3P(n-2)}{2} = 1
Pn−25P(n−1)+23P(n−2)=1
P
n
−
5
P
n
2
+
5
P
2
+
3
P
n
2
−
3
P
=
1
Pn - \cfrac{5Pn}{2} + \cfrac{5P}{2} + \cfrac{3Pn}{2} -3P = 1
Pn−25Pn+25P+23Pn−3P=1
5
P
2
−
3
P
=
1
\cfrac{5P}{2} -3P = 1
25P−3P=1
−
P
2
=
1
-\cfrac{P}{2} = 1
−2P=1
P
=
−
2
P=-2
P=−2
The form of special solution
H
∗
(
n
)
=
P
n
2
n
H^*(n) = Pn2^n
H∗(n)=Pn2n , among
P
P
P Constant value is
−
2
-2
−2 ;
The special solution is
H
∗
(
n
)
=
−
2
n
2
n
H^*(n) = -2n2^n
H∗(n)=−2n2n
边栏推荐
- Enterprise custom form engine solution (XI) -- form rule engine 1
- Test your trained model
- The difference between i++ and ++i: tell their differences easily
- [combinatorics] recursive equation (the relationship theorem between the solution of the recursive equation and the characteristic root | the linear property theorem of the solution of the recursive e
- RedHat 6.2 configuring ZABBIX
- Analysis of variance summary
- Free data | new library online | cnopendata complete data of China's insurance intermediary outlets
- [combinatorics] recursive equation (general solution structure of recursive equation with multiple roots | linear independent solution | general solution with multiple roots | solution example of recu
- POM in idea XML graying solution
- TensorBoard快速入门(Pytorch使用TensorBoard)
猜你喜欢

Design e-commerce spike

Simple use of unity pen XR grab

kubernetes资源对象介绍及常用命令(五)-(NFS&PV&PVC)

Is AI too slow to design pictures and draw illustrations? 3 sets of practical brushes to save you

【RT-Thread】nxp rt10xx 设备驱动框架之--Audio搭建和使用

Golang单元测试、Mock测试以及基准测试

Internet Hospital his Management Platform source, online Inquiry, appointment Registration Smart Hospital Small program source

Wechat applet for the first time

国内如何购买Google Colab会员

【RT-Thread】nxp rt10xx 设备驱动框架之--Pin搭建和使用
随机推荐
Hongmeng third training
Internet Hospital his Management Platform source, online Inquiry, appointment Registration Smart Hospital Small program source
A day's work list of an ordinary programmer
TensorBoard快速入门(Pytorch使用TensorBoard)
Dagong 21 autumn "power plant electrical part" online operation 1 [standard answer] power plant electrical part
Life is still confused? Maybe these subscription numbers have the answers you need!
When absolutely positioned, the element is horizontally and vertically centered
企业级自定义表单引擎解决方案(十一)--表单规则引擎1
[combinatorics] recursive equation (special solution form | special solution solving method | special solution example)
大消费企业怎样做数字化转型?
POM in idea XML graying solution
How to enforce parameters in PowerShell- How do I make parameters mandatory in PowerShell?
Applet setting multi account debugging
基于主机的入侵系统IDS
[combinatorics] recursive equation (solution of linear non-homogeneous recursive equation with constant coefficients | standard form and general solution of recursive equation | proof of general solut
Simple use of unity pen XR grab
[RT thread] NXP rt10xx device driver framework -- Audio construction and use
[combinatorics] recursive equation (characteristic equation and characteristic root | example of characteristic equation | root formula of monadic quadratic equation)
The most complete postman interface test tutorial in the whole network, API interface test
One brush 149 force deduction hot question-10 regular expression matching (H)