In order to demonstrate the simplicity, reliability and efficiency of the direct homotopy perturbation method in solving nonlinear algebraic equations, the following polynomial and transcendental equations are clearly solved as presented under this section as presented as follows:
Example 5.1: Find the roots of the following quadratic equation using homotopy perturbation method
. (11)
The above equation can be expressed as
(12)
In order to apply homotopy perturbation method, the equation is expressed as
(13)
One can write the above Eq. (13) as
(14)
Using the embedding parameter p as a small parameter, the solution of Eq. (11) can be assumed to be written as a power series in p as given in Eq. (15)
(15)
On substituting Eq. (15) into Eq.(14), we have
(16)
Arrange the equation according to the power of the embedding parameter p, we have
Taking an initial approximation as
On solving the above equations, we have
(17)
Taking an initial approximation as
(18)
From the basic principle of HPM,
It should be pointed out that of all the values of p between 0 and 1, p=1 produces the best result. Therefore, setting
, results in the approximation solution of Eq. (9)
(20)
Which gives
(21)
Therefore, when the initial approximation,
we have
(22)
And, when the initial approximation,
, we have
(23)
The above results show that the closer the initial approximation to the root of the equation, the more accurate is the result of the solution. However, the approach requires an initial estimate. In order to avoid this, one can write a modified homotopy perturbation method so that the scheme can be free from the problem of choosing an appropriate initial approximation.
The equation is expressed as
(24)
where c is the constant in the nonlinear equation,
(25)
As done previously, the solution of Eq. (11) can be assumed to be written as a power series in p as
(26)
On substituting Eq. (26) into Eq.(25), one has
(27)
Arrange the equation according to the power of the embedding parameter p, we have
On solving the above equations, we have
(28)
Therefore
(29)
From Eqs. (28) and (29), we have
The exact solutions for the roots of the equation are -1 and -3. The above solution shows that the results of the HPM is approaching a negative root of -1, which is one of the roots of the equation. It should be stated that the rate of convergence can be accelerated using Shank transformation (Table 1).
Number of Iteration (n)
|
n-term Solution
|
Absolute Error
|
1
|
-0.75
|
0.25
|
2
|
-0.890625
|
0.109375
|
3
|
-0.943359
|
0.056641
|
4
|
-0.968078
|
0.031922
|
5
|
-0.981055
|
0.018945
|
6
|
-0.988355
|
0.011645
|
7
|
-0.992657
|
0.007343
|
8
|
-0.995278
|
0.004722
|
9
|
-0.996912
|
0.003088
|
10
|
-0.997995
|
0.002045
|
Table 1 Solution of the equation of example 3.1
Example 5.2: Find the roots of the following cubic equation using homotopy perturbation method
. (30)
The above equation can be expressed as
(31)
In order to apply homotopy perturbation method, the equation is expressed as
(32)
Which can be written as
(33)
According to the procedure of HPM, the solution of Eq. (30) can be assumed to be written as a power series in p as
(34)
After substitution of Eq. (34) into Eq.(33), on arrives at
(35)
Eq. (35) can be arranged according to the power of the embedding parameter p as
The solutions of the above equations are
(36)
From the basic principle of HPM,
The exact solutions of the roots of the given equation are -2.49086362, 0.6566204, 1.83424318. Table 2 shows that the solution through the HPM is approaching the lowest positive root of 0.6566204.
Number of Iteration (n)
|
n-term Solution
|
Absolute Error
|
1
|
0.6
|
0.0566204
|
2
|
0.6432
|
0.0134204
|
3
|
0.6525312
|
0.0040892
|
4
|
0.6552186
|
0.0014018
|
5
|
0.6561054
|
0.000515
|
6
|
0.6564223
|
0.0001981
|
7
|
0.6565417
|
0.0000787
|
Table 2 Solution of the equation of example 3.2
Example 5.3: Determine the root of the following cubic equation with the aid of homotopy perturbation method
. (37)
The above equation can be expressed as
(38)
In order to apply homotopy perturbation method, the equation is expressed as
(39)
Following the HPM procedure, the solution of Eq. (37) can be assumed to be written as a power series in p as
(40)
When Eq. (40) is substituted into Eq. (39), we have
(41)
On arranging the Eq. (41) according to the power of the embedding parameter p, gives
The solutions of the above equations are
(42)
Therefore, we have
The exact solutions of the roots of the given equation are 0.5857864, 3.000000 and 3.4142135. The solution of the equation using HPM is approaching the lowest positive root of 0.5857864 as the absolute error is approaching zero (Table 3).
Number of Iteration (n)
|
n-term Solution
|
Absolute Error
|
1
|
0.4285714
|
0.157215
|
2
|
0.5147855
|
0.0710009
|
3
|
0.5483418
|
0.0374446
|
4
|
0.5644362
|
0.0213502
|
5
|
0.572528
|
0.0132584
|
6
|
0.5772163
|
0.0085701
|
7
|
0.5801824
|
0.005604
|
Table 3 Solution of the equation of example 3.3
Example 5.4: Solve the following cubic equation using homotopy perturbation method
. (43)
The above equation can be expressed as
(44)
As before, in order to apply homotopy perturbation method, the Eq. (44) can be expressed as
(45)
In a similar way, one can say that the solution of Eq. (43) can be expressed as
(46)
On substituting Eq. (456) into Eq.(45), we have
(47)
Arrange the equation according to the power of the embedding parameter p, produces
When the above equations are solved, we have
(48)
Therefore, we have
The exact solutions of the roots of the given equation are -2.00000, -1+
and -1-
. The result of the HPM is approaching the real root of -2.0000 as the absolute error is reducing to 0. The rate of convergence can be accelerated using Shank transformation (Table 4).
Number of Iteration (n)
|
n-term Solution
|
Absolute Error
|
1
|
-1
|
1
|
2
|
-1.375
|
0.625
|
3
|
-1.609375
|
0.390625
|
4
|
-1.7734375
|
0.2265625
|
5
|
-1.8913574
|
0.1086426
|
6
|
-1.974945
|
0.025055
|
Table 4 Solution of the equation of example 3.4
Example 5.5: Solve the following quintic equation using homotopy perturbation method
. (49)
Eq. (4) can be rearranged as
(50)
The homotopy perturbation method is applied to write the Eq. (50) as
(51)
Following the usual procedures of HPM, the solution of Eq. (51) is written as a power series in p as
(52)
The substitution of Eq. (52) into Eq.(51) produces
(53)
On arranging Eq.(53) according to the power of the embedding parameter p, we have
The solutions of the above equations give
(54)
Therefore, we have
The exact solutions of the roots of the given equation are -0.528886049, -1.09890396, 1.76518196. It can be seen that the above solution shows that the scheme is approaching the real root of -0.528886049 as the absolute error is approaching 0 (Table 5).
Number of Iteration (n)
|
n-term Solution
|
Absolute Error
|
1
|
-0.66666667
|
0.137780621
|
2
|
-0.51577504
|
0.013111009
|
3
|
-0.50211407
|
0.026771979
|
4
|
-0.53868387
|
0.009797821
|
Table 5 Solution of the equation of example 3.5
Example 5.6: Solve the following nonlinear algebraic simultaneous equations using homotopy perturbation method
. (55)
(56)
The above equation can be expressed as
(57)
(58)
According to the definitions of HPM, Eqs. (57) and (58) can be written as
(59)
(60)
The solutions of Eqs. (59) and (60) can be assumed to be written
(61)
(62)
On substituting Eqs. (61) and (62) into Eq.(59) and (60), we have
(63)
(64)
When the Eqs. (63) and (64) are arranged according to the power of the embedding parameter p, one arrives at
On solving the above equations to the sixth power of the embedding parameter p, we have
,
(65)
The exact solutions of the roots of the given equation are x = 1 and y = 1 . The absolute errors in the approximate solutions are 0.002147 and 0.0024380. It can be seen that the above solution shows that the scheme is approaching the roots of the equations as the absolute errors approach zero.
Example 5.7: Find the roots of the following transcendental equation using homotopy perturbation method
. (66)
In order to apply homotopy perturbation method, the equation is expressed as
(67)
The solution of Eq. (67) can be assumed to be written
(68)
The substitution Eq. (68) into Eq.(67) gives
(69)
A further simplification of the above equation produces
(70)
The expression in the block bracket can be expanded with the aid of Taylor series as
(71)
The arrangement of Eq.(71) according to the power of the embedding parameter p gives
On solving the above equations, we have
Therefore, we have
(72)
The exact solutions of the roots of the given equation are 2.1200282389876. It can be seen that the above solution shows that the scheme approaches the exact solution (Table 6).
Number of Iteration (n)
|
n-term Solution
|
Absolute Error
|
1
|
2
|
0.1200282
|
2
|
2.135335283
|
0.015307
|
3
|
2.117019644
|
0.026772
|
4
|
2.120737773
|
0.0007095
|
5
|
2.119843206
|
0.000185
|
6
|
2.120079664
|
5.14E-05
|
7
|
2.120013306
|
1.49E-05
|
8
|
2.120032717
|
4.48E-06
|
9
|
2.120026863
|
1.38E-06
|
10
|
2.12002867
|
4.31E-07
|
Table 6 Solution of the equation in example 3.6
Example 5.8: Determine the root of the following transcendental equation using homotopy perturbation method
. (73)
The above equation can be written as
. (74)
In order to apply homotopy perturbation method, we can write Eq. (74) as
(75)
The assumed solution can be written
(76)
From Eq. (76), Eq. (75) can be written as
(77)
Eq. (77) can be written as after applying Taylor series to the second function in the block bracket
(78)
Arranging Eq. (77) according to the power of the embedding parameter p, we have
On solving the above equations, we have
Therefore, we have
(79)
The exact solutions of the roots of the given equation are 0.257530. It can be seen that the above solution shows that the scheme approaches the exact solution (Table 7).
Number of Iteration (n)
|
n-term Solution
|
Absolute Error
|
1
|
0.666667
|
0.409137
|
2
|
0.165557
|
0.091973
|
3
|
0.268195
|
0.010665
|
4
|
0.249365
|
0.008165
|
5
|
0.26594
|
0.00841
|
6
|
0.252731
|
4.80E-03
|
7
|
0.260074
|
2.54E-03
|
8
|
0.255747
|
1.78E-03
|
9
|
0.258856
|
1.33E-03
|
10
|
0.256616
|
9.14E-04
|
Table 7 Solution of the equation in example 3.7
It could be seen from the above examples and from the procedures of homotopy perturbation method that a linear term must be in the equation for the HPM to operate. However, it is found that in some equations, there is no presence of a linear term. Under such scenario, the application of HPM will fail except a kind of modification is done to the given equation to include an artificial linear term. Therefore, in the subsequent examples such problems will be handled.
In order to treat such problems, we adopt that the general nonlinear equation is in the form
(80)
The linear terms are decomposed into L + R, with L taken as the first linear term which is easily and R as the remainder of the linear operator apart from L. where c is the constant in the equation and u is the variable, Nu represents the nonlinear terms.
Example 5.9: Find the roots of the following cubic equation using homotopy perturbation method
. (81)
The above equation does not contain a linear term. A linear term with a convenient coefficient can be introduced to make the equation be easily amendable to the form that homotopy perturbation can easily be applied. Therefore, we write
(82)
For the choice of “a”, the ratio of the constant in the given equation and that of “a” must be within two values where the needed root of the equation lies. Therefore, we have
. In this example, we choice a=8.
(83)
We can rewrite Eq. (82) as
(84)
In order to apply homotopy perturbation method, the Eq.(84) is expressed as
(85)
As done in the previous examples, the solution of the given nonlinear algebraic model can be written as
(86)
After the substitution of Eq. (86) into Eq. (85), one arrives at
(87)
Arranging Eq. (87) according to the power of the embedding parameter p, we have
On solving the above equations, we have
(88)
Therefore,
The exact solutions of the roots of the given equation are 1.0000000, -1.381966011 and -3.618033989. It can be seen that the above solution shows that the scheme is approaching the real positive root of 1.0000 from both ends, as the absolute error tends to zero (Table 8).
Number of Iteration (n)
|
n-term Solution
|
Absolute Error
|
1
|
0.625
|
0.375
|
2
|
1.0241699
|
0.0241699
|
3
|
1.1153865
|
0.1153865
|
4
|
1.0192181
|
0.0192181
|
5
|
0.9358133
|
0.0641867
|
6
|
0.961575
|
0.038425
|
7
|
1.0567075
|
0.0567075
|
Table 8 Solution of the equation of example 3.8
Example 5.10: Find the roots of the following transcendental equation using homotopy perturbation method
. (89)
The above equation does not contain a linear term. A convenient linear term with a coefficient can be introduced to make the equation be easily amendable to the form that homotopy perturbation can easily be applied. Therefore, we write
(90)
For the choice of “a”, the ratio of the constant in the given equation and that of “a” must be within two values where the needed root of the equation lies. Therefore, we have
. In this example, we choice a = 7.
A convenient linear term is therefore introduced such that we can write,
(91)
Which can be expressed as
(92)
In order to apply homotopy perturbation method, the equation is expressed as
(93)
The solution of the given equation can be assumed to be written as a power series in p as
(94)
On substituting Eq. (94) into Eq.(93), we have
(95)
(96)
(97)
(98)
Arrange the equation according to the power of the embedding parameter p, we have
On solving the above equations, we have
(99)
Therefore
The above solution is converging to 0.4972 at the tenth term which is a root of the equation. Therefore,
(Table 9).
Number of Iteration (n)
|
n-term Solution
|
Absolute Error
|
1
|
0.4284714
|
0.0687268
|
2
|
0.4485435
|
0.0486565
|
3
|
0.4627246
|
0.0344754
|
4
|
0.4727891
|
0.0244109
|
5
|
0.4799477
|
0.0172523
|
Table 9 Solution of the equation of example 3.9
Example 5.11: Find the roots of the following transcendental equation using homotopy perturbation method
. (100)
The above equation does not contain a linear term. A convenient linear term with a coefficient can be introduced to make the equation be easily amendable to the form that homotopy perturbation can easily be applied. Therefore, we write
(101)
For the choice of “a”, the ratio of the constant in the given equation and that of “a” must be within two values where the needed root of the equation lies. Therefore, we have
. In this example, we choice a = 5.
(102)
The homotopy perturbation of the equation is given as
(103)
The assumed solution is expressed as a power series in p as
(104)
On substituting Eq. (104) into Eq.(103), we have
(105)
Arranging the above equation according to the power of the embedding parameter p, we have
On solving the above equations, we have
(106)
In the solutions of nonlinear algebraic equations, Shanks transformation can be used to covert a slowly converging sequence to its rapidly converging counterpart effectively. The Shanks transformation is an efficient relation that can acceleratee the convergence rate of the series (Table 10).48 The Shanks transformation Sh(Un) of the sequence Un is defined as,
Equations
|
Approximate analytical solution
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Table 10 Solutions of some other nonlinear equations using homotopy perturbation method
(107)
Further speed-up may be achieved by successive implementation of the Shanks transformation, that is
,
,
etc.