Computation of Bernoulli and Bessel Differential Equation

Post on 09-Dec-2021

6 views 0 download

Transcript of Computation of Bernoulli and Bessel Differential Equation

Β© 2018 IJRAR December 2018, Volume 5, Issue 4 www.ijrar.org (E-ISSN 2348-1269, P- ISSN 2349-5138)

IJRAR1BIP073 International Journal of Research and Analytical Reviews (IJRAR) www.ijrar.org 405

Computation of Bernoulli and Bessel Differential

Equation A.K. Awasthi1, Arun Kumar Garov2, Sanjeev Kumar3

Professor, Department of Mathematics, Lovely Professional University, Punjab, India1

Research Scholar, Department of Mathematics, Lovely Professional University, Punjab, India2,3

Abstract

This paper is comprising of solution of ordinary differential equations using MATHEMATICA software. Some special

ordinary differential equations namely Bernoulli differential equation and Bessel differentia equation are solved by

MATHEMATICA software.

1.1 Basics of Ordinary Differential Equations

An ordinary differential equation (frequently called an "ODE," "diff eq," or "diffy Q") is an equality involving a

function and its derivatives An ODE of order n is an equation of the form

𝐹(π‘₯, 𝑦, 𝑦 β€², … , 𝑦(𝑛)) = 0 (1)

Where y is a function of x and 𝑦 β€² is first derivative with respect to x, it can be written in the form

𝑦 β€² =𝑑𝑦

𝑑π‘₯

Similarly, 𝑦(𝑛) is the π‘›π‘‘β„Ž derivative with respect to x, it can be write as,

𝑦(𝑛) =𝑑𝑛𝑦

𝑑π‘₯𝑛

Non- homogeneous ordinary differential equations can be solved if the general solution to the homogenous version

is known, in which case the undetermined coefficients methods or variation of parameters can be used to find the

particular solution.

Β© 2018 IJRAR December 2018, Volume 5, Issue 4 www.ijrar.org (E-ISSN 2348-1269, P- ISSN 2349-5138)

IJRAR1BIP073 International Journal of Research and Analytical Reviews (IJRAR) www.ijrar.org 406

1.2 Basics of commands for solving Ordinary Differential Equations

ODE can be solved by Wolfram language commands in MATHEMATICA software. i.e.

DSolve [eqn, y, x]

For numerically used command i.e.

NDSolve [eqn, y, {x, xmin, xmax}]

1.3 Classification and background of nth-order Ordinary Differential Equations

n-order ODE is said to be linear and form of n- order ODE i.e.

π‘Žπ‘›(π‘₯)𝑦(𝑛) + π‘Žπ‘›βˆ’1(π‘₯)𝑦(π‘›βˆ’1) + β‹― + π‘Ž1(π‘₯)𝑦 β€² + π‘Ž0(π‘₯)𝑦 = 𝑄(π‘₯) (2)

where Q(x) = 0 is said to be homogeneous. Confusingly, an ODE of form

𝑦 β€² =𝑑𝑦

𝑑π‘₯

is also some-times called "homogeneous”.

In general, an nth-order ODE has n linearly independent solutions. Furthermore, any linear combination of linearly

independent function solutions is also a solution.

Simple theories exist for first- order (integrating factor) and second order (Sturm-Liouville theory) ordinary

differential equations, and arbitrary ODEs with linear constant coefficients can be solved when they are of certain

factorable forms. Integral transforms such as the Laplace transform can also be used to solve classes of linear

ODEs.

While there are many general techniques for analytically solving classes of ODEs, the only practical solution

technique for complicated equations is to use numerical methods (Milne 1970, Jeffreys and Jeffreys 1988). The

most popular of these is the Runge-Kutta method, but many others have been developed, including the collocation

method and Galerkin method. A vast amount of research and huge numbers of publications have been devoted to

the numerical solution of differential equations, both ordinary and partial (PDEs) as a result of their importance in

fields as diverse as physics, engineering, economics, and electronics.

The solutions to an ODE satisfy existence and uniqueness properties. These can be formally established by

Picard’s existence theorem for certain classes of ODEs. Let a system of first order ODE be given by

Β© 2018 IJRAR December 2018, Volume 5, Issue 4 www.ijrar.org (E-ISSN 2348-1269, P- ISSN 2349-5138)

IJRAR1BIP073 International Journal of Research and Analytical Reviews (IJRAR) www.ijrar.org 407

𝑑π‘₯𝑖

𝑑𝑑= 𝑓𝑖(π‘₯1, π‘₯2, … , π‘₯𝑛, 𝑑) (3)

For i=1,2,3,…,n and let the functions 𝑓𝑖(π‘₯1, π‘₯2, … , π‘₯𝑛, 𝑑), where i=1,2,3,…,n, all be defined in a domain D of the

(n+1)-dimensional space of the variables π‘₯1, π‘₯2, … , π‘₯𝑛, 𝑑. Let these functions be continuous in D and have

continuous first Partial derivatives πœ•π‘“π‘–

πœ•π‘₯𝑗 for i=1,2,3,…,n and j=1,2,3,…,n in D. Let(π‘₯1

0, π‘₯20, π‘₯3

0 … , π‘₯𝑛0) be in D. Then

there exists a solution of (3) given by

π‘₯1 = π‘₯1(𝑑), π‘₯2 = π‘₯2(𝑑), … , π‘₯𝑛 = π‘₯𝑛(𝑑) (4)

For 𝑑0 βˆ’ 𝛿 < 𝑑 < 𝑑0 + 𝛿 (where > 0 ) satisfying the initial conditions

π‘₯1(𝑑0) = π‘₯10, π‘₯2(𝑑0) = π‘₯2

0, … , π‘₯𝑛(𝑑0) = π‘₯𝑛0 (5)

Furthermore, the solution is unique, so that if

π‘₯1 = π‘₯1βˆ—(𝑑), π‘₯2 = π‘₯2

βˆ—(𝑑), … , π‘₯𝑛 = π‘₯π‘›βˆ— (𝑑) (6)

is a second solution of (1) for 𝑑0 βˆ’ 𝛿 < 𝑑 < 𝑑0 + 𝛿 satisfying (1), then for . Because

every nth-order ODE can be expressed as a system of n first- order ODE, this theorem also applies to the single nth-

order ODE.

1.4 Basics of exact first order Ordinary Differential Equations

An exact first order ODE is one of the form

(7)

Where,

(8)

An equation of the form (1) with

(9)

is said to be non exact. If

Β© 2018 IJRAR December 2018, Volume 5, Issue 4 www.ijrar.org (E-ISSN 2348-1269, P- ISSN 2349-5138)

IJRAR1BIP073 International Journal of Research and Analytical Reviews (IJRAR) www.ijrar.org 408

(10)

in (1), it has an x -dependent integrating factor. If

(11)

in (1), it has an x y -dependent integrating factor. If

(12)

in (1), it has a y-dependent integrating factor.

Other special first order types include cross multiple equations

Name of the first order differential equations Equations

Homogeneous equations

Linear equations

Separable equations

1.5 Basics of Special classes of Second Ordinary Differential Equations

Special classes of the second order differential equations include,

(13)

If x is missing then,

(14)

(If y is missing). A second-order linear homogeneous ODE

(15)

for which can be transformed to one with constant coefficients.i.e.

Β© 2018 IJRAR December 2018, Volume 5, Issue 4 www.ijrar.org (E-ISSN 2348-1269, P- ISSN 2349-5138)

IJRAR1BIP073 International Journal of Research and Analytical Reviews (IJRAR) www.ijrar.org 409

(16)

The undamped equation of simple harmonic motion is

(17)

which becomes

(18)

when damped, and

(19)

when both forced and damped.

Form of the Systems with constant coefficient. i.e.

(20)

The following are examples of important ordinary differential equations which commonly arise in problems of

mathematical physics.

1. 6 Bernoulli differential equation and Solution by MATHEMATICA Software

Form of the Bernoulli differential equation. i.e.

(21)

Bernoulli differential equation can solve by MATHEMATICA Software.

Programming for the solution of Bernoulli differential equation.

Β© 2018 IJRAR December 2018, Volume 5, Issue 4 www.ijrar.org (E-ISSN 2348-1269, P- ISSN 2349-5138)

IJRAR1BIP073 International Journal of Research and Analytical Reviews (IJRAR) www.ijrar.org 410

Programming for Bernoulli differential equation

Cell["Bernoulli", "Section"],

Cell[CellGroupData[{

Cell[BoxData[

RowBox[{

RowBox[{"(",

RowBox[{"soln", "=",

RowBox[{"DSolve", "[",

RowBox[{

RowBox[{"ode", "=",

RowBox[{

RowBox[{

RowBox[{

RowBox[{"y", "'"}], "[", "x", "]"}], "+",

RowBox[{

RowBox[{"p", "[", "x", "]"}],

RowBox[{"y", "[", "x", "]"}]}]}], "\[Equal]",

RowBox[{

RowBox[{"q", "[", "x", "]"}],

RowBox[{

RowBox[{"y", "[", "x", "]"}], "^", "n"}]}]}]}], ",",

RowBox[{"y", "[", "x", "]"}], ",", "x"}], "]"}]}], ")"}], "//",

"Timing"}]], "Input"],

Cell[BoxData[

RowBox[{

RowBox[{"Solve", "::", "\<\"ifun\"\>"}], ":",

" ", "\<\"Inverse functions are being used by \\!\\(Solve\\), so some \

solutions may not be found; use Reduce for complete solution information. \\!\

\\(\\*ButtonBox[\\\"More\[Ellipsis]\\\", \

ButtonStyle->\\\"RefGuideLinkText\\\", ButtonFrame->None, \

ButtonData:>\\\"Solve::ifun\\\"]\\)\"\>"}]], "Message"],

Β© 2018 IJRAR December 2018, Volume 5, Issue 4 www.ijrar.org (E-ISSN 2348-1269, P- ISSN 2349-5138)

IJRAR1BIP073 International Journal of Research and Analytical Reviews (IJRAR) www.ijrar.org 411

Cell[BoxData[

RowBox[{"{",

RowBox[{

RowBox[{"0.23225600000000668`", " ", "Second"}], ",",

RowBox[{"{",

RowBox[{"{",

RowBox[{

RowBox[{"y", "[", "x", "]"}], "\[Rule]",

SuperscriptBox[

RowBox[{"(",

RowBox[{

RowBox[{

SuperscriptBox["\[ExponentialE]",

RowBox[{

RowBox[{"(",

RowBox[{"1", "-", "n"}], ")"}], " ",

RowBox[{

SubsuperscriptBox["\[Integral]", "1", "x"],

RowBox[{

RowBox[{"-",

RowBox[{"p", "[", "K$63157", "]"}]}],

RowBox[{"\[DifferentialD]", "K$63157"}]}]}]}]], " ",

RowBox[{"C", "[", "1", "]"}]}], "+",

RowBox[{

SuperscriptBox["\[ExponentialE]",

RowBox[{

RowBox[{"(",

RowBox[{"1", "-", "n"}], ")"}], " ",

RowBox[{

SubsuperscriptBox["\[Integral]", "1", "x"],

RowBox[{

RowBox[{"-",

RowBox[{"p", "[", "K$63157", "]"}]}],

RowBox[{"\[DifferentialD]", "K$63157"}]}]}]}]], " ",

RowBox[{

Β© 2018 IJRAR December 2018, Volume 5, Issue 4 www.ijrar.org (E-ISSN 2348-1269, P- ISSN 2349-5138)

IJRAR1BIP073 International Journal of Research and Analytical Reviews (IJRAR) www.ijrar.org 412

SubsuperscriptBox["\[Integral]", "1", "x"],

RowBox[{

RowBox[{

SuperscriptBox["\[ExponentialE]",

RowBox[{

RowBox[{"-",

RowBox[{"(",

RowBox[{"1", "-", "n"}], ")"}]}], " ",

RowBox[{

SubsuperscriptBox["\[Integral]", "1", "K$63173"],

RowBox[{

RowBox[{"-",

RowBox[{"p", "[", "K$63157", "]"}]}],

RowBox[{"\[DifferentialD]", "K$63157"}]}]}]}]], " ",

RowBox[{"q", "[", "K$63173", "]"}]}],

RowBox[{"\[DifferentialD]", "K$63173"}]}]}]}], "-",

RowBox[{

SuperscriptBox["\[ExponentialE]",

RowBox[{

RowBox[{"(",

RowBox[{"1", "-", "n"}], ")"}], " ",

RowBox[{

SubsuperscriptBox["\[Integral]", "1", "x"],

RowBox[{

RowBox[{"-",

RowBox[{"p", "[", "K$63157", "]"}]}],

RowBox[{"\[DifferentialD]", "K$63157"}]}]}]}]], " ", "n", " ",

RowBox[{

SubsuperscriptBox["\[Integral]", "1", "x"],

RowBox[{

RowBox[{

SuperscriptBox["\[ExponentialE]",

RowBox[{

RowBox[{"-",

RowBox[{"(",

Β© 2018 IJRAR December 2018, Volume 5, Issue 4 www.ijrar.org (E-ISSN 2348-1269, P- ISSN 2349-5138)

IJRAR1BIP073 International Journal of Research and Analytical Reviews (IJRAR) www.ijrar.org 413

RowBox[{"1", "-", "n"}], ")"}]}], " ",

RowBox[{

SubsuperscriptBox["\[Integral]", "1", "K$63173"],

RowBox[{

RowBox[{"-",

RowBox[{"p", "[", "K$63157", "]"}]}],

RowBox[{"\[DifferentialD]", "K$63157"}]}]}]}]], " ",

RowBox[{"q", "[", "K$63173", "]"}]}],

RowBox[{"\[DifferentialD]", "K$63173"}]}]}]}]}], ")"}],

FractionBox["1",

RowBox[{"1", "-", "n"}]]]}], "}"}], "}"}]}], "}"}]], "Output"]

}, Open ]],

Cell[CellGroupData[{

Cell[BoxData[

RowBox[{

RowBox[{"ode", "/.",

RowBox[{"y", "\[Rule]",

RowBox[{"Function", "[",

RowBox[{"x", ",",

RowBox[{"Evaluate", "[",

RowBox[{"soln", "[",

RowBox[{"[",

RowBox[{"1", ",", "1", ",", "2"}], "]"}], "]"}], "]"}]}], "]"}]}]}],

"//", "FullSimplify"}]], "Input"],

Cell[BoxData["True"], "Output"]

}, Open ]]

}, Open ]]

1.7 Bessel differential equation and Solution by MATHEMATICA Software

Form of the Bessel differential equation

Β© 2018 IJRAR December 2018, Volume 5, Issue 4 www.ijrar.org (E-ISSN 2348-1269, P- ISSN 2349-5138)

IJRAR1BIP073 International Journal of Research and Analytical Reviews (IJRAR) www.ijrar.org 414

(22)

(23)

Bessel differential equation can solve by MATHEMATICA Software.

Programming for the solution of Bessel differential equation.

Programming for Bessel differential equation

Cell["Bessel", "Section"],

Cell[CellGroupData[{

Cell[BoxData[

RowBox[{

RowBox[{"(",

RowBox[{"soln", "=",

RowBox[{"DSolve", "[",

RowBox[{

RowBox[{"ode", "=",

RowBox[{

RowBox[{

RowBox[{

RowBox[{"x", "^", "2"}], " ",

RowBox[{

RowBox[{"y", "''"}], "[", "x", "]"}]}], "+",

RowBox[{"x", " ",

RowBox[{

RowBox[{"y", "'"}], "[", "x", "]"}]}], "+",

Β© 2018 IJRAR December 2018, Volume 5, Issue 4 www.ijrar.org (E-ISSN 2348-1269, P- ISSN 2349-5138)

IJRAR1BIP073 International Journal of Research and Analytical Reviews (IJRAR) www.ijrar.org 415

RowBox[{

RowBox[{"(",

RowBox[{

RowBox[{

RowBox[{"\[Lambda]", "^", "2"}], " ",

RowBox[{"x", "^", "2"}]}], "-",

RowBox[{"n", "^", "2"}]}], ")"}],

RowBox[{"y", "[", "x", "]"}]}]}], "\[Equal]", "0"}]}], ",",

RowBox[{"y", "[", "x", "]"}], ",", "x"}], "]"}]}], ")"}], "//",

"Timing"}]], "Input"],

Cell[BoxData[

RowBox[{"{",

RowBox[{

RowBox[{"0.03602300000000014`", " ", "Second"}], ",",

RowBox[{"{",

RowBox[{"{",

RowBox[{

RowBox[{"y", "[", "x", "]"}], "\[Rule]",

RowBox[{

RowBox[{

RowBox[{"BesselJ", "[",

RowBox[{"n", ",",

RowBox[{"x", " ", "\[Lambda]"}]}], "]"}], " ",

Β© 2018 IJRAR December 2018, Volume 5, Issue 4 www.ijrar.org (E-ISSN 2348-1269, P- ISSN 2349-5138)

IJRAR1BIP073 International Journal of Research and Analytical Reviews (IJRAR) www.ijrar.org 416

RowBox[{"C", "[", "1", "]"}]}], "+",

RowBox[{

RowBox[{"BesselY", "[",

RowBox[{"n", ",",

RowBox[{"x", " ", "\[Lambda]"}]}], "]"}], " ",

RowBox[{"C", "[", "2", "]"}]}]}]}], "}"}], "}"}]}], "}"}]], "Output"]

}, Open ]],

Cell[CellGroupData[{

Cell[BoxData[

RowBox[{

RowBox[{"ode", "/.",

RowBox[{"y", "\[Rule]",

RowBox[{"Function", "[",

RowBox[{"x", ",",

RowBox[{"Evaluate", "[",

RowBox[{"soln", "[",

RowBox[{"[",

RowBox[{"1", ",", "1", ",", "2"}], "]"}], "]"}], "]"}]}], "]"}]}]}],

"//", "FullSimplify"}]], "Input"],

Cell[BoxData["True"], "Output"]

}, Open ]]

}, Open ]]

1.7 Conclusion

Β© 2018 IJRAR December 2018, Volume 5, Issue 4 www.ijrar.org (E-ISSN 2348-1269, P- ISSN 2349-5138)

IJRAR1BIP073 International Journal of Research and Analytical Reviews (IJRAR) www.ijrar.org 417

Some special ordinary differential equations Bernoulli differential equation and Bessel differential equation can be

solve by above Programming through MATHEMATICA software.

1.8 References

[1] A.K.Awasthi,Solution of the ordinary differential equations using Mathematica software ,ToI Press; 2019.p.279 –329.

[2] A.K.Awasthi,Solution of the Anger & Baer ordinary differential equations using Mathematica software, ToI Press;

2019.p.91 –113.