Introduction

Nonlinear systems have been widely used in many areas of physics and engineering and are of significant importance in mechanical and structural dynamics for the comprehensive understanding and accurate prediction of motion and deformation. In order to develop engineering and applied science, it is necessary to study analytical and numerical methods for solving all available problems. Various methods for solution of such equations have been proposed. Surveys of the literatrue with numerous references and useful bibliographies have been given by Nayfeh [1], Mickens [2], Jordan and Smith [3], and more recently by He [4].

Most of nonlinear differential equations have no explicit solutions which are expressible in finite terms; even if a solution can be found, it is often too complicated to display clearly the principal featrues of the solution. Due to such difficulties, one of the most time-consuming and difficult tasks appear among the researchers of nonlinear problems.

With the rapid development of nonlinear science, there appears an ever-increasing interest of scientists in the analytical asymptotic techniques for nonlinear problems, and several analytical approximation methods have been developed to solve linear and nonlinear ordinary and partial differential equations.

Some of these techniques include perturbation method (PM) [5, 6], variational iteration method [7, 8], homotopy perturbation method (HPM) [912], energy balance method [1317], variational approach method [1820], parameter-expansion method [2124], amplitude-frequency formulation [2527], iteration perturbation method [28, 29], etc. Among these methods, the PM and HPM are considered to be two of the powerful methods capable of handling strongly nonlinear behaviors and can converge to an accurate solution for smooth nonlinear systems.

The application of HPM in linear and nonlinear problems has been devoted by scientists and engineers, because this method continuously deforms the under study problem which is difficult into a simple problem which is easy to solve. The HPM was first proposed by Ji-Huan He in 1999 [9] for solving the linear and nonlinear differential and integral equations. The method is a coupling of the traditional perturbation method and homotopy in topology. This method, which does not require a small parameter in an equation, has a significant advantage in providing an analytical approximate solution to a wide range of nonlinear problems in applied sciences. Recent development of the HPM is presented by Ji-Huan He in 2008 [10]. Elementary introduction and interpretation of the method are given in the publications [912].

One of the responsibilities of the structural design engineer is to devise arrangements and proportions of members that can withstand economically and efficiently for the conditions anticipated during the lifetime of a structrue. A central aspect to this structrue is the calculation of the beam deformation, which has very wide applications in structural engineering. The nonlinear differential equation of beam deformation under static load is given in the following form [30]:

d 2 d x 2 y x M x EI 1 + d dx y x 2 3 2 = 0.
(1)

In Equation 1, M is the bending moment, E is the elastic modulus, and I is the second moment of area that must be calculated with respect to axis perpendicular to the applied loading. Note that the bending moment changes for different conditions of supporting and loading.

The finite difference method by Taylor [31], which is one of the known numerical methods in civil engineering-structrue, and civil engineers frequently may be consulted for analyzing the engineering structrues, such as beams, columns, and plates. For analyzing beams using FDM and determination of maximum beam deflection, we need to eliminate the nonlinear part of differential equation and change nonlinear differential equation to linear one. We mention that this change reduces the accuracy of numerical solution results. In small structrues this error is negligible, but in large structrues the error rate will increase.

In this paper, we introduce HPM to civil engineers for analyzing the engineering structrues, such as beams, column, and plates. The main target of this paper is to solve the nonlinear differential equation of beam elastic deformation with different conditions of supporting and loading and then to determine the maximum beam deflection by applying the HPM and to compare the approximate results with FDM and exact solution.

The description of homotopy perturbation method

To illustrate the basic ideas of this method, we consider the following equation [9],

A u f r = 0 , rєΩ
(2)

with the following boundary condition:

B u , u n = 0 , rєΩ
(3)

where A is a general differential operator, B a boundary operator, f(r) a known analytical function, and Γ is the boundary of the domain Ω. A can be divided into two parts which are L and N, where L is linear and N is nonlinear. Hence we can write Equation 2 in following form:

L u N u f r = 0.
(4)

The homotopy perturbation structrue is given as follows:

H v , p = 1 p L v L u 0 + p A v f r = 0 ,
(5)

where

v r , p : Ω × 0 , 1 R
(6)

In Equation 5, [0, 1] is an embedding parameter and u0 is the first approximation that satisfies the boundary condition. We can assume that the solution of Equation 5 can be written as a power series in p, in the following form:

v = v 0 + p v 1 + p 2 v 2 + p 3 v 3 +
(7)

And the best approximation for solution is

v = lim p 1 v = v 0 + v 1 + v 2 + v 3 +
(8)

The application of homotopy perturbation method for determination of maximum beam deflection

Beam with two fixed ends, under concentrated load at the middle of span

The nonlinear differential equation of beam deformation with two fixed ends, under concentrated load at the middle of span is in the following form (Figure 1) [30]:

d 2 d x 2 y x F 4 x L 8 EI 1 + d dx y x 2 3 2 = 0
(9)

with the following boundary conditions:

y 0 = 0 , d dx y 0 = 0.
(10)
Figure 1
figure 1

Beam with two fixed ends, under concentrated load at the middle of span.

To solve Equation 9 by HPM, first we change the Equation 9 to the following form:

d 2 d x 2 y x F 4 x L 8 EI 1 + 3 2 d dx y x 2 = 0 ,
(11)

To solve Equation 11 by HPM, we consider the following process after separating the linear and nonlinear parts of the equation. A homotopy can be constructed in the following form:

H y , p = 1 p d 2 d x 2 y x F 4 x L 8 EI + p d 2 d x 2 y x F 4 x L 8 EI · + 1 3 2 d dx y x 2 = 0.
(12)

We can assume that the solution of Equation 12 can be written as a power series in p, in the following form:

y x = y 0 x + p y 1 x + p 2 y 2 x + p 3 y 3 x + ....
(13)

By substituting Equation 13 into Equation 12, we have

H ( y , p ) = ( 1 p ) d 2 d x 2 [ y 0 x + p y 1 x + p 2 y 2 x + p 3 y 3 x v ] F 4 x L 8 EI + p d 2 d x 2 y 0 x + p y 1 x + p 2 y 2 x + p 3 y 3 x F 4 x L 8 EI { 1 + 3 2 [ d dx ( y 0 x + p y 1 x + p 2 y 2 x + p 3 y 3 x ) ] 2 = 0
(14)

After expansion and rearranging based on coefficient of p- term, we obtain the following results:

p 0 : d 2 d x 2 y 0 x + Fx 2 EI + FL 8 EI = 0 , y 0 0 = d dx y 0 0 = 0 ,
(15)
p 1 : d 2 d x 2 y 1 x + 3 Fx 4 EI + 3 FL 16 EI d dx y 0 x 2 = 0 , y 1 0 = d dx y 1 0 = 0 ,
(16)
p 2 : d 2 d x 2 y 2 x + 3 Fx 2 EI + 3 FL 8 EI d dx y 0 x d dx y 1 x = 0 , y 2 0 = d dx y 2 0 = 0 ,
(17)

By solving Equations 15, 16, and 17, we have

y 0 x = 1 12 · F x 3 EI + 1 16 · FL x 2 EI
(18)
y 1 ( x ) = 3 1 , 024 · F 3 EI 3 8 21 x 7 + 2 3 L x 6 2 5 L 2 x 5 + 1 12 L 3 x 4
(19)
y 2 x = 3 65 , 536 · F 5 EI 5 32 55 x 11 + 8 5 L x 10 16 9 L 2 x 9 + L 3 x 8 2 7 L 4 x 7 + 1 30 L 5 x 6
(20)

According to the HPM, we can conclude that

y x = lim p 1 y x = y 0 x + y 1 x + y 2 x + y 3 x + ....
(21)

Therefore, substituting the values of y0(x), y1(x), and y2(x) from Equations 18, 19, and 20 into Equation 21, we get

y ( x ) = 1 12 · F x 3 EI + 1 16 · FL x 2 EI + [ 3 1 , 024 · F 3 EI 3 · ( 8 21 x 7 + 2 3 L x 6 2 5 L 2 x 5 + 1 12 L 3 x 4 ) ] + [ 3 65 , 536 · F 5 EI 5 ( 32 55 x 11 + 8 5 L x 10 16 9 L 2 x 9 + L 3 x 8 2 7 L 4 x 7 + 1 30 L 5 x 6 ) ]
(22)

In the mechanics of materials for beam with two fixed ends, under concentrated load at the middle of span, the deformation is computed by following formula [30]:

y e xact x = F / 48 EI 3 L x 2 4 x 3 · .
(23)

Note that the Equation 23 was determined by using force method in the mechanics of materials [30].

The results of comparison between HPM with formula in mechanics of materials for beam with two fixed ends and under concentrated load at the middle of span are given in Tables 1 and 2.

Table 1 Comparison of HPM with formula in mechanics of materials for L = 1.00 m , EI = 500 N m 2 , F = 100 N
Table 2 Comparison of HPM with formula in mechanics of materials for L = 3.00 m , EI = 500 N m 2 , F = 100 N

Beam with two fixed ends, under linear distributed load

The nonlinear differential equation of beam deformation with two fixed ends, under linear distributed load is in the following form (Figure 2) [30],

d 2 d x 2 y x W 6 Lx L 2 6 x 2 12 EI 1 + d dx y x 2 3 2 = 0 ,
(24)

with the following boundary conditions:

y 0 = 0 , d dx y 0 = 0.
(25)
Figure 2
figure 2

Beam with two fixed ends, under linear distributed load.

To solve Equation 24 by HPM, first we change Equation 24 to the following form:

d 2 d x 2 y x W ( 6 Lx L 2 6 x 2 12 EI 1 + 3 2 d dx y x 2 = 0
(26)

Now, we use HPM to solve Equation 26. We consider the following process after separating the linear and nonlinear parts of the equation. A homotopy can be constructed in the following form:

H ( y , p ) = ( 1 p ) d 2 d x 2 y x W 6 Lx L 2 6 x 2 12 EI + p { d 2 d x 2 y x W 6 Lx L 2 6 x 2 12 EI · 1 + 3 2 d dx y x 2 } = 0
(27)

We can assume that the solution of Equation 27 can be written as a power series in p, in the following form:

y x = y 0 x + p y 1 x + p 2 y 2 x + p 3 y 3 x + n Ä
(28)

Substituting Equation 28 into Equation 27 leads to

H ( y , p ) = ( 1 p ) [ d 2 d x 2 ( y 0 x + p y 1 x + p 2 y 2 x + p 3 y 3 x v ) W 6 Lx L 2 6 x 2 12 EI ] + p d 2 d x 2 y 0 x + p y 1 x + p 2 y 2 x + p 3 y 3 x W 6 Lx L 2 6 x 2 12 EI { 1 + 3 2 [ d dx ( y 0 x + p y 1 x + p 2 y 2 x + p 3 y 3 x ) ] 2 } = 0
(29)

After expansion and rearranging based on coefficient of p- term, we obtain the following results:

p 0 : d 2 d x 2 y 0 x + w x 2 2 EI wLx 2 EI + w L 2 12 EI = 0 , y 0 0 = d dx y 0 0 = 0 ,
(30)
p 1 : d 2 d x 2 y 1 x + 3 w x 2 4 EI 3 wLx 4 EI + w L 2 8 EI d dx y 0 x 2 = 0 , y 1 0 = d dx y 1 0 = 0 ,
(31)
p 2 : d 2 d x 2 y 2 x + 3 w x 2 2 EI 3 wLx 2 EI + w L 2 4 EI d dx y 0 x d dx y 1 x = 0 , y 2 0 = d dx y 2 0 = 0 ,
(32)

By solving the Equations 30, 31, and 32, we come to

y 0 x = w 12 EI L x 3 + 1 2 L 2 x 2 + 1 2 x 4
(33)
y x = w 3 1 , 152 EI 3 4 15 x 10 4 3 L x 9 + 11 4 L 2 x 8 3 L 3 x 7 + 11 6 L 4 x 6 3 5 L 5 x 5 + 1 12 L 6 x 4
(34)
y 2 x = 5 w 5 663 , 552 EI 5 2 5 x 16 16 5 L x 15 + 80 7 L 2 x 14 24 L 3 x 13 + 197 6 L 4 x 12 153 5 L 5 x 11 + 197 10 L 6 x 10 26 3 L 7 x 9 + 5 2 L 8 x 8 3 7 L 9 x 7 + 1 30 L 10 x 6
(35)

According to the HPM, we can conclude that

y x = lim p 1 y x = y 0 x + y 1 x + y 2 x + y 3 x + ....
(36)

Therefore, substituting the values of y0(x), y1(x), and y2(x) from Equations 33, 34, and 35 into Equation 36, we obtain the following result:

y ( x ) = w 12 EI L x 3 + 1 2 L 2 x 2 + 1 2 x 4 + w 3 1 , 152 EI 3 4 15 x 10 4 3 L x 9 + 11 4 L 2 x 8 3 L 3 x 7 + 11 6 L 4 x 6 3 5 L 5 x 5 + 1 12 L 6 x 4 + 5 w 5 663 , 552 EI 5 2 5 x 16 16 5 L x 15 + 80 7 L 2 x 14 24 L 3 x 13 + 197 6 L 4 x 12 153 5 L 5 x 11 + 197 10 L 6 x 10 26 3 L 7 x 9 + 5 2 L 8 x 8 3 7 L 9 x 7 + 1 30 L 10 x 6
(37)

In the mechanics of materials for beam with two fixed ends, under linear distributed load, the deformation is computed by following formula [30]:

y exact x = w x 2 24 EI L x 2
(38)

Once more, we note that the Equation 38 was determined by using force method in the mechanics of materials [30].

The results of comparison between HPM with the formula in mechanics of materials for beam with two fixed ends, under linear distributed load, are given in Tables 3 and 4.

Table 3 Comparison of HPM with formula in mechanics of materials for L = 1.00 m , EI = 500 N m 2 , w = 100 N
Table 4 Comparison of HPM with formula in mechanics of materials for L = 3.00 m , EI = 500 N m 2 , w = 100 N

The application of finite difference method for the determination of maximum beam deflection

In this section, we consider beam with two fixed ends, under linear distributed load (Figure 3) [31].

Figure 3
figure 3

Beam with two fixed ends, under linear distributed load.

For the determination of maximum beam deflection with the FDM, we consider the linear differential equation in following form [31],

d 4 y d x 4 = w EI ,
(39)

with the following boundary conditions:

y 0 = 0 , d dx y 0 = 0.
(40)

Now writing Equation 39 in the finite difference form, we obtain [31]:

1 h 4 4 y i + 1 + 6 y i 4 y i 1 + y i 2 = w EI
(41)

where h is the interval. We divided the beam into six equal parts as we illustrated in Figure 3. Applying Equation 41 at each interior point 1 to 5, we get the following:

i = 1 y 3 4 y 2 + 6 y 1 4 y 0 + y 1 = w h 4 EI = k
(42)
i = 2 y 4 4 y 3 + 6 y 2 4 y 1 + y 0 = w h 4 EI = k
(43)
i = 3 y 5 4 y 4 + 6 y 3 4 y 2 + y 1 = w h 4 EI = k
(44)
i = 4 y 6 4 y 5 + 6 y 4 4 y 3 + y 2 = w h 4 EI = k
(45)
i = 5 y 7 4 y 6 + 6 y 5 4 y 4 + y 3 = w h 4 EI = k
(46)

Note the points labeled -1 and 7 lie outside the beam domain. These are called imaginary points. The values at these points can be determined judiciously. Now, applying the difference operator for boundary conditions (y0 = y6 = 0), we get the following:

dy dx = 1 2 h y i + 1 y i 1 = 0
(47)
i = 0 y 1 y 1 = 0 y 1 = y 1
(48)
i = 6 y 7 y 5 = 0 y 7 = y 5 ·
(49)

Also because of symmetry, we have

y 1 = y 5 , y 2 = y 4 ·
(50)

Using Equations 48 to 50 into Equations 42 to 46 in which the latter five equations reduce to the following three meaningful equations in y1, y2, and y3:

7 y 1 4 y 2 + y 3 = k
(51)
7 y 1 + 7 y 2 4 y 3 = k
(52)
2 y 1 8 y 2 + 6 y 3 = k .
(53)

Solving this system of equations leads to

y max = y 3 = 80 24 k = 80 24 · w h 4 EI
(54)

But h = l / 6, therefore, we get

y max = y 3 = 0.00257 w L 4 EI
(55)

The exact solution for this problem is [31]

y max = 1 384 · w L 4 EI
(56)

To illustrate the accuracy of the HPM, we present the comparison results of HPM with FDM and exact solution in Table 5.

Table 5 Results comparison of HPM with FDM and exact solution for the different L values

Conclusions

In this paper, HPM and FDM have been successfully applied for the determination of maximum beam deflection with specified loading and supporting conditions. Comparison of the results obtained by HPM and FDM with exact solution reveals that the HPM is more accurate and more stable and effective and can therefore be found widely applicable in civil-structrue engineering.