An efficient algorithm to solve damped forced oscillator problems by Bernoulli operational matrix of integration

An asymptotic perturbation solution for a linear oscillator of free damped vibrations in fractal medium described by local fractional derivatives was obtained in Yang and Srivastava (Commun Nonlinear Sci Numer Simul 29(1–3):499–504, 2015). In this paper, we obtain the numerical solution of damped forced oscillator problems by employing the operational matrix of integration of Bernoulli orthonormal polynomials. The operational matrix of integration is determined with the help of the integral operator on Bernoulli orthonormal polynomials. Numerical examples of two different problems of spring are given to delineate the performance and perfection of this approach and compared the results with the exact solution.

Apostol-Euler and Apostol-Genocchi polynomials and He et al. [8] investigated Higher-Order Convolutions for Apostol-Bernoulli, Apostol-Euler and Apostol-Genocchi Polynomials. Very recently, Srivastava et al. [17,19] obtained some new generalizations and applications of the Apostol-Bernoulli, Apostol-Euler and Apostol-Genocchi polynomials and a study on identities and relations involving the modified degenerate hermite-based Apostol-Bernoulli. Srivastava et al. [18] introduced the notions of modified degenerate Hermite-based Apostol-Bernoulli, the modified degenerate Hermite-based Apostol-Euler and the modified Hermite-based Apostol-Genocchi polynomials.
The classifications of oscillating systems are expressed in Thomsen [20] and Rama and Dukkipati [10]. The mechanism that outcomes in dissipation of the energy of an oscillator is named damping. In mechanical oscillator, the damping may be due to (a) viscous drag (b) friction and (c) structure. An oscillator to which a continuous excitation is allowed by some outside agency is called forced oscillator.
Assume a mass M involved to the end of a spring of stiffness constant. A rigid support attached on one end of the spring. Let the driven force acting on the system be F(t). At any instant of time, the system will work under the influence of following forces: (a) Restoring force, F 1 = −Sx , where x is the displacement of the mass from the equilibrium position, The negative sign in the first two above expressions shows that both the restoring and damping forces opposes the displacement. By Newton second law of motion yields An asymptotic perturbation solution for a linear oscillator of free damped vibrations in fractal medium described by local fractional derivatives was undertaken by Yang and Srivastava [23].
Motivated by the work of Yang and Srivastava [23], we investigated the numerical solutions of damped forced oscillator problems by operational matrix of integration on Bernoulli orthonormal polynomials. In fact, used the operational matrix of integration of the Bernoulli orthonormal polynomials to find the approximate solutions of damped forced oscillator and spring problems and compared these solutions with their exact solutions.

Bernoulli polynomials
The Bernoulli polynomials of nth degree are defined on the closed interval [0, 1] as where B k = B k (0) is the Bernoulli number for each k = 0, 1, . . . , n.
Leopold Kronecker expressed the Bernoulli number B n in the following form: (1) B n (x) =

Orthonormal Bernoulli polynomials
Using Gram-Schmidt process on Bernoulli polynomials B m (x) and normalizing them, a class of orthonormal Bernoulli polynomials of order m , denoted by w 0m , w 1m , . . . , w mm has been obtained [15]. The first ten Bernoulli orthonormal polynomials are given by j n , for n ≥ 0, n � = 1 and , and B n = 0, for all odd n ≥ 3.
x, A function g ∈ L 2 [0, 1] may be written as where c in = �g, w in � and , is the standard inner product on L 2 [0, 1].
If the series (7) is truncated at n = m , we get an approximation g of g as, where and

The operational matrix of integration
Integrating Bernoulli orthonormal polynomials given in Eq. (6) w.r.t. x from 0 to t can be written as Equation (11) can be written as where P m+1 is the tridiagonal operational matrix of integration of order (m + 1) × (m + 1) associated with orthonormal Bernoulli polynomials and is given as , for m ≥ 1.

Numerical examples
In this section, we obtain solutions (approximate) to two differential equations for damped motion and forced motion using operational matrix of integration of Bernoulli orthonormal polynomial and examine its capability and exactness. First, we discuss the differential equation for damped motion.
Example 1 Consider the basic differential equation for the damped motion where m is the mass of spring, a > 0 is the damping constant, k is the spring constant, and F(t) is any external impressed force that acts upon the mass [12].
Taking, m = w g = 16 32 = 1 2 , a = 2, k = 10 and F (t) = 5 cos 2t Eq. (14) becomes The initial conditions are The exact solution of this problem is  where I is a unit matrix of order 3 × 3.
Taking m = 2 and using Eq. (10) in Eq. (18), we have Substituting the values of P 3 and d T in Eq. (22) gives The approximate solution y a (t) is obtained by using Eqs. (10), (13) and (24) in Eq. (20) for m = 2 as   In order to choose suitable value of m, convergence study has been accomplished for different values of y(t) for t = 0.0, 0.1, to 1.0 and for m = 2, 3, 5, 7, and 9. The results of this study are presented in Table 1. It is observed that the value of the approximate convergence is nearing to the exact solution as we increase the value of m. Note that m is fixed at 9 as no further rectification or improvement was found. The calculations are worked out using Mathematica 7.0 by Wolfram. Now, we give the calculations for the absolute error calculated using the formula �y e − y a � and presented in Table 2.
Next, we give Fig. 1, which depicts the exact and approximate numerical solutions of Eq. (15). Table 1 illustrates that value of exact and approximate solution of Eq. (15) for different values of t and m .
The graphs of absolute errors for m = 2, 3, 5, 7 and 9 can be seen in the Fig. 2. (25) y a (t) = 0.0791343 + 1.27305 t − 1.45238 t 2 . In the following example, we shall discuss the approximate solution of the differential equation for forced motion using Bernoulli orthonormal polynomials compare the result with the exact solution of the equation. Taking m = 2 and using Eq. (10) in Eq. (29), we have The approximate solution y a (t) is obtained by using relations (10), (13) and (34)   (28) (33) The convergence study suitable value of m has been done for different values of y(t) for t = 0.0, 0.1, to 1.0 and for m = 2, 3, 5, 7, and 9. The outcome of this study are given in Table 3. It has been observed that the value of the approximate convergence is sufficiently near to the exact solution for the increasing value of m. Also,the value of m is fixed at 9 as no further improvement is found. The calculations are worked out using Mathematica 7.0 by Wolfram.  The calculations for the absolute error calculated using the formula �y e − y a � and presented in Table 4.   Let us now see the graphs of absolute errors for m = 2, 3, 5, 7 and 9 in the figures given below (Fig. 4):

Conclusions
Damped forced oscillatory differential equations have a very important role in physics, mathematics and engineering. Through this work, we use the operational matrix of integration of Bernoulli orthonormal polynomials to find approximate solutions of damped forced oscillator and spring problems. A simple procedure of forming the operational matrix of integration of the Bernoulli orthonormal polynomials is given. It is observed that the exact and approximate solutions of these problems are approximately coinciding. This method is more precise, easy to use and stable as shown in the given numerical examples.