Professional Documents
Culture Documents
Matter
Matter
The main aim of this project is to explain the concept of inclusion of glucose
chapter 3.
1
CHAPTER-1
INTRODUCTION
INTRODUCTION
dependent variable and its derivatives with respect to one (or) more
independent variable.
𝑑𝑦
i. (𝑑𝑦)3 −4( )2 + 7y = cosx
𝑑𝑥 𝑑𝑥
ii. y ‘+ 5x(𝑑𝑦)2 – 6y = l
𝑑𝑥
iii. ogx
independent variables
i. ( y + z )∂z/∂x + ( z + x )∂z/∂y = x + y
The second derivative d2y/dx2 is the highest derivative in the above equation.
F(x, y, 𝑑𝑦) = 0
𝑑𝑥
F(x, y, ,
𝑑𝑦 𝑑2𝑦
, _ _ _dny/dxn) = 0
𝑑𝑥 𝑑𝑥2
Degree of a Differential Equation:
Let F(x, y′, y″, y‴, _ _ _y(n)) = 0 be a differential equation of order n. If the given
𝑑𝑦
1. y = x √1 + (𝑑𝑦/𝑑𝑥)2
𝑑𝑥
(y ˗ x𝑑𝑦 )2 = 1 + (𝑑𝑦)2
𝑑𝑥 𝑑𝑥
this is a polynomial equation in𝑑𝑦. The highest degree of𝑑𝑦 is two. Hence the
𝑑𝑥 𝑑𝑥
polynomial equation in 𝑑𝑦
. Hence the degree of the above differential
𝑑𝑥
and of the first degree. We studt the following four methods for solving 𝑑𝑦
=
𝑑𝑥
f(x,y)
1. Variable separable
3. Exact equations and which can be made exact by the use of integrating factors.
Variable separable:
If the differential equation 𝑑𝑦 = f(x,y) can be expressed in the form 𝑑𝑦= f(x)/g(y)
𝑑𝑥 𝑑𝑥
f(x)dx = g(y)dy.
2. Integrate both sides of the above equation and add an arbitrary constant of
Example:
Solve: log𝒅𝒚 = ax + by
𝒅𝒙
𝑑𝑦
𝑑𝑥 = eax + by
𝑑𝑦
𝑑𝑥 = eax.eby
∫ 𝑒axdx = ∫ 𝑒-bydy
+ c eax/a = e-by/-b + c
zero in x and y.
Working rule to solve a homogenous differential equation
Ø(y/x) …(i)
Integrating on both sides and replace v by (y/x) then we get the general solution
Example:
𝑑𝑦
= y/x +ey/x ….(i)
𝑑𝑥
𝑑𝑦
= v + x𝑑𝑣….(ii)
𝑑𝑥 𝑑𝑥
Then (i) and(ii) → v +x𝑑𝑣 = v + ev → x𝑑𝑣 = ev
𝑑𝑥 𝑑𝑥
𝑑𝑥
∫ 𝑒-vdv = ∫ + c → -e-v = log│x│ + c ….(iii)
𝑥
Putting y=vx in (iii), the general solution of (i) is e-(y/x) +log│x│+ c=0
If the equation 𝑑𝑦
𝑑𝑥 =f(x,y) is of the form (a2x+b2y+c2) 𝑑𝑦 = a1x+b1y+c1
𝑑𝑥
where a1,b1,c1,a2,b2,c2 are real numbers and c1≠0 or c2≠0, then it is called
solved directly without the use of any of special techniques in the subject. A
1. Compare the given equation with Mdx + Ndy =0 and find out M and N. Then
5. Equate the sum of the results obtained from (3) and (4) to a constant to obtain
N = eysinx
Now 𝜕𝑀 = eycosx, 𝜕𝑁
= eycosx
𝜕𝑦 𝜕𝑥
𝜕𝑀
= 𝜕𝑁 is an exact equation
𝜕𝑦 𝜕𝑥
𝑥 𝑥
∫ 𝑀𝑑𝑥 =∫ (𝑒 y+1)cosxdx = (ey+ 1)sinx(integrating M w.r.t x, treating y
as constant) ….(2)
(ey +1)sinx + 0 =c
Method 1: By Inspection:
suitable function of x and y, the equation thus obtained will contain several
Example:
𝑦𝑑𝑥−𝑥𝑑𝑦
xdx + 𝑦2 =0
xdx + d(x/y) = 0
Integrating: x2/2 + x/y =c
Multiply (i) with I.F to transform it into an exact equation of (i) M1dx+N1dy=0
….(ii)
Example:
Solve: x2ydx-(x3+y3)dy =0
𝜕𝑀
= x2 and 𝜕𝑁= -3x2 which is not exact equation
𝜕𝑦 𝜕𝑥
The above given equatin is a homogenous equation in x andy .
𝑥 𝑥
∫ 𝑀1 𝑑𝑥= ∫ (−𝑥2/y3)dx = -x3/3y3 ….(3)
1
∫(𝑡𝑒𝑟𝑚𝑠 𝑜𝑓 𝑁1 𝑛𝑜𝑡 𝑐𝑜𝑛𝑡𝑎𝑖𝑛𝑖𝑛𝑔 𝑥)𝑑𝑦= ∫ dy=log|y| …. (4)
𝑦
log|y/c| = x3/3y3
of (i)M1dx+N1dy=0...(ii)
Example:
Solve: y(xy+2x2y2)dx+x(xy-x2y2)dy=0
Sol.Given y(xy+2x2y2)dx+x(xy-x2y2)dy=0
𝜕𝑀
= 2xy+6x2y2, 𝜕𝑁 = 2xy-3x2y2 → 𝜕𝑀 ≠ 𝜕𝑁
𝜕𝑦 𝜕𝑥 𝜕𝑦 𝜕𝑥
Therefore I.F. = 1
= 1/3x3y3. Multiplying (1) by 1/3x3y3
𝑀𝑥−𝑁𝑦
M1dx+N1dy=0
N1=x2y-x3y2/3x3y3=1/3xy2-1/3y
𝑑(𝑥𝑦)
∫ +2 ∫ 1/𝑥 dx – ∫ 1/𝑦 dy = c → - + 2log│x│-log│y│=c is the G.S.
1
(𝑥𝑦)2 𝑥𝑦
𝜕𝑀 𝜕𝑁
1
( − ) = f(x) or K(real number), then 𝑒∫ 𝑓(𝑥)𝑑𝑥 or 𝑒∫ 𝑘𝑑𝑥 Is an integrating
𝑁 𝜕𝑦 𝜕𝑥
factor of Mdx+Ndy=0.
𝜕𝑀 𝜕𝑁
2. Find 1 ( − ) and observe it as a function of x alone =f(x) or a real
𝑁 𝜕𝑦 𝜕𝑥
constant k.
M1dx+N1dy=0
𝜕𝑁
𝜕𝑀
= 1+y2, 𝜕𝑁=1/4(1+y2) →𝜕𝑀 ≠ ….(1)
𝜕𝑦 𝜕𝑥 𝜕𝑦 𝜕𝑥
𝜕𝑀 𝜕𝑁
Now 1 ( − )= 4
[(1+y2)-1(1+y2)]= 4
.3(1+y2)=3=f(x)
𝑁 𝜕𝑦 𝜕𝑥 𝑥(1+𝑦2) 4 𝑥(1+𝑦2) 4 𝑥
3
I.F= exp[∫ ( ) 𝑑𝑥]=exp(3logx)=𝑒𝑙𝑜𝑔𝑥3=x3
𝑥
N1=1/4x4+1/4x4y2
→∫ 𝑥3y+1x3y3+1x5dx + ∫ 0𝑑𝑦=c1
3 2
→x4y/4+x4y3/12+x6/12=c/12
→3x4y+x4y3+x6=c
Method 5: To find an Integrating factor of Mdx+Ndy=0
If there exists a continuous and differentiable single variable function of g(y) such
𝜕𝑁 𝜕𝑀
that 1
( − ) = g(y) or real number k then 𝑒∫ 𝑔(𝑦)𝑑𝑦 or 𝑒∫ 𝑘𝑑𝑦 is an
𝑀 𝜕𝑥 𝜕𝑦
𝜕𝑁 𝜕𝑀
2. Find 1
( − ) and observe it a a function of y alone=g(y)
𝑀 𝜕𝑥 𝜕𝑦
M1dx+N1dy=0 …..(ii)
Example:
Solve: (y4+2y)dx+(xy3+2y4-4x)dy=0
𝜕𝑀
=4y3+2, 𝜕𝑁
=y3-4
𝜕𝑦 𝜕𝑥
since, it is not an exact equation
≠
𝜕𝑀 𝜕𝑁
𝜕𝑦 𝜕𝑥
𝜕𝑁 𝜕𝑀
but 1 ( − )= 1
(y3-4-4y3-2)=-3(y3+2)/y(y3+2)=-3/y
𝑀 𝜕𝑥 𝜕𝑦 𝑦(𝑦3+2)
I.F=exp(∫ −3/𝑦dy)=exp(-3logy)=exp(logy-3)=1/y3
2
Therefore, the G.S of (2) is ∫ (𝑦 + )dx+∫ 2𝑦𝑑𝑦=c → (y+2/y2)x+y2=c
𝑦2
first order in y.
Q=g(x)
Solve:(x2+1) 𝒅𝒚 +4xy= 𝟏
𝒅𝒙 𝒙𝟐+𝟏
Sol: Reducing the given equation to standard form , by dividing with (𝑥2+ 1 )
𝑑𝑦 4𝑥
+ y= 1
where p = 4𝑥
, Q= 1
ʃ p d x =ʃ 4𝑥
1+𝑥2 d x=2 log (𝑥2+1)2
y( (𝑥2 + 1)2 =ʃ 1
(𝑥2+1)2 .( (𝑥2 + 1)2d x
y( (𝑥2 + 1)2 =x +c
1. First reduce the given equation to the standard form and then identify P1
and Q1.
𝑑𝑦 1 −1 𝑦........
𝑑𝑥
+ 1+𝑦2x=tan
1+𝑦2 (1)
Where p 𝑦
= 1
and Q1=tan−1 are functions of y alone .
1
1+𝑦2 1+𝑦2
Now∫ 𝑝1 d y=tan−1 𝑦
tan 𝑦
x𝑒tan−1 𝑦= ʃ −1 𝑒tan−1 𝑦 dy +c
1+𝑦2
are real numbers or functions of x alone and n is a real number such that n≠0
BERNOULLI’S EQUATION:
functions of x alone and ‘n’ is a real number such that n≠0 and n≠1,it is called a
........................
Given equation is 𝑑𝑦+Py=Qyn (1)
𝑑𝑥
......................
Let y-n=u →(1-n)y-n𝑑𝑦=𝑑𝑢→ y-n𝑑𝑦= 1 𝑑𝑢
(3)
𝑑𝑥 𝑑𝑥 𝑑𝑥 1−𝑛 𝑑𝑥
Example:
𝒚
Solve 𝒅𝒚 + =y2xsinx,x>0
𝒅𝒙 𝒙
𝑦
Sol:Given equation is 𝑑𝑦 + =y2xsinx.........(1) is Bernoulli’s eqn.
𝑑𝑥 𝑥
𝑦
Multiplying (1) by y-2,we get: y-2𝑑𝑦 + −1=x sinx........(2)
𝑑𝑥 𝑥
-𝑑𝑢 +𝑢 =x sinx → 𝑑𝑢
- 𝑢 = -x sinx...............................(4)
𝑑𝑥 𝑥 𝑑𝑥 𝑥
∴I.F = exp(∫Pdx)=exp(∫-1dx)=𝑒−𝑙𝑜𝑔𝑥 =1
𝑥 𝑥
u= x cosx+cx............................................................(5)
1
=x cosx+cx
𝑦
then the solution is known as the closed form or finite form of solution. In the
methods.
2. Euler’s method
5. Runge-kutta method
We will use Runge-Kutta method for the inclusion of glucose into the blood
stream. For that we have to know about the concept of Runge-Kutta method.
Runge-Kutta Method:
First order of Runge-Kutta method:Consider the differential
equation 𝑑𝑦
= f(x,y) and the initial condition y(x0) = y0, y(x1) = y1 suppose
𝑑𝑥
y= y0 + f(x0,y0)(x-x0)
by
y = y0 + (x1-x0)hf(x0,y0)
y = y0 + hf(x0,y0)
y1 = y0 +hf(x0, y0)
After determining y1 at x = x1 we start with this point (x1, y1) in the place of
(x0, y0) and find (x2, y2) where y2 is the approximate value of y at x = x2 and this
is given by y2 = y1 + hf(x1,y1)
y1 (0)= y0+hf(x0,y0)
y1 = y0 + 1[ k1 + 4k2 + k3 ]
6
Where k1 = hf(x0, y0)
k3 = hf(x0 +h , y0 +2k2 – k1 )
Where k1 = hf(x0,y0)
k4 = hf(x0 +h , y0 + k3)
(1) Apply the Fourth Order: y(0.1) and y(0.2) given that y =xy+y2
and y(0)=1
𝑑𝑦
= f(x,y)=xy+y2 and y(0)=1, x0 = 0 and y0 = 1
𝑑𝑥
Take h = 0.1
To find y1 = y0+1/6[k1+2k2+2k3+k4]
k2 = hf(x0+h/2, y0+k1/2)
= (0.1)f(0+0.1/2, 1+0.1/2)
= (0.1)f(0.05, 1.05)
= (0.1)[(0.05)(1.05)+(1.05)2]
= 0.1155
k3 = hf(x0+h/2, y0+k/2)
= hf(0+0.1/2, 1+0.1155/2)
= hf(0.1/2, 1.05775)
= (0.1)f(0.05, 1.05775)
= (0.1)[(0.05)(1.05775)+(1.05775)2]
= 0.1171
k4 = hf(x0+h, y0+k3)
= (0.1)f(0+0.1, 1+0.1171)
= (0.1)f(0.1, 1.1171)
= (0.1)[(0.1)(1.1171)+(1.1171)2]
k4 = 0.13596
Therefore y1= y0+1[k1+2k2+2k3+k4]
6
y1= 1+1[0.1+2(0.1155)+2(0.1171)+(0.13596)]
6
y1 = 1.1168= y(0.1)
To find y2:
y2 = y1+1[k1+2k2+2k3+k4]
6
= (0.1)f(0.1, 1.11686)
= (0.1)[(0.1)(1.11686)+(1.11686)2]
= 0.1359
k2 = hf(x1+h/2, y1+k1/2)
= hf(0.1+0.1/2, 1.11686+0.13596/2)
= (0.1)(0.15, 1.18481)
= 0.15814
k3 = hf(x0+h/2, y0+k3)
= (0.1)(0.1+0.1/2, 1.11686+0.15814/2)
= (0.1)(0.15, 1.19593)
= (0.1)[(0.15)(1.19593)+(1.19593)2]
= 0.16096
k4 = hf(x0+h, y0+k3)
= (0.1)f(0.1+0.1, 1.11686+0.16096)
= (0.1)f(0.1+0.1, 1.11686+0.16096)
k4 = (0.1)f(0.2, 1.27282)
k4= 0.188
Therefore y2 = y1+1/6[k1+2k2+2k3+k4]
y2= 1.11686+1/6[0.13590+2(0.15814)+2(0.160956)+0.1888]
y2 = 1.27734
𝑑𝑦
= y-x/y+x, y(0)=1 take h=0.2
𝑑𝑥
To find y1:
y1=y0+1/6[k1+2k2+2k3+k4]
= (0.2)(1-0)/(1+0)
= (0.2)(1)
= 0.2
= (0.2)f(0+0.2/2,1+0.2/2)
= (0.2)f(0.1, 1.1)
= (0.2)(1.1-0.1/1.1+0.1)
= 0.1666
k3 = hf(x0+h/2, y0+k2/2)
= (0.2)f(0+0.2/2, 1+0.1666/2)
= (0.2)f(0.1, 1.0833)
= 0.16619
k4 = hf(x0+h, y0+k3)
= (0.2)f(0+0.2, 1+0.1661)
= (0.2)f(0.2, 1.1661)
= 0.1414
y1= y0+1/6[k1+2k2+2k3+k4]
y1= 1+1/6[0.2+2(0.1666)+2(0.16619)+0.1414]
y1= 1.1678
To find y2:
y2= y1+1/6[k1+2k2+2k3+k4]
= (0.2)(1.1678-0.2)/(1.678+0.2)
= 0.1415
= (0.2)f(0.2+0.2/2, 1.1678+0.1415
= (0.2)f(0.3, 1.2385)
= 0.1220
= (0.2)f(0.2+0.2/2, 1.1678+0.1415/2)
= (0.2)f(0.3, 1.2288)
= 0.1215
k 4= hf(x1+h, y1+k3)
= (0.2)f(0.2+0.2, 1.1678+0.1215)
= 0.1052
y2= y1+1[k1+2k2+2k3+k4]
6
y2 = 1.1678+1/6[0.1415+2(0.1220)+2(0.1215)+0.1052]
= 1.2900
0.1
Given 𝑑𝑦
𝑑𝑥 =x2+y2, x0=1,y0=1.5 and h=0.1
x1=x0+h
x1=1+0.1=1.1
y1=y0 + 1[k1+2k2+2k3+k4
6
k1 = (0.1)[x02+y02]
k1 = (0.1)[(1)2+(1.5)2]
k1 = 0.325
k2 = h f (x0 + ℎ , y0+𝑘1)
2 2
= 0.386640
k3 = h f(x0+ℎ , y0 + 𝑘2 )
2 2
k3 = 0.3969
k4 = h f (0.1+0.1 , 1.5+0.3969)
= 0.48082
y1 = y0 +1 [k1+2k2 +2k3+k4]
6
y1 = 1.8954
To find y2 :
y2 = y1 + 1[k1+2k2+2k3+k4]
6
k1 = (0.1)(x1 2+y12)
k1 = (0.1)( (1.1)2+(1.8954)2)
k1 = 0.4802
k2 = h f(x1 +ℎ ,y1+𝑘1 )
2 2
= 0.5882
k3 = h f ( x1+ ℎ
2 ,y1+𝑘2 )
2
k3 = (0.1)
f(1.15,2.1895) k3
=0.6114
k4 = hf(x1+h ,y1+k3)
k4 = (0.1) f (1.1+0.1 ,1.8954+0.61164)
k4 = (0.1)f(1.2,2.50704)
k4 = 0.7725
y2 = y1 +1[k1+2k2+2k3+k4]
6
y2 = (1.8954)+1[0.4802+2(0.5882)+2(0.61162)+0.7725]
6
y2 = 1.8954+0.6087
y2 = 2.50411
y(0)=1.
i)First order:
𝑑𝑦
= −𝑦 and x0=0,y0=1,h=1
𝑑𝑥
y1= y0+hf(x0,y0)
y1= 1+(0.1)(-1)
= 1-0.1
= 0.9
x1= x0+h
= 0+0.1
= 0.1
Y2= y1+hf(x1,y1)
= 0.9+(0.1)f(0.1,0.9)
= 0.9+(0.1)(-0.9)
= 0.81
ii)Second order
y1= y0+1(k1+k2)
2
k1= (0.1)(-1)
= -0.1
y1= y0+1(k1+k2)
2
k1= (0.1)(-1)
= -0.1
k2= hf(x0+h, y0+k1)
= (0.1)f(0+0.1, 1+(-0.1))
= (0.1)f(0.1, 0.9)
= (0.1, -0.9)
= -0.09
= -0.09
y1 = y0+1(k1+k2)
2
= 1+1(-0.1-0.09)
2
= 0.905
y2= y1+1(k1+k2)
2
k1= hf(x1,y1)
= (0.1)(-0.905)
= -0.0905
= 0.1f(0.1+0.1, 0.905-0.0905)
= (0.1)f(0.2, 0.8145)
= -0.08145
y2= y1+1(k1+k2)
2
=0.905+1(-0.0905-0.08145)
2
=0.8190
iii)Third Order:
y1=y0+1(k1+4k2+k3)
6
k1=hf(x0,y0)
=(0.1)f(0,1)
=-0.1
k2=hf(x0+ℎ,y0+𝑘1)
2 2
=(0.1)f(0+0.1,1+−0.1)
2 2
=(0.1)f?(0.05,0.95)
=-0.095
k3=hf(x0+h,y0+2k2-k1)
=(0.1)f(0+0.1,1+2(-0.095)+0.1)
=(0.1)f(0.1,0.91)
=-0.091
y1=y0+1(k1+4k2+k3)
6
=1+1[-0.1+4(-0.095) =1-0.0951
6
=0.9048
To find y2:
y2=y1+1[k1+4k2+k3]
6
k1=hf(x1,y1)
=(0.1)f(0.1,0.9048)
=(0.1)(-0.9048)
=-0.0904
k2=hf(x1+ℎ,y1+𝑘1)
2 2
=(0.1)f(0.1+0.1,0.9048-0.0904)
2 2
=(0.1)f(0.15,0.8596)
=(0.1)(-0.8596)
=-0.0859
k3 =hf(x1+h,y1+2k2-k1)
=(0.1)f(0.1+0.1,0.9048+2(-0.0859)+0.0904)
=(0.1)f(0.2,0.8234)
=-0.0823
y2=y1+1[k1+4k2+k3]
6
=0.9048+1[-0.0904+4(-0.0859)-0.0823]
6
=0.81875
f(x2)=y(0.2)
iv)Fourth order:
To find y1:
y1=y0+1[k1+2k2+2k3+k4]
6
k1=hf(x0,y0)
=(0.1)f(0,1)
=-0.1
k2=hf(x0+ℎ,y0+𝑘1)
2 2
=(0.1)f(0+0.1,1-0.1)
2 2
=(0.1)f(0.05,0.95)
=-0.095
k3=hf(x0+ℎ,y0+𝑘2)
2 2
=(0.1)f(0+0.1,1-0.095)
2 2
=(0.1)f(0.05,0.9525)
=-0.0952
k4=hf(x0+h,y0+k3)
=(0.1)f(0+0.1,1-0.0952)
=(0.1)f(0.1,0.9048)
=-0.0904
y1=y0+1[k1+2k2+2k3+k4)
6
=1+1[-0.1+2(-0.095)+2(-0.0952)-0.0904]
6
=0.9048
f(x)1=y(0.1)
To find y2:
y2=y1+1[k1+2k2+2k3+k4]
6
k1=hf(x1,y1)
=(0.1)f(0.1,0.9048)
=-0.0904
k2=hf(x1+ℎ,y1+𝑘1)
2 2
=(0.1)f(0.1+0.1,0.9048-0.0904)
2 2
=(0.1)f(0.8596)
=-0.0859
k3=hf(x1+ℎ,y1+𝑘2)
2 2
=(0.1)f(0.1+0.1,0.9048-0.0859)
2 2
=(0.1)f(0.15,0.8618)
=-0.0861
k4=hf(x1+h,y1+k3)
=(0.1)f(0.1+0.1,0.9048-0.0861)
=(0.1)f(0.2,0.8187)
=-0.0818
y2=y1+1[k1+2k2+2k3+k4]
6
=0.9048+1[-0.0904+2(-0.0859)+2(-0.0861)-0.0818] = 0.8147
6
46
CHAPTER-3
Glucose:
Glucose was first isolated from raisins in 1747 by the German chemist “Andreas
German chemist who received the Nobel prize in chemistry for his findings. The
name “glucose” comes from the French and Greek words for “sweet” in
reference to must, which is the sweet press of grapes when they are used to
carbohydrate.
glucose is one of the main ingredients of honey. All forms of glucose are
Glucose is also called as dextrose is a simple sugar with the molecular formula
D-Glucose
Dextrose
Grape sugar
Glucose may be found in either linear form (or) cyclic form. The hydrogen
and OH groups are able to rotate around the carbon atoms in glucose,
a molar mass of 180.16 grams per mole and a density of 1.54 grams per
cubic centimeter.
In the human body glucose supplies about 3.75 kilocalories of energy per
centigrade. Below are the structures of alpha D-Glucose and beta D-Glucose
Uses of Glucose:
anaerobic respiration (or) fermentation. Glucose is the human body’s key source
food energy per gram. The insulin reaction, and other mechanism, regulate the
sugar. Blood sugar levels are regulated by glucose binding nerve cells in the
hypothalamus
Cells and RBC, while the rest reaches the liver, adipose tissue and muscle cells,
trauma (or) other medical condition. Glucose is also used to treat hyperkalemia
Runge-Kutta method:
minute. At the same time, the Glucose is converted and removed from the
Glucose present is 3.5 mill moles/liter,solve the equation using the Runge-kutta
fourth order method. Compare the solution with the exact solution. We shall
first obtain the numerical solution using the Runge-kutta fourth order method.
𝑑𝐺
=0.5-(0.11)G...............(1)
𝑑𝑡
With G=3.5 when t=0. In equation (1) we have choosen the constant of
proportionality ‘a’ as 0.11 on empirical basis and the same value will be used
later to obtain the exact solution by analytical method. Here t0=0,G0=3.5 and let
h=1 minute. Let right hand side of (1) denoted f(t,G) then we get
The Runge-kutta fourth order, with ‘t’ and ‘G’ in place of ‘x’ and ‘y’ becomes
Gn+1=Gn+1(k1+2k2+2k3+k4)...........(2)
6
K1=hf(t0,G0)
=(1)[0.5-(0.11)(3.5)]
=0.115
K2=hf(t0+ℎ,G0+𝑘1)
2 2
=(1)[0.5-(0.11)(3.5575)]
=0.108675
K3=hf(t0+ℎ,G0+𝑘2)
2 2
=(1)[0.5-(0.11)(3.5543375)]
=0.1090228
K4=hf(to+h,Go+k3)
=(1)[0.5-0.11(3.6090228)]
=0.1030074
We get,
G1=G0+1(k1+2k2+2k3+k4)
6
=3.5+1[0.115+2(0.108675)+2(0.1090228)+0.1030074]
6
=3.5+1[0.653403
6
=3.6089005
Similarly, we can evaluate G for further values of ‘t’. The values of Gn are
Analytical method:
The given differential equation 1 is a linear first order equation and can
𝑑𝐺
𝑑𝑡 + (0.11)G =0.5
The integrating factor is 𝑒∫(0.11)𝑑𝑡 =𝑒(0.11)𝑡 so that the general solution of [1] is
(0.11)
𝑒(0.11)𝑡 𝑒
(0.11)𝑡]dt
G[ (0.11) ]=∫(0.5)[ (0.11)
(or)
(or)
(0.5)
G𝑒(0.11)𝑡= 0.11 𝑒(0.11)𝑡+c
G = 4.54+c𝑒−(0.11)𝑡
G = 4.54+c𝑒−(0.11)𝑡 →(3)
Substituting the values of c in equation (3) the exact solution of the initial value
in the problem is
numerical solution(from the R.K method) with exact solutions (u) in the table
0 3.5 3.5
1 3.608901 3.608901
2 3.706458 3.706458
⁰ 3.793852 3.793852
4 3.872143 3.872143
: : :
: : :
10 4.197453 4.197453
: : :
: : :
20 4.429615 4.429615
: : :
: : :
30 4.506895 4.506895
We observe that in the above table that the solution given by the Rk fourth order
method coincides with the exact solution even up to the 6th decimal places in
the case of the given problem .The variation of the glucose content in the blood
stream is shown.
G(t)
5
4.5
4
3.5
3
2.5
2
1.5 G(t)
1
0.5
0
05101520253035
REFERENCES:
www.google.com