## Introduction

The science of physics is built fundamentally upon differential equations. Many of the most useful differential equations appearing in physics are of partial differential equations, known as math physical equations, so that understanding the solutions that can arise and their interconnections has much to say about possible systems amenable to analyze physical problems.In mathematics, a partial differential equation (PDE) is a differential equation that contains unknown multivariable functions and their partial derivatives. PDEs are used to formulate problems involving functions of several variables, and are either solved by computers, or used to create a computer model. A special case is ordinary differential equations (ODEs), which deal with functions of a single variable and their derivatives.

PDEs can be used to describe a wide variety of phenomena such as sound, heat, diffusion, electrostatics, electrodynamics, fluid dynamics, elasticity, gravitation and quantum mechanics. These seemingly distinct physical phenomena can be formalised similarly in terms of PDEs. Just as ordinary differential equations often model one-dimensional dynamical systems, partial differential equations often model multidimensional systems.

Fractional differential equations can describe the dynamics of several complex and nonlocal systems with memory. They arise in many scientific and engineering areas such as physics, chemistry, biology, biophysics, economics, control theory, signal and image processing, etc. Particularly, nonlinear systems describing different phenomena can be modeled with fractional derivatives. Chaotic behavior has also been reported in some fractional models. There exist theoretical results related to existence and uniqueness of solutions to initial and boundary value problems with fractional differential equations.

## Differential equation

By default, the unknown function is y(x) and its initial value is y(0). An independent variable is x for ordinary differential equation. For a partial differential equation, the unknown function is y(t,x) and its two independent variables are x and t. For a system of equations, two unknown functions are x(t) and y(t) with an independent variable t.By default, the Caputo definition of fractional calculus is used by

**dsolve()**. If you want to use the Riemann defintion, use the Laplace transform solver**lasolve()**.

lasolve(y(-0.5,x)=1) give nonzero.

dsolve(y(-0.5,x)=1) give zero.there are 4 way to input derivative of y: y', y(1,x), ds(y,x), d(y(x))

there are 3 way to input second order derivative of y: y(2,x), ds(y,x,2), d(y(x),x,2)

there are 3 way to input the 0.5 order derivativeof y: y(0.5,x), ds(y,x,0.5), d(y(x),x,0.5)

there are 5 way to input the 0.5 order integral of y: integral(y,x,0.5), ints(y,x,0.5), y(-0.5,x), ds(y,x,-0.5), d(y(x),x,-0.5)

Input

**y(1,x) - 2y = 0**as first order differential equation

`dy/dx - 2y=0`### solve graphically

Some differential equations cannot be solved symbolly, but can be solved graphically by a plot function plot2D( ), or click the plot2D button. e.g.

ds(y,x) = sin(x)-cos(y)## Partial differential equation

### A first order differential time equation

e.g. a diffusion equation:

`(dy)/dt = (d^2y)/dx^2-dy/dx`

e.g. a spherical diffusion equation:

`(dy)/dt = (d^2y)/dx^2-1/x*dy/dx`

Input ds(y,t,1) = ds(y,x,2)-ds(y,x)-cos(x)-exp(t) as a first order partial differential time t in the left hand side of the equation,

`(dy)/dt = (d^2y)/dx^2-dy/dx-cos(t)-exp(x)`### A second order differential time equation,

e.g. a wave equation:

`(d^2y)/dt^2 = (d^2y)/dx^2-dy/dx-cos(x)`

Input ds(y,t,2) = ds(y,x,2)-ds(y,x)-cos(x)-exp(t) as second order partial differential time t in the left hand side of the equation,

`(d^2y)/dt^2 = (d^2y)/dx^2-dy/dx-cos(t)-exp(x)`## Integral equation

Integral equation is equation with integral. Input

integral(y) = 2y

ds(y,x, -1) = 2y

`d^-1/dx^-1 y = 2y`Integral equation can be converted to differential equation by differentiating both sides, but not every integral equation can.

## Fractional differential equation

Differential and integral equations can be extend to fractional differential and integral equations by fractional order of fractional calculus.

Input ds(y,x,0.5) = 2y as semi differential equation

`d^0.5/dx^0.5 y = 2y`Property of a fractional differential equation is the same as a differential equation.

**Solution of linear fractional differential equation = general solution + parcular solution = gsolution()+psolution(),**

similar to linear differential equation. So method to solve fractional differential equation is similar to differential equation.Solve (fractional) differential equation for y by dsolve() or lasolve(), e.g.

dsolve( y'=2y )

dsolve( `d^0.5/dx^0.5 y=2y` )

lasolve( `d^0.5/dx^0.5 y=2y` )## Fractional partial differential equation

Consider a time fractional partial differential equation with fractional order differential time.

Input ds(y,t,0.5)=ds(y,x,2)-ds(y,x)-cos(x)-exp(t) as semi partial differential time t in the left hand side of the equation,

`(d^0.5y)/dt^0.5 = (d^2y)/dx^2-dy/dx-cos(x)-exp(t)`

`(d^0.5y)/dt^0.5 = (d^2y)/dx^2-dy/dx-cos(t)-exp(x)`## Complex order differential equation

Differential equation is extend to complex order differential equation by extension of order to complex number.

Input ds(y,x,i) = 2y as complex order differential equation

`d^(i)/dx^(i) y = 2y`## Fractional integral equation

Integral equation is extend to fractional integral equation by minus fractional order.

Input ds(y,x, -0.5) = 2y as semi integral equation

`d^-0.5/dx^-0.5 y = 2y`Integral equation can be converted to differential equation by differentiating both sides. Some fractional integral equation aslo can be converted to fractional differential equation, but not every fractional integral equation can.

## Equation of mixed Fractional differential and integral orders

A mix of differential and integral equation, e.g.

`d^(pi)/dx^(pi) y - int y(x) (dx)^pi` = 2exp(x)## System of Fractional differential equations

A system of differential equations is extend to system of fractional differential equation by fractional order. e.g.

`(d^0.5x)/dt^0.5=2x, (d^0.5y)/dt^0.5=x+y`By default, the unknown function are x(t) and y(t) and their variable is t, their initial value are x(0) and y(0).

dsolve(x(1,t)=x-t,y(1,t)=t-x)

x(0):=1, y(0):=1, lasolve(x(1,t)=x-t,y(1,t)=t-x)

## Variable order differential equation

When the order is variable, it is a variable order differential equation. e.g. the order is changing from -1 to 1 in the sin(x) order differential equation.

`(d^sin(x) y)/dx^sin(x)-y-exp(x)=0`

`(d^cos(x) y)/dx^cos(x)-y-exp(x)=0`The order change is similar to a change of the n-order fractional derivative `d^n/dx^n x` in below picture.

The order changes from -1 to 1.## Test solution

Test solution for (fractional) differential equation by the solutions back into equation to check if result is zero. There sre three ways to check solutions:- Click the
**"test"**button to test solution if it give 0. - Use the test() to test solution by
**test(solution, equation)**, e.g.

`test( exp(4x), d^0.5/dx^0.5 y=2y )`

f:= 2y+1, eq:=y'-f=0, s:=dsolve(eq), test(s, eq)

f:= 2y+1, eq:=ds(y,x,0.5)-f=0, s:=dsolve(eq), test(s, eq)

- the
**ntest()**is numeric test to put a random number into independent variable back to the equation by**ntest(solution, equation)**.

- Click the
## Comparison of differential equations

Order name equation general solution parcular solution i complex order differential equation `d^i/dx^i y - 2y=exp(x)` `C_1*exp(1/2^i*x)` -exp(x) 2 second order differential equation `d^2/dx^2 y - 2y=exp(x)` `C_1*exp(sqrt(2)*x)` -exp(x) 1.5 1.5 order differential equation `d^1.5/dx^1.5 y - 2y=exp(x)` `C_1*exp(2^(2/3)*x)` -exp(x) 1 differential equation `d/dx y -2y=exp(x)` `C_1*exp(2*x)` -exp(x) 0.5 semi differential equation `d^0.5/dx^0.5 y - 2y=exp(x)` `C_1*exp(4*x)` -exp(x) -0.5 semi integral equation `d^-0.5/dx^-0.5 y - 2y=exp(x)` `C_1*exp(1/4*x)` -exp(x) -1 integral equation `int y\ dx-2y=exp(x)` `C_1*exp(1/2*x)` -exp(x) All of their solutions are in the same format exp(k x). When the n-order differential equation decreased from 2 to 0.5, its general solution increased from exp(sqrt(2)*x) to exp(4x). When the n-order differential equation decreased from -0.5 to -1, its general solution increased from exp(1/4 x) to exp(1/2 x). but their parcular solutions are unchanged.

## References

- Roubíček, T. (2013), Nonlinear Partial Differential Equations with Applications (2nd ed.), Basel, Boston, Berlin: Birkhäuser, doi:10.1007/978-3-0348-0513-1, ISBN 978-3-0348-0512-4, MR 3014456.
- Samko, S. G. (1987), Fractional Integrals And Derivatives - Theory and Applications, 1987.
- Loverro, Adam (2004), Fractional Calculus - History, Definitions, and Applications for the Engineer, 2004.
- Baleanu, D. and Kumar, D. (2019), fractional calculus and its applications in physics. 2019.

- Mathematical Symbols

- Mathematics Handbook

- Elementary Math

- Higher Mathematics

- Fractional Calculus

- Fractional differential equation

- Function

- Formula Charts

- Math software: mathHandbook.com
- Math (translattion from Chinese)

- Math handbook (translattion from Chinese)
- Example: