Differential Equations
In mathematics, dy/dx + My = N takes the form of a linear differential equation given M and N are numeric constants or functions in x. It includes a y and its derivative. Here, the differential is of the first order, therefore it is called a first-order linear differential equation. The motive of solving an ordinary differential equation is to find out the function or function(s) that satisfy the given equation. There is three fundamental classifications of differential equation namely: Ordinary (ODE), Partial (PDE), or differential-algebraic (DAE). They can further be secluded based on their order, degree, and linearity. Hence, here are some ordinary differential equations examples: (dy/dx) = sin x (d2y/dx2) + c2y = 0 (rdr/dα) + cos α = 12 Generally, we come across three types of ordinary differential equations: autonomous ODEs, linear ODEs, and non-linear ODEs. In this field, several scientists like Newton, Leibniz, Riccati, and Bernoulli have put forward their theories. The elementary depiction of an ordinary differential equation is Newton’s Second Law of Motion which says – the link between the time t of an object and the displacement x under the force F is given by:- d2x(t)/dt2 = F (x(t))
Ordinary Differential Equation
ODEs are explained as differential equations having one or more functions of only one independent variable and the derivatives of those functions. For the other two types of differential equations, it is possible to have derivatives of functions of more than one variable. These include partial, homogenous, and nonhomogenous differential equations. Provided, F is a function of p, q, and derivatives of q, then an equation can be noted as: F (p, q, q’, . . . , q(n-1)) = q(n). The equation is of the order n.Ordinary Differential Equation Order
The highest derivative’s order is considered as the order of differential equations. An nth order ordinary differential equation is written as: F(x, y, y’,…,yn) = 0. Here y’ is either dy/dx or dy/dt and yn can be dny/dxn or dny/dtn) For linear ODE, the equation is: p0(x)yn + p1(x)yn-1 + … +pn(x)y = q(x). The function p1(x) is a co-efficient of the linear equation.First Order Differential Equations
First-order DEs are of the form dy/dx = f(x,y). The function f(x,y) is defined on a region of the XY plane. Two techniques are devised to solve the linear first-order differential equations namely: integrating method and method of variation constant. First-order DEs find use in solving problems based on Electrical circuits, falling bodies, Newton’s law of cooling, and dilution. Classification of differential equation of first order is given as follows:- Linear DEs
- Homogenous DEs
- Exact Equations
- Separable Equations
- Integrating Factor or IF
- Logarithmic and trigonometric functions cannot be included.
- The product of y and any of its derivatives cannot be there.
Here, the equation is already presented in standard form, y’ + P(x)y + Q(x)
So, P(x) = 2x and Q(x) = x
Let us multiply both sides by;
α(x) = e ∫Pdx = e ∫2xdx = ex2
ex2 + 2xex2y = xex2
d/dx(ex2y) = xex2
Integrate both sides,
ex2y = ∫ xex2dx
ex2y = ½. ex2+ k
y = ½ + ke-x2
Ordinary Differential Equations Examples
Problem dx/dt+etx(t)=t2cos(t)(1) Initial condition be x(0)=5x(0)=5.
Solution:
To begin with, let’s calculate the integrating factor
μ(t)=e∫etdt=eet=exp(et) [exp(x) is another way of writing ex].
Multiplying equation (1) by μ(t), now the left-hand side is the derivative of μ(t)x(t).
This can written as:
d/dt(exp(et)x(t)) = t2cos(t)exp(et).
To solve the ODE in terms of the initial conditions x(0), we integrate from 0 to t,
∫0t d/ds(exp(e8)x(s))ds = ∫0t s2cos(s)exp(es)ds
exp(et)x(t) – exp(e0)x(0) =∫0t s2cos(s)exp(es)ds
As we cannot find the integral analytically, we still consider the ordinary differential equation solved. Referring to the initial conditions x(0) = 5, we can write the solution of the ODE (1) as:
x(t)=5exp(1−et) +∫0t s2cos(s)exp(e8−et)ds
You can find that x(t) satisfies the ODE (1) and the initial conditions x(0) = 5.
Problem
Cos2 𝑥 sin(𝑥) 𝑑𝑦/𝑑𝑥 + cos3 (𝑥) 𝑦 = 1
Solution:
First, let us change the equation to standard form from general.
𝑑𝑦/𝑑𝑥 + cos(𝑥)/sin(𝑥) 𝑦 = 1 /cos2(𝑥) sin(𝑥)
The integrating factor is:
𝑒 ∫cos(𝑥)/sin(𝑥) 𝑑𝑥 = 𝑒 ln |sin(𝑥)| = sin(𝑥)
Multiply the standard form with sin(𝑥),
sin(𝑥) 𝑑𝑦/𝑑𝑥 + cos(𝑥)𝑦 = 1/cos2 𝑥
∴ 𝑑/𝑑𝑥 [𝑦. sin(𝑥)] = 1/cos2(𝑥)
∴ 𝑦. sin(𝑥) = ∫sec2 (𝑥) 𝑑𝑥 = tan 𝑥 + 𝑐
∴ (𝑥) = 1/cos(𝑥) + 𝑐/sin(𝑥)
Or, ( 𝑥) = sec (𝑥) + 𝑐. csc(𝑥)