当前位置:网站首页>[combinatorics] recursive equation (the problem of solving recursive equation with multiple roots | the problem is raised)
[combinatorics] recursive equation (the problem of solving recursive equation with multiple roots | the problem is raised)
2022-07-03 17:13:00 【Programmer community】
List of articles
- One 、 The problem of solving recurrence equations with multiple roots
- Two 、 Examples of recurrence equations with multiple roots
One 、 The problem of solving recurrence equations with multiple roots
There are some Recurrence equation Of Characteristic equation Of Characteristic root Yes Heavy root The situation of , The characteristic equation is solved Some of the characteristic roots are equal , So that makes Constants in the general solution cannot obtain unique values ;
Reference resources : 【 Combinatorial mathematics 】 Recurrence equation ( General definition | Structure theorem of general solution of recursive equation without multiple roots ) Two 、 Structure theorem of general solution of recursive equation without multiple roots
stay “ Structure theorem of general solution of recursive equation without multiple roots ” In the chapter , General understanding requirements In the system of equations The coefficient determinant is not equal to
0
0
0 ,
∏
1
≤
i
<
j
≤
k
(
q
i
−
q
k
)
≠
0
\prod\limits_{1 \leq i < j \leq k} ( q_i - q_k ) \not= 0
1≤i<j≤k∏(qi−qk)=0 , If there are two characteristic roots
q
i
,
q
k
q_i , q_k
qi,qk equal , The top " The coefficient determinant is not equal to
0
0
0" It cannot be achieved ;
If the characteristic equation has multiple roots , You can't use it “ Formula solution of recurrence equation without multiple roots ” Solve the recursive equation ;
For recursive equations with multiple roots , Needs to be Linearly independent elements All found , Linear combination , To get a general solution ;
A linear combination : Multiply a solution by
c
1
c_1
c1 , The other solution is multiplied by
c
2
c_2
c2 , The combination after adding ;
Two 、 Examples of recurrence equations with multiple roots
Recurrence equation :
H
(
n
)
−
4
H
(
n
−
1
)
+
4
H
(
n
−
2
)
=
0
H(n) - 4H(n-1) + 4H(n-2) = 0
H(n)−4H(n−1)+4H(n−2)=0
initial value :
H
(
0
)
=
0
,
H
(
1
)
=
1
H(0) = 0 , H(1) = 1
H(0)=0,H(1)=1
Complete process of solving recursive equations without multiple roots :
- 1 . Write the characteristic equation :
- ( 1 ) The standard form of recurrence equation : Write the recurrence equation Standard form , All items are to the left of the equal sign , On the right is
0
0
0 ;
- ( 2 ) Number of terms of characteristic equation : determine Number of terms of characteristic equation , And The recurrence equation has the same number of terms ;
- ( 3 ) The characteristic equation is sub idempotent : The highest power is Number of terms of characteristic equation
−
1
-1
0
0
0 ;
−1 , Lowest power
- ( 4 ) Write There is no coefficient The characteristic equation of ;
- ( 5 ) The coefficients of the recursive equation will be deduced bit by bit Copy Into the characteristic equation ;
- 2 . Solution characteristic root : take The eigenvalue of the characteristic equation is solved ,
x
=
−
b
±
b
2
−
4
a
c
2
a
x = \cfrac{-b \pm \sqrt{b^2 - 4ac}}{2a}
x=2a−b±b2−4ac
- 3 . Construct the general solution of recurrence equation : structure
c
1
q
1
n
+
c
2
q
2
n
+
⋯
+
c
k
q
k
n
c_1q_1^n + c_2q_2^n + \cdots + c_kq_k^n
c1q1n+c2q2n+⋯+ckqkn Linear combination of forms , The linear combination is the solution of the recursive equation ;
- 4 . Find the constant in the general solution : Substitute the initial value of the recursive equation into the general solution , obtain
k
k
k individual
k
k
k Finite element equations , By solving the equations , Get the constant in the general solution ;
- ( 1 ) The constant is substituted into the general solution : Get the final solution of the recursive equation ;
Recurrence equation -> Characteristic equation -> Characteristic root -> general solution -> Substitute the initial value to find the general solution constant
Solve according to the above solution process :
1 . Characteristic equation :
( 1 ) The standard form of recurrence equation : Recursive equations are already in standard form ;
( 2 ) Number of terms of characteristic equation : And The number of terms of recurrence equation identical ,
3
3
3 term ;
( 3 ) The characteristic equation is sub idempotent : The highest power is The number of terms of the characteristic equation minus one ,
3
−
1
=
2
3-1=2
3−1=2 , Lowest power
0
0
0 ;
( 4 ) Write There is no coefficient The characteristic equation of :
x
2
+
x
+
1
=
0
x^2 + x + 1 = 0
x2+x+1=0
( 5 ) The coefficients of the recursive equation will be deduced bit by bit Copy Into the characteristic equation ;
1
x
2
+
(
−
4
)
x
+
(
4
)
1
=
0
1x^2 + (-4)x + (4)1 = 0
1x2+(−4)x+(4)1=0
x
2
−
4
x
+
4
=
0
x^2 - 4x + 4 = 0
x2−4x+4=0
2 . Solution characteristic root : take The eigenvalue of the characteristic equation is solved ,
x
=
−
b
±
b
2
−
4
a
c
2
a
x = \cfrac{-b \pm \sqrt{b^2 - 4ac}}{2a}
x=2a−b±b2−4ac
x
=
4
±
16
−
16
2
=
2
x=\cfrac{4 \pm \sqrt{16 - 16}}{2} = 2
x=24±16−16=2
Both characteristic roots are
2
2
2 ,
q
1
=
2
,
q
2
=
2
q_1=2, q_2 = 2
q1=2,q2=2 ;
3 . Construct the general solution of recurrence equation : structure
c
1
q
1
n
+
c
2
q
2
n
+
⋯
+
c
k
q
k
n
c_1q_1^n + c_2q_2^n + \cdots + c_kq_k^n
c1q1n+c2q2n+⋯+ckqkn Linear combination of forms , The linear combination is the solution of the recursive equation ;
The general solution is :
H
(
n
)
=
c
1
2
n
+
c
2
2
n
=
c
2
n
H(n) = c_12^n + c_22^n = c2^n
H(n)=c12n+c22n=c2n
4 . Find the constant in the general solution : Substitute the initial value of the recursive equation into the general solution , obtain
k
k
k individual
k
k
k Finite element equations , By solving the equations , Get the constant in the general solution ;
take
c
2
n
c2^n
c2n Substitute into
x
2
−
4
x
+
4
=
0
x^2 - 4x + 4 = 0
x2−4x+4=0 In the characteristic equation ,
c
c
c There is no solution ;
If Two characteristic roots All are
2
2
2 , Linear correlation , Right now It is impossible to determine
c
1
,
c
2
c_1, c_2
c1,c2 Undetermined constant ;
Observe
n
2
n
n2^n
n2n Is the solution , The solution and
2
n
2^n
2n Linearly independent , Linearly combine the above two solutions ,
c
1
n
2
n
+
c
2
2
n
c_1n2^n + c_22^n
c1n2n+c22n A linear combination , Is the solution of a recursive equation ,
Substitute the initial value into , You can work out
c
1
,
c
2
c_1, c_2
c1,c2 The value of the constant ;
边栏推荐
- Leetcode13. Roman numeral to integer (three solutions)
- Apache service suspended asynchronous acceptex failed
- Electronic Science and technology 20th autumn "Microcomputer Principle and application" online assignment 2 [standard answer]
- 数仓任务里面 跑SQL任务的时候用的数据库账号是在哪里配置的
- What is your income level in the country?
- 手把手带你入门 API 开发
- [RT thread] NXP rt10xx device driver framework -- Audio construction and use
- One brush 145 force deduction hot question-2 sum of two numbers (m)
- C语言字符串反转
- Kubernetes resource object introduction and common commands (III)
猜你喜欢

Atom QT 16_ audiorecorder
![29: Chapter 3: develop Passport Service: 12: develop [obtain user account information, interface]; (use VO class to package the found data to meet the requirements of the interface for the returned da](/img/1c/c655c8232de1c56203873dcf171f45.png)
29: Chapter 3: develop Passport Service: 12: develop [obtain user account information, interface]; (use VO class to package the found data to meet the requirements of the interface for the returned da

ANOVA example

PHP online confusion encryption tutorial sharing + basically no solution

Prepare for the golden three silver four, 100+ software test interview questions (function / interface / Automation) interview questions. win victory the moment one raises one 's standard

Kubernetes resource object introduction and common commands (4)

跨境电商:外贸企业做海外社媒营销的优势

One brush 147-force deduction hot question-4 find the median of two positive arrays (H)

C语言按行修改文件

建立自己的网站(23)
随机推荐
Test your trained model
Squid 服务启动脚本
[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
Rsync远程同步
Assignment examination questions of advanced English (III) for the course examination of Fujian Normal University in February 2022
Dagong 21 autumn "power plant electrical part" online operation 1 [standard answer] power plant electrical part
Hands on in-depth learning notes (XIV) 3.7 Simple implementation of softmax regression
How SVN views modified file records
Javescript variable declaration -- VaR, let, const
29: Chapter 3: develop Passport Service: 12: develop [obtain user account information, interface]; (use VO class to package the found data to meet the requirements of the interface for the returned da
[combinatorics] recursive equation (characteristic equation and characteristic root | example of characteristic equation | root formula of monadic quadratic equation)
Answer to the homework assessment of advanced English reading (II) of the course examination of Fuzhou Normal University in February 2022
September, 19, "cam principle and application" online assignment [Full Score answer]
[RT thread] NXP rt10xx device driver framework -- Audio construction and use
Build your own website (23)
简单配置PostFix服务器
大消费企业怎样做数字化转型?
Thread pool: the most common and error prone component of business code
Simple configuration of postfix server
Solution to long waiting time of SSH connection to remote host