Methods of Solving Differential Equations
Shakhnoza Jumaeva shahnozafarhodovna79 @gmail. com National University of Uzbekistan
Abstract: A variety of physical processes, including heat conduction, wave propagation, fluid movement, and quantum physics, are fundamentally described by partial differential equations, or PDEs. Multiple variable functions and their partial derivatives are involved in these equations. Based on the number of independent variables, the type of boundary and initial conditions, and the nature of the equations (linear or nonlinear), PDEs can be categorized.
Keywords: PDE, ODE, Separation of Variables, Method of Characteristics, Transform Methods, FDM, FEM
When solving PDEs, it is common to need to identify a function that satisfies both the differential equation and the accompanying initial or boundary conditions. This can be difficult due to the complexities of these equations and the wide range of conceivable situations. There are two types of approaches for solving PDEs: analytical and numerical procedures. Although analytical techniques yield precise answers, they are frequently restricted to issues that are simpler and more idealized. Numerical methods, on the other hand, offer approximate solutions and are more flexible, making them suitable for complex, real-world problems.
PDEs are crucial in modeling systems across different scientific and engineering disciplines:
•Physics: Describing electromagnetic fields, quantum mechanics, and general relativity.
•Engineering: Modeling stress and strain in materials, fluid dynamics, and heat transfer.
•Biology: Representing processes like diffusion, population dynamics, and neural activity.
•Finance: Modeling options pricing and risk management in financial markets.
Given their importance, understanding and solving PDEs is a key skill in these fields. The methods for solving PDEs can be categorized into two main types: analytics and numerical methods.
Analytical Methods
Analytical methods aim to find exact solutions to PDEs. These methods leverage mathematical techniques to derive a closed-form solution that satisfies the PDE and the
initial or boundary conditions. Some commonly used analytical methods are Separation of Variables, Method of Characteristics, Transform Methods.
I. Separation of Variables
Separation of Variables involves assuming that the solution can be written as a product of functions, each depending on a single variable. This method is particularly effective for linear PDEs with homogeneous boundary conditions. The primary advantage of this method is its simplicity and direct approach, making it useful for problems with well-defined boundary conditions. For instance, we consider this mixed problem of one-dimensional heat equation:
u, = au
t x
< u(x,0) = f (x) u (0, t ) = u ( L, t ) = 0
Used steps to find solution of above problem ([1]-[3]) include:
1. Assume a solution of the form:
u ( x, t ) = X ( x )T (t ).
2. Substitute into the heat equation:
X ( x )T '(t ) = a X "( x )T (t ).
3. Separate variables:
t '(t) _ X "(x)_ ^
aT (t) X (x) '
4. Solve the spatial part:
X " ( x ) + AX ( x ) = 0
with boundary conditions X(0) = X(L) = 0 . The solutions are:
f r>Trv\ f nn ^
nnx
X (x) = sin -
" I L J
5. Solve the temporal part:
T '(t ) + alnT (t ) = 0.
The solutions are:
-af "121
Tn (t) = * 1 L J
6. Combine the solutions:
A =
L
u (x, t) = ^ Bn sin
(
nn x
L
e
nn '' -a| — I t
D
7. Determine the coefficients n using the initial condition:
CO
n=1
u(x,0) = f (x) = ^ Bn sin
( nnx ^
n= 1
2 L fnnx ^
L
B.- = -f f (x )sin L f
n
V
dx.
L
n. Method of Characteristics.
The Method of Characteristics transforms a PDE into a set of ordinary differential equations (ODEs) along characteristic curves. This method is particularly useful for first-order PDEs, allowing us to reduce the problem to solving simpler ODEs. The primary advantage is its applicability to non-linear PDEs and its ability to provide insights into the behavior of solutions along specific paths or curves in the domain. For example, we consider this transport equation with initial condition:
u + cu = 0
t x
u ( X ,0) = g ( x )
Steps applied to solve the problem described above include:
1. Identify the characteristic equations:
dx du
— = c, — = 0.
dt dt
2. Solve the characteristic equations:
X = ct + X 0
Since u is constant along characteristics:
u ( X, t) = g ( X0).
3. Express X0 in terms of X and t : X0 = X - ct. Thus, the solution is:
u(X, t) = g(X - ct).
ID. Transform Methods
Transform methods convert PDEs into simpler forms by transforming the variables. The Fourier Transform and Laplace Transform are commonly used to convert PDEs into algebraic equations or ordinary differential equations in the transform domain. These methods are particularly useful for linear PDEs and problems with infinite or semi-infinite domains. The primary advantage is their ability to handle complex boundary conditions and transform convoluted differential operators into simpler multiplication operators. For example, we consider the following heat equation in an infinite domain:
u, = au
t XX
u (X ,0) = f (X)
Steps used to solve this problem are:
1. Apply the Fourier Transform ([1]-[3]) to both sides:
2 ~
u = -ato u.
Jj
2. Solve the resulting ODE:
U(m, t) = f (m)e am .
3. Apply the Inverse Fourier Transform ([]):
1 "
z f ^ / \ -am t imx 7
u (x, t) =- I j (m)e e d m.
2n J
-rn
Numerical Methods
Numerical methods are essential for solving PDEs when analytical solutions are difficult or impossible to obtain. These methods approximate the solution by discretizing the domain and solving the resulting system of equations. Common numerical methods include the Finite Difference Method (FDM), Finite Element Method (FEM), and Finite Volume Method (FVM).
I. Finite Difference Method (FDM)
The Finite Difference Method approximates derivatives by finite differences and solves the resulting algebraic equations. It involves discretizing the continuous domain into a grid and replacing the continuous derivatives with discrete approximations. This method is straightforward and easy to implement, especially for simple geometries and uniform grids. The primary advantage is its simplicity and ease of implementation for time-dependent problems. For example, heat equation using explicit scheme.
Let's consider the heat equation Ut ~ aUxx with boundary condition u(0,t) = 0,
u(L,t) = 0 , and initial condition u(x,0) = j(x).
Steps used in FDM ([4]) include:
1. Discretize the domain:
x = iAx for i = 0,1,2,...,N
tn = n A t
2. Approximate derivatives using finite differences:
n+1 n n — n n
U - U U. , - 2 U. + U. ,
i i i+1 i i -1
U "
^ ' xx , J
At (Ax)
3. Substitute into the heat equation:
n + 1 n n r\ n n
U - U U. , - 2U + U. ,
i i i+1 i i -1 -= a-
At (Ax)2
4. Solve for
n+1
u
n +1 n aA t i n _ n n
U = U +
(A x) aA t
in ~n n \
( u , - 2 u + u , )
V i+1 i i -1 /
r =
Let (Ax) :
2
n + 1 n in n n
u = u + r ( u
(n r* n n \
u . - 2 u + u . )
i +1 i i - 1 /
5. Apply initial and boundary conditions:
u0 = f (x.), u" = 0, u" = 0.
i J v i J? 0 ' N
n+1
6. Iterate over time steps. Update u' for each i and n using the scheme. Suppose a = 1 L = 1, and we discretize with Ax = 01 va A * = 0 005. The initial
condition is u (x,0) = sin(nx). Then initialization is
0 1 X 0.005
u = sin (nx ), r =-= 0.5.
' ( J (0.1)2
We iterate over time steps:
n + 1 n ^ - / n - n n \
u = u + 0.5 ( u, - 2 u. + u ,).
1 i \ i+1 i i—1 /
By iterating this process, we numerically solve the heat equation. II. Finite Element Method (FEM)
The Finite Element Method divides the domain into smaller subdomains (elements) and uses piecewise polynomial functions to approximate the solution. It involves formulating the PDE as a variational problem and approximating the solution using basis functions defined over the elements. The primary advantage of FEM is its flexibility in handling complex geometries and boundary conditions. It is widely used in engineering applications for its robustness and accuracy. For instance, we consider Poisson's equation -A u = f
in a domain Q with boundary condition u = 0 on . Steps to find solution with FEM ([5]) are:
1. Formulate the weak form. Multiply by a test function v and integrate:
i V u -V v d Q = f fv d Q Jq JQ .
2. Discretize the domain. Divide Q into finite elements and approximate u and v by piecewise linear functions.
3. Assemble the system. Form the stiffness matrix K and load vector F from the integrals.
4. Solve the linear system:
KU = F , where U is the vector of nodal values of u .
For a simple 1D example on [0,1], divide the interval into N elements with nodes
xi = i Ax . The weak form will be
r1 r1
I u' v' dx = I fvdx J 0 J 0
Then we use linear basis functions ^ such that ^ (Xj) SiJ. After we find stiffness matrix and load vector
K j = J WAx, F = J f 4t dx
The we solve the system KU = F . By solving this system, we obtain the
approximate solution U (x).
Conclusion
Solving IVPs and BVPs for PDEs involves a variety of methods, each suitable for different types of problems. Analytical methods like Separation of Variables and the Method of Characteristics are powerful for certain classes of PDEs, while numerical methods like the Finite Difference Method and Finite Element Method provide flexibility for more complex or irregular domains. Understanding these methods and their applications is crucial for effectively tackling PDEs in various scientific and engineering fields.
References
1. Walter A. Strauss, Partial Differential Equations: An Introduction(2nd ed.), Wiley, 2007.
2. Lawrence C. Evans, Partial Differential Equations, American Mathematical Society, 2010.
3. Claes Johnson, Numerical Solution of Partial Differential Equations by the Finite Element Method, Dover Publications, 1987.
4. Randall J. LeVeque, Finite Difference Methods for Ordinary and Partial Differential Equations, SIAM, 2007.
5. Steven C. Chapra and Raymond P. Canale, Numerical Methods for Engineers, McGraw-Hill Education, 2015.
6. Daryl L. Logan, A First Course in the Finite Element Method, Cengage Learning, 2016.
7. Kuchkorov E.I, Jumaeva S.F, A one-dimensional fractional diffusion equation with discontinuous diffusion coefficient, Mathematics, Mechanics and Intellectual Technologies Tashkent, 2023.
8. Kuchkorov E., Jumaeva Sh. Mixed-type problem for the time-fractional diffusion equation with a discontinuous coefficient, Differensial tenglamalarning zamonaviy muammolari va ularning tatbiqlari