MATH 332 - Differential Equations Question
Bank
Question 1
Problem: Solve the first-order linear differential equation given by:
dy
dx + 3y= 6x, y(0) = 4
Step-by-Step Solution:
Step 1: Identify the Type of Differential Equation The given equation is a
first-order linear differential equation of the form:
dy
dx +p(x)y=q(x)
where p(x) = 3 and q(x) = 6x.
Step 2: Find the Integrating Factor The integrating factor, µ(x), is given
by:
µ(x) = eRp(x)dx =eR3dx =e3x
Step 3: Multiply the Entire Differential Equation by the Integrating Factor
Multiplying every term by e3xgives:
e3xdy
dx + 3e3xy= 6xe3x
Step 4: Rewrite the Left-Hand Side as a Derivative The left-hand side of the
equation is the derivative of e3xy:
d
dx(e3xy) = 6xe3x
Step 5: Integrate Both Sides Integrate both sides with respect to x:
Zd
dx(e3xy)dx =Z6xe3xdx
Integrating the left-hand side yields:
e3xy=Z6xe3xdx
1
For the right-hand side, use integration by parts: Let u=xand dv = 6e3xdx.
Then, du =dx and v= 2e3x, so:
Zx·6e3xdx =x·2e3x−Z2e3xdx
= 2xe3x−2Ze3xdx
= 2xe3x−2
3e3x
=2x−2
3e3x
So,
e3xy=2x−2
3e3x+C
Step 6: Solve for y
y= 2x−2
3+Ce−3x
Step 7: Use the Initial Condition to Solve for CSubstitute x= 0 and
y(0) = 4 into the solution:
4 = −2
3+C
C= 4 + 2
3=14
3
Now substitute back for Cin the general solution:
y= 2x−2
3+14
3e−3x
Conclusion: The solution to the differential equation is:
y= 2x−2
3+14
3e−3x
Question 1: Solving a First-Order Linear Differential Equation
Problem: Solve the first-order linear differential equation given
by:
dy
dx + 3y= 6x, y(0) = 4
Step-by-Step Solution:
Step 1: Identify the Type of Differential Equation The given equa-
tion is a first-order linear differential equation of the form:
2
dy
dx +p(x)y=q(x)
where p(x)=3and q(x)=6x.
Step 2: Find the Integrating Factor The integrating factor, µ(x),
is given by:
µ(x) = eRp(x)dx =eR3dx =e3x
Step 3: Multiply the Entire Differential Equation by the Integrat-
ing Factor Multiplying every term by e3xgives:
e3xdy
dx + 3e3xy= 6xe3x
Step 4: Rewrite the Left-Hand Side as a Derivative The left-hand
side of the equation is the derivative of e3xy:
d
dx(e3xy) = 6xe3x
Step 5: Integrate Both Sides Integrate both sides with respect to
x:
Zd
dx(e3xy)dx =Z6xe3xdx
Integrating the left-hand side yields:
e3xy=Z6xe3xdx
For the right-hand side, use integration by parts: Let u=xand
dv = 6e3xdx. Then, du =dx and v= 2e3x, so:
Zx·6e3xdx =x·2e3x−Z2e3xdx
= 2xe3x−2Ze3xdx
= 2xe3x−2
3e3x
=2x−2
3e3x
So,
e3xy=2x−2
3e3x+C
Step 6: Solve for y
3
y= 2x−2
3+Ce−3x
Step 7: Use the Initial Condition to Solve for CSubstitute x= 0
and y(0) = 4 into the solution:
4 = −2
3+C
C= 4 + 2
3=14
3
Now substitute back for Cin the general solution:
y= 2x−2
3+14
3e−3x
Conclusion: The solution to the differential equation is:
y= 2x−2
3+14
3e−3x
Question 2
Problem: Solve the following homogeneous differential equation:
dy
dx + 2y= 0
Solution:
Step 1: Identify the type of differential equation. The given equa-
tion is a first-order linear homogeneous differential equation.
Step 2: Rewrite the differential equation in standard form. The
equation is already in the standard form for a first-order linear equa-
tion: dy
dx +p(x)y= 0
where p(x)=2.
Step 3: Solve the differential equation using the integrating factor
method. We first find the integrating factor, µ(x), which is given by:
µ(x) = eRp(x)dx =eR2dx =e2x
Step 4: Multiply through by the integrating factor. Multiplying
the entire differential equation by e2xyields:
e2xdy
dx + 2e2xy= 0
or d
dx(e2xy) = 0
4
Step 5: Integrate both sides. Integrating both sides with respect
to xgives:
e2xy=C
where Cis the constant of integration.
Step 6: Solve for y. Finally, solve for yby isolating it on one side
of the equation:
y=Ce−2x
where Cis any constant.
Conclusion: The general solution to the differential equation dy
dx +
2y= 0 is:
y=Ce−2x
where Cis an arbitrary constant.
This is an exponential decay function where the rate of decay is
controlled by the constant 2in the exponent. Question 2: Solving a
Homogeneous Differential Equation
Problem: Solve the following homogeneous differential equation:
dy
dx + 2y= 0
Solution:
Step 1: Identify the type of differential equation. The given equa-
tion is a first-order linear homogeneous differential equation.
Step 2: Rewrite the differential equation in standard form. The
equation is already in the standard form for a first-order linear equa-
tion: dy
dx +p(x)y= 0
where p(x)=2.
Step 3: Solve the differential equation using the integrating factor
method. We first find the integrating factor, µ(x), which is given by:
µ(x) = eRp(x)dx =eR2dx =e2x
Step 4: Multiply through by the integrating factor. Multiplying
the entire differential equation by e2xyields:
e2xdy
dx + 2e2xy= 0
or d
dx(e2xy) = 0
Step 5: Integrate both sides. Integrating both sides with respect
to xgives:
e2xy=C
5
where Cis the constant of integration.
Step 6: Solve for y. Finally, solve for yby isolating it on one side
of the equation:
y=Ce−2x
where Cis any constant.
Conclusion: The general solution to the differential equation dy
dx +
2y= 0 is:
y=Ce−2x
where Cis an arbitrary constant.
This is an exponential decay function where the rate of decay is
controlled by the constant 2in the exponent.
Question 3
Problem: Solve the first-order linear differential equation:
dy
dx + 2y=e−3x
Step-by-step Solution:
Step 1: Identify the type of equation. The given differential equa-
tion is linear and can be expressed in the standard linear form:
dy
dx +p(x)y=q(x)
Here, p(x) = 2 and q(x) = e−3x.
Step 2: Find the integrating factor. The integrating factor, µ(x),
is given by:
µ(x) = eRp(x)dx =eR2dx =e2x
Step 3: Multiply the entire differential equation by the integrating
factor.
e2xdy
dx + 2e2xy=e−x
Step 4: Rewrite the left hand side as a derivative of a product.
The left hand side can be expressed as:
d
dx(e2xy) = e−x
Step 5: Integrate both sides with respect to x.
Zd
dx(e2xy)dx =Ze−xdx
e2xy=−e−x+C
6
Step 6: Solve for y.
y=−e−x+C
e2x
y=−e−3x+Ce−2x
Step 7: Write the general solution. The general solution to the
differential equation is:
y=−e−3x+Ce−2x
where Cis the constant of integration.
This is the complete solution to the original differential equation.
Students can verify this by substituting yback into the original dif-
ferential equation and confirming that both sides are equal. Question
3: Solving a First-Order Linear Differential Equation
Problem: Solve the first-order linear differential equation:
dy
dx + 2y=e−3x
Step-by-step Solution:
Step 1: Identify the type of equation. The given differential equa-
tion is linear and can be expressed in the standard linear form:
dy
dx +p(x)y=q(x)
Here, p(x) = 2 and q(x) = e−3x.
Step 2: Find the integrating factor. The integrating factor, µ(x),
is given by:
µ(x) = eRp(x)dx =eR2dx =e2x
Step 3: Multiply the entire differential equation by the integrating
factor.
e2xdy
dx + 2e2xy=e−x
Step 4: Rewrite the left hand side as a derivative of a product.
The left hand side can be expressed as:
d
dx(e2xy) = e−x
Step 5: Integrate both sides with respect to x.
Zd
dx(e2xy)dx =Ze−xdx
e2xy=−e−x+C
Step 6: Solve for y.
y=−e−x+C
e2x
7
y=−e−3x+Ce−2x
Step 7: Write the general solution. The general solution to the
differential equation is:
y=−e−3x+Ce−2x
where Cis the constant of integration.
This is the complete solution to the original differential equation.
Students can verify this by substituting yback into the original dif-
ferential equation and confirming that both sides are equal.
Question 4
Problem Statement:
Solve the following first-order linear differential equation:
dy
dx + 2y=e−3x
Step-by-Step Solution:
Step 1: Identify the type of differential equation
The given equation is a first-order linear differential equation in
the form:
dy
dx +p(x)y=q(x),
where p(x)=2and q(x) = e−3x.
Step 2: Find the integrating factor
The integrating factor, µ(x), is given by:
µ(x) = eRp(x)dx =eR2dx =e2x.
Step 3: Multiply through by the integrating factor
Multiply every term of the differential equation by e2x:
e2xdy
dx + 2e2xy=e−x.
Step 4: Rewrite the left side as a derivative
Notice that the left-hand side can be written as the derivative of
the product µ(x)y:
d
dx(e2xy) = e−x.
Step 5: Integrate both sides
Integrate both sides with respect to x:
Zd
dx(e2xy)dx =Ze−xdx.
8
This results in:
e2xy=−e−x+C,
where Cis the constant of integration.
Step 6: Solve for y
Now, solve for y:
y=−e−x+C
e2x=−e−3x+Ce−2x.
Final Solution:
The solution to the differential equation is:
y=−e−3x+Ce−2x
where Cis an arbitrary constant. This is the general solution of
the given first-order linear differential equation. Question 4: First
Order Linear Differential Equation
Problem Statement:
Solve the following first-order linear differential equation:
dy
dx + 2y=e−3x
Step-by-Step Solution:
Step 1: Identify the type of differential equation
The given equation is a first-order linear differential equation in
the form:
dy
dx +p(x)y=q(x),
where p(x)=2and q(x) = e−3x.
Step 2: Find the integrating factor
The integrating factor, µ(x), is given by:
µ(x) = eRp(x)dx =eR2dx =e2x.
Step 3: Multiply through by the integrating factor
Multiply every term of the differential equation by e2x:
e2xdy
dx + 2e2xy=e−x.
Step 4: Rewrite the left side as a derivative
Notice that the left-hand side can be written as the derivative of
the product µ(x)y:
d
dx(e2xy) = e−x.
Step 5: Integrate both sides
9
Integrate both sides with respect to x:
Zd
dx(e2xy)dx =Ze−xdx.
This results in:
e2xy=−e−x+C,
where Cis the constant of integration.
Step 6: Solve for y
Now, solve for y:
y=−e−x+C
e2x=−e−3x+Ce−2x.
Final Solution:
The solution to the differential equation is:
y=−e−3x+Ce−2x
where Cis an arbitrary constant. This is the general solution of
the given first-order linear differential equation.
Question 5
Problem: Solve the non-homogeneous differential equation given
by:
y′′ −3y′+ 2y=e2x
Step-by-Step Solution:
Step 1: Solve the Homogeneous Equation First, solve the homo-
geneous part of the differential equation:
y′′ −3y′+ 2y= 0
We look for solutions of the form y=erx. Substituting into the
homogeneous equation gives:
r2erx −3rerx + 2erx = 0
erx(r2−3r+ 2) = 0
Given erx = 0, we require:
r2−3r+ 2 = 0
Factoring the quadratic:
(r−1)(r−2) = 0
10
Therefore, r= 1 and r= 2, providing the general solution to the
homogeneous equation:
yh=c1ex+c2e2x
where c1and c2are constants.
Step 2: Find a Particular Solution Since the non-homogeneous
term is e2x, it suggests a resonance with the second part of the ho-
mogeneous solution c2e2x. Thus, look for a particular solution of the
form:
yp=x(Ae2x)
where Ais a constant to be determined.
Differentiating yp:
y′
p=Ae2x+ 2Axe2x
y′′
p= 2Ae2x+ 4Ae2x+ 4Axe2x= 6Ae2x+ 4Axe2x
Substitute yp,y′
p, and y′′
pinto the non-homogeneous equation:
6Ae2x+ 4Axe2x−3Ae2x−6Axe2x+ 2Axe2x=e2x
(6A−3A)e2x+ (4A−6A+ 2A)xe2x=e2x
3Ae2x=e2x
From which A=1
3. Thus, the particular solution is:
yp=1
3xe2x
Step 3: Write the General Solution The general solution to the
non-homogeneous differential equation is the sum of the homogeneous
and particular solutions:
y=yh+yp=c1ex+c2e2x+1
3xe2x
Conclusion: The general solution to the differential equation y′′ −
3y′+ 2y=e2xis:
y=c1ex+c2e2x+1
3xe2x
where c1and c2are arbitrary constants. Question 5: Solving a Non-
Homogeneous Differential Equation
Problem: Solve the non-homogeneous differential equation given
by:
y′′ −3y′+ 2y=e2x
Step-by-Step Solution:
11
Step 1: Solve the Homogeneous Equation First, solve the homo-
geneous part of the differential equation:
y′′ −3y′+ 2y= 0
We look for solutions of the form y=erx. Substituting into the
homogeneous equation gives:
r2erx −3rerx + 2erx = 0
erx(r2−3r+ 2) = 0
Given erx = 0, we require:
r2−3r+ 2 = 0
Factoring the quadratic:
(r−1)(r−2) = 0
Therefore, r= 1 and r= 2, providing the general solution to the
homogeneous equation:
yh=c1ex+c2e2x
where c1and c2are constants.
Step 2: Find a Particular Solution Since the non-homogeneous
term is e2x, it suggests a resonance with the second part of the ho-
mogeneous solution c2e2x. Thus, look for a particular solution of the
form:
yp=x(Ae2x)
where Ais a constant to be determined.
Differentiating yp:
y′
p=Ae2x+ 2Axe2x
y′′
p= 2Ae2x+ 4Ae2x+ 4Axe2x= 6Ae2x+ 4Axe2x
Substitute yp,y′
p, and y′′
pinto the non-homogeneous equation:
6Ae2x+ 4Axe2x−3Ae2x−6Axe2x+ 2Axe2x=e2x
(6A−3A)e2x+ (4A−6A+ 2A)xe2x=e2x
3Ae2x=e2x
From which A=1
3. Thus, the particular solution is:
yp=1
3xe2x
12
Step 3: Write the General Solution The general solution to the
non-homogeneous differential equation is the sum of the homogeneous
and particular solutions:
y=yh+yp=c1ex+c2e2x+1
3xe2x
Conclusion: The general solution to the differential equation y′′ −
3y′+ 2y=e2xis:
y=c1ex+c2e2x+1
3xe2x
where c1and c2are arbitrary constants.
Question 6
Solve the given initial value problem and determine the particular
solution:
dy
dt = 5y+ 3, y(0) = 4
Step-by-Step Solution
Step 1: Identify the Type of Differential Equation
The given differential equation is
dy
dt = 5y+ 3
This is a first-order linear ordinary differential equation.
Step 2: Rewrite in Standard Linear Form
The equation is already in the standard form for a first-order linear
equation:
dy
dt −5y= 3
Step 3: Find the Integrating Factor
The integrating factor, µ(t), is given by eRP(t)dt where P(t)is the
coefficient of yin the standard form, which is −5. Therefore:
µ(t) = eR−5dt =e−5t
Step 4: Multiply Every Term by the Integrating Factor
Multiply the entire differential equation by e−5t:
e−5tdy
dt −5e−5ty= 3e−5t
Step 5: Simplify Using the Product Rule
The left-hand side of the equation can be simplified using the prod-
uct rule d(e−5ty)/dt:
13
d
dt(e−5ty) = 3e−5t
Step 6: Integrate Both Sides
Integrating both sides with respect to t:
e−5ty=Z3e−5tdt
Using the substitution u=−5t,du =−5dt,dt =du
−5:
Z3e−5tdt =Z3eudu
−5=−3
5Zeudu =−3
5eu=−3
5e−5t
Thus:
e−5ty=−3
5e−5t+C
Step 7: Solve for y
Multiply through by e5t:
y=−3
5+Ce5t
Step 8: Use the Initial Condition to Find C
Plug in the initial condition y(0) = 4:
4 = −3
5+C
C= 4 + 3
5=20
5+3
5=23
5
Step 9: Write the Particular Solution
The particular solution to the differential equation is:
y(t) = −3
5+23
5e5t
y(t) = 23
5e5t−3
5
This is the solution that satisfies the initial condition y(0) = 4.
Question 6
Solve the given initial value problem and determine the particular
solution:
dy
dt = 5y+ 3, y(0) = 4
Step-by-Step Solution
Step 1: Identify the Type of Differential Equation
The given differential equation is
14
dy
dt = 5y+ 3
This is a first-order linear ordinary differential equation.
Step 2: Rewrite in Standard Linear Form
The equation is already in the standard form for a first-order linear
equation:
dy
dt −5y= 3
Step 3: Find the Integrating Factor
The integrating factor, µ(t), is given by eRP(t)dt where P(t)is the
coefficient of yin the standard form, which is −5. Therefore:
µ(t) = eR−5dt =e−5t
Step 4: Multiply Every Term by the Integrating Factor
Multiply the entire differential equation by e−5t:
e−5tdy
dt −5e−5ty= 3e−5t
Step 5: Simplify Using the Product Rule
The left-hand side of the equation can be simplified using the prod-
uct rule d(e−5ty)/dt:
d
dt(e−5ty) = 3e−5t
Step 6: Integrate Both Sides
Integrating both sides with respect to t:
e−5ty=Z3e−5tdt
Using the substitution u=−5t,du =−5dt,dt =du
−5:
Z3e−5tdt =Z3eudu
−5=−3
5Zeudu =−3
5eu=−3
5e−5t
Thus:
e−5ty=−3
5e−5t+C
Step 7: Solve for y
Multiply through by e5t:
y=−3
5+Ce5t
Step 8: Use the Initial Condition to Find C
15
Plug in the initial condition y(0) = 4:
4 = −3
5+C
C= 4 + 3
5=20
5+3
5=23
5
Step 9: Write the Particular Solution
The particular solution to the differential equation is:
y(t) = −3
5+23
5e5t
y(t) = 23
5e5t−3
5
This is the solution that satisfies the initial condition y(0) = 4.
Question 7
Problem: Solve the following differential equation:
y′′ + 4y′+ 4y= 0
Solution:
Step 1: Identifying the Type of Equation The given differential
equation is a second-order linear homogeneous differential equation
with constant coefficients. Its standard form is:
ay′′ +by′+cy = 0
For our equation, a= 1,b= 4, and c= 4.
Step 2: Finding the Characteristic Equation To solve this, we first
write down the characteristic equation associated with the differential
equation, which is obtained by replacing ywith ert (where ris a
constant):
r2+ 4r+ 4 = 0
Step 3: Solve the Characteristic Equation We solve for rusing the
quadratic formula:
r=−b±√b2−4ac
2a
Plugging in the values from our characteristic equation:
r=−4±√42−4×1×4
2×1=−4±√16 −16
2=−4±0
2=−2
Since we have a repeated root, r=−2, we know from the theory of
differential equations that the general solution to the equation will
involve both ert and t·ert.
16
Step 4: Writing the General Solution Since r=−2is a repeated
root, the general solution is given by:
y(t) = C1e−2t+C2te−2t
where C1and C2are arbitrary constants determined by initial condi-
tions.
Step 5: Conclusion The solution to the differential equation y′′ +
4y′+ 4y= 0 is:
y(t) = C1e−2t+C2te−2t
This function y(t)satisfies the original differential equation for any
constants C1and C2. Further information or boundary conditions are
needed to find specific values for C1and C2. Question 7: Solving a
Homogeneous Second-Order Differential Equation
Problem: Solve the following differential equation:
y′′ + 4y′+ 4y= 0
Solution:
Step 1: Identifying the Type of Equation The given differential
equation is a second-order linear homogeneous differential equation
with constant coefficients. Its standard form is:
ay′′ +by′+cy = 0
For our equation, a= 1,b= 4, and c= 4.
Step 2: Finding the Characteristic Equation To solve this, we first
write down the characteristic equation associated with the differential
equation, which is obtained by replacing ywith ert (where ris a
constant):
r2+ 4r+ 4 = 0
Step 3: Solve the Characteristic Equation We solve for rusing the
quadratic formula:
r=−b±√b2−4ac
2a
Plugging in the values from our characteristic equation:
r=−4±√42−4×1×4
2×1=−4±√16 −16
2=−4±0
2=−2
Since we have a repeated root, r=−2, we know from the theory of
differential equations that the general solution to the equation will
involve both ert and t·ert.
Step 4: Writing the General Solution Since r=−2is a repeated
root, the general solution is given by:
y(t) = C1e−2t+C2te−2t
17
where C1and C2are arbitrary constants determined by initial condi-
tions.
Step 5: Conclusion The solution to the differential equation y′′ +
4y′+ 4y= 0 is:
y(t) = C1e−2t+C2te−2t
This function y(t)satisfies the original differential equation for any
constants C1and C2. Further information or boundary conditions are
needed to find specific values for C1and C2.
Question 8
Problem Statement: Given the second-order differential equation:
d2y
dx2−3dy
dx + 2y=e2x
Solve for yif y(0) = 2 and y′(0) = 1.
Step-by-Step Solution:
Step 1: Identify the Homogeneous Equation
The homogeneous part of the differential equation is:
d2y
dx2−3dy
dx + 2y= 0
Step 2: Solve the Homogeneous Equation
We look for solutions of the form yh=erx, which implies:
r2−3r+ 2 = 0
Factoring the characteristic equation, we get:
(r−1)(r−2) = 0
So, r= 1 and r= 2. The general solution to the homogeneous
equation is:
yh=c1ex+c2e2x
Step 3: Find a Particular Solution
Since e2xis part of the homogeneous solution, try yp=Axe2x.
Substitute ypinto the non-homogeneous differential equation:
1. yp=Axe2x2. y′
p=Ae2x+ 2Axe2x3. y′′
p= 2Ae2x+ 2Ae2x+ 4Axe2x=
4Ae2x+ 4Axe2x
Substitute these into the original equation:
4Ae2x+ 4Axe2x−3(Ae2x+ 2Axe2x)+2Axe2x=e2x
4Ae2x+ 4Axe2x−3Ae2x−6Axe2x+ 2Axe2x=e2x
18
(4A−3A)e2x+ (4A−6A+ 2A)xe2x=e2x
Ae2x=e2x
Thus, A= 1. So, yp=xe2x.
Step 4: Combine Solutions
The general solution to the entire equation is:
y=yh+yp=c1ex+c2e2x+xe2x
Step 5: Apply Initial Conditions
To find c1and c2, use the given initial conditions:
1. y(0) = 2 leads to:
c1+c2= 2
2. y′(0) = 1 involves y′=c1ex+ 2c2e2x+e2x+ 2xe2x, evaluate it at
x= 0:
c1+ 2c2+ 1 = 1
c1+ 2c2= 0
Solve these equations:
From c1+ 2c2= 0 and c1+c2= 2:
c2= 2 −c1
c1+ 2(2 −c1)=0
c1+ 4 −2c1= 0
−c1+ 4 = 0
c1= 4, c2=−2
Final Answer:
y= 4ex−2e2x+xe2x
Question 8: Solving a Second-Order Differential Equation
Problem Statement: Given the second-order differential equation:
d2y
dx2−3dy
dx + 2y=e2x
Solve for yif y(0) = 2 and y′(0) = 1.
Step-by-Step Solution:
Step 1: Identify the Homogeneous Equation
The homogeneous part of the differential equation is:
d2y
dx2−3dy
dx + 2y= 0
Step 2: Solve the Homogeneous Equation
We look for solutions of the form yh=erx, which implies:
19
r2−3r+ 2 = 0
Factoring the characteristic equation, we get:
(r−1)(r−2) = 0
So, r= 1 and r= 2. The general solution to the homogeneous
equation is:
yh=c1ex+c2e2x
Step 3: Find a Particular Solution
Since e2xis part of the homogeneous solution, try yp=Axe2x.
Substitute ypinto the non-homogeneous differential equation:
1. yp=Axe2x2. y′
p=Ae2x+ 2Axe2x3. y′′
p= 2Ae2x+ 2Ae2x+ 4Axe2x=
4Ae2x+ 4Axe2x
Substitute these into the original equation:
4Ae2x+ 4Axe2x−3(Ae2x+ 2Axe2x)+2Axe2x=e2x
4Ae2x+ 4Axe2x−3Ae2x−6Axe2x+ 2Axe2x=e2x
(4A−3A)e2x+ (4A−6A+ 2A)xe2x=e2x
Ae2x=e2x
Thus, A= 1. So, yp=xe2x.
Step 4: Combine Solutions
The general solution to the entire equation is:
y=yh+yp=c1ex+c2e2x+xe2x
Step 5: Apply Initial Conditions
To find c1and c2, use the given initial conditions:
1. y(0) = 2 leads to:
c1+c2= 2
2. y′(0) = 1 involves y′=c1ex+ 2c2e2x+e2x+ 2xe2x, evaluate it at
x= 0:
c1+ 2c2+ 1 = 1
c1+ 2c2= 0
Solve these equations:
From c1+ 2c2= 0 and c1+c2= 2:
c2= 2 −c1
c1+ 2(2 −c1)=0
c1+ 4 −2c1= 0
20
−c1+ 4 = 0
c1= 4, c2=−2
Final Answer:
y= 4ex−2e2x+xe2x
Question 9
Problem: Solve the first-order linear differential equation dy
dx +2y=
x.
Solution:
Step 1: Identify the type of differential equation. The given differ-
ential equation dy
dx + 2y=xis a first-order linear differential equation.
Step 2: Find the integrating factor. The standard form of a lin-
ear differential equation is dy
dx +p(x)y=q(x). Here, p(x)=2. The
integrating factor µ(x)is given by:
µ(x) = eRp(x)dx =eR2dx =e2x
Step 3: Multiply through by the integrating factor. Multiply each
term of the differential equation by e2x:
e2xdy
dx + 2e2xy=xe2x
Step 4: Rewrite the left-hand side as a derivative of a product.
The left-hand side of the equation is the derivative of e2xy:
d
dx(e2xy) = xe2x
Step 5: Integrate both sides with respect to x. Integrating both
sides with respect to xgives:
e2xy=Zxe2xdx
Step 6: Solve the integral on the right-hand side using integration
by parts. Let u=xand dv =e2xdx, then du =dx and v=e2x
2. Applying
integration by parts (Ru dv =uv −Rv du):
Zxe2xdx =xe2x
2−Ze2x
2dx =xe2x
2−e2x
4+C
Step 7: Substitute back the expression for e2xy.
e2xy=xe2x
2−e2x
4+C
21
Step 8: Solve for y.
y=x
2−1
4+Ce−2x
Answer: The solution to the differential equation dy
dx + 2y=xis
y=x
2−1
4+Ce−2x, where Cis an arbitrary constant. Question 9:
Solving a First-Order Linear Differential Equation
Problem: Solve the first-order linear differential equation dy
dx +2y=
x.
Solution:
Step 1: Identify the type of differential equation. The given differ-
ential equation dy
dx + 2y=xis a first-order linear differential equation.
Step 2: Find the integrating factor. The standard form of a lin-
ear differential equation is dy
dx +p(x)y=q(x). Here, p(x)=2. The
integrating factor µ(x)is given by:
µ(x) = eRp(x)dx =eR2dx =e2x
Step 3: Multiply through by the integrating factor. Multiply each
term of the differential equation by e2x:
e2xdy
dx + 2e2xy=xe2x
Step 4: Rewrite the left-hand side as a derivative of a product.
The left-hand side of the equation is the derivative of e2xy:
d
dx(e2xy) = xe2x
Step 5: Integrate both sides with respect to x. Integrating both
sides with respect to xgives:
e2xy=Zxe2xdx
Step 6: Solve the integral on the right-hand side using integration
by parts. Let u=xand dv =e2xdx, then du =dx and v=e2x
2. Applying
integration by parts (Ru dv =uv −Rv du):
Zxe2xdx =xe2x
2−Ze2x
2dx =xe2x
2−e2x
4+C
Step 7: Substitute back the expression for e2xy.
e2xy=xe2x
2−e2x
4+C
Step 8: Solve for y.
y=x
2−1
4+Ce−2x
Answer: The solution to the differential equation dy
dx + 2y=xis
y=x
2−1
4+Ce−2x, where Cis an arbitrary constant.
22
Question 10
Problem Statement:
Given the differential equation:
dy
dx + 2y= sin x
Solve the differential equation using the method of integrating
factors.
Step-by-Step Solution:
Step 1: Identify the integrating factor.
The differential equation is in the form dy
dx +p(x)y=q(x)with p(x) =
2and q(x) = sin x. The integrating factor, µ(x), is given by:
µ(x) = eRp(x)dx =eR2dx =e2x
Step 2: Multiply the differential equation by the integrating factor.
Multiply every term in the original equation by e2x:
e2xdy
dx + 2e2xy=e2xsin x
Step 3: Rearrange to recognize the left side as a derivative.
The left side of the equation becomes:
d
dx(e2xy) = e2xsin x
This is because the derivative of e2xywith respect to xvia the
product rule gives back the left-hand side of our transformed equa-
tion.
Step 4: Integrate both sides with respect to x.
Integrate the left side with respect to x,
Zd
dx(e2xy)dx =Ze2xsin x dx
The left side simplifies to e2xyafter canceling the integral and
derivative operations.
As for the right side, this requires integrating e2xsin x. This is typ-
ically done using integration by parts or a known reduction formula.
For integration by parts:
Let u= sin xand dv =e2xdx, then du = cos xdx and v=1
2e2x.
Using integration by parts:
Ze2xsin x dx = (sin x)(1
2e2x)−Z(cos x)(1
2e2x)dx
Applying integration by parts a second time to the remaining integral:
Let u= cos xand dv =1
2e2xdx, then du =−sin xdx and v=1
4e2x:
23
Z(cos x)(1
2e2x)dx = (cos x)(1
4e2x)−Z(−sin x)(1
4e2x)dx
=1
2e2xsin x−1
4e2xcos x+1
4Ze2xsin x dx
Simplify and solve for the integral:
3
4Ze2xsin x dx =1
2e2xsin x−1
4e2xcos x
Ze2xsin x dx =2
3e2x(sin x−1
2cos x)
Step 5: Solve for y.
Substitute back into the equation for y:
e2xy=2
3e2x(sin x−1
2cos x) + C
y=2
3(sin x−1
2cos x) + Ce−2x
Where Cis the constant of integration.
Answer:
The solution to the differential equation dy
dx + 2y= sin xis:
y=2
3(sin x−1
2cos x) + Ce−2x
This is a general solution which includes a particular solution and
the complementary solution. Question 10
Problem Statement:
Given the differential equation:
dy
dx + 2y= sin x
Solve the differential equation using the method of integrating
factors.
Step-by-Step Solution:
Step 1: Identify the integrating factor.
The differential equation is in the form dy
dx +p(x)y=q(x)with p(x) =
2and q(x) = sin x. The integrating factor, µ(x), is given by:
µ(x) = eRp(x)dx =eR2dx =e2x
Step 2: Multiply the differential equation by the integrating factor.
Multiply every term in the original equation by e2x:
e2xdy
dx + 2e2xy=e2xsin x
24
Step 3: Rearrange to recognize the left side as a derivative.
The left side of the equation becomes:
d
dx(e2xy) = e2xsin x
This is because the derivative of e2xywith respect to xvia the
product rule gives back the left-hand side of our transformed equa-
tion.
Step 4: Integrate both sides with respect to x.
Integrate the left side with respect to x,
Zd
dx(e2xy)dx =Ze2xsin x dx
The left side simplifies to e2xyafter canceling the integral and
derivative operations.
As for the right side, this requires integrating e2xsin x. This is typ-
ically done using integration by parts or a known reduction formula.
For integration by parts:
Let u= sin xand dv =e2xdx, then du = cos xdx and v=1
2e2x.
Using integration by parts:
Ze2xsin x dx = (sin x)(1
2e2x)−Z(cos x)(1
2e2x)dx
Applying integration by parts a second time to the remaining integral:
Let u= cos xand dv =1
2e2xdx, then du =−sin xdx and v=1
4e2x:
Z(cos x)(1
2e2x)dx = (cos x)(1
4e2x)−Z(−sin x)(1
4e2x)dx
=1
2e2xsin x−1
4e2xcos x+1
4Ze2xsin x dx
Simplify and solve for the integral:
3
4Ze2xsin x dx =1
2e2xsin x−1
4e2xcos x
Ze2xsin x dx =2
3e2x(sin x−1
2cos x)
Step 5: Solve for y.
Substitute back into the equation for y:
e2xy=2
3e2x(sin x−1
2cos x) + C
y=2
3(sin x−1
2cos x) + Ce−2x
Where Cis the constant of integration.
25
Answer:
The solution to the differential equation dy
dx + 2y= sin xis:
y=2
3(sin x−1
2cos x) + Ce−2x
This is a general solution which includes a particular solution and
the complementary solution.
Question 11
Problem: Solve the differential equation:
y′′ −9y= 0
Solution: Step 1: Identify the Type of Equation The given dif-
ferential equation y′′ −9y= 0 is a second-order linear homogeneous
differential equation.
Step 2: Assume a Solution Form We assume a solution of the form
y=ert, where ris a constant. Plugging this form into the differential
equation, we get:
y=ert
y′=rert
y′′ =r2ert
Step 3: Substitute and Formulate the Characteristic Equation
Substituting these into the differential equation y′′ −9y= 0 gives:
r2ert −9ert = 0
Since ert = 0, we can divide through by ert:
r2−9 = 0
Step 4: Solve the Characteristic Equation Solve for r:
r2= 9
r=±3
Step 5: Write the General Solution With the roots r= 3 and
r=−3, the general solution to the differential equation is:
y(t) = c1e3t+c2e−3t
where c1and c2are arbitrary constants.
Conclusion: The solution to the differential equation y′′ −9y= 0
is y(t) = c1e3t+c2e−3t. This represents a combination of exponential
26
growth and decay, depending on the values of c1and c2. Question 11:
Solving a Homogeneous Differential Equation
Problem: Solve the differential equation:
y′′ −9y= 0
Solution: Step 1: Identify the Type of Equation The given dif-
ferential equation y′′ −9y= 0 is a second-order linear homogeneous
differential equation.
Step 2: Assume a Solution Form We assume a solution of the form
y=ert, where ris a constant. Plugging this form into the differential
equation, we get:
y=ert
y′=rert
y′′ =r2ert
Step 3: Substitute and Formulate the Characteristic Equation
Substituting these into the differential equation y′′ −9y= 0 gives:
r2ert −9ert = 0
Since ert = 0, we can divide through by ert:
r2−9 = 0
Step 4: Solve the Characteristic Equation Solve for r:
r2= 9
r=±3
Step 5: Write the General Solution With the roots r= 3 and
r=−3, the general solution to the differential equation is:
y(t) = c1e3t+c2e−3t
where c1and c2are arbitrary constants.
Conclusion: The solution to the differential equation y′′ −9y= 0
is y(t) = c1e3t+c2e−3t. This represents a combination of exponential
growth and decay, depending on the values of c1and c2.
27
Question 12
Problem Statement: Solve the differential equation
dy
dx =xy2
given that y(1) = 1.
Solution:
Step 1: Separate the Variables Start by rewriting the differential
equation in a form that allows separating the variables x and y:
dy
dx =xy2
Rearrange this to isolate terms involving yon one side and those
involving xon the other: dy
y2=x dx
Step 2: Integrate Both Sides Now, integrate both sides:
Zdy
y2=Zx dx
Calculate the left hand side:
Zy−2dy =−y−1+C1=−1
y+C1
Calculate the right hand side:
Zx dx =1
2x2+C2
Step 3: Combine Constants and Solve for y Equating both sides,
we have:
−1
y+C1=1
2x2+C2
We can combine C1and C2into a single constant Csince constants of
integration can generically be merged:
−1
y=1
2x2+C
Step 4: Use the Initial Condition to Find C We are given the initial
condition y(1) = 1. Plugging this into our integrated equation:
−1
1=1
2(1)2+C
−1 = 1
2+C
28
C=−1−1
2=−3
2
Step 5: Write the General Solution Substituting Cback in:
−1
y=1
2x2−3
2
1
y=−1
2x2+3
2
y=2
3−x2
Conclusion: The solution to the differential equation given the
initial condition y(1) = 1 is
y=2
3−x2.
This answer satisfies the differential equation and the initial condi-
tion as shown in the steps above. Question 12: Solving a Differential
Equation Using Separation of Variables
Problem Statement: Solve the differential equation
dy
dx =xy2
given that y(1) = 1.
Solution:
Step 1: Separate the Variables Start by rewriting the differential
equation in a form that allows separating the variables x and y:
dy
dx =xy2
Rearrange this to isolate terms involving yon one side and those
involving xon the other: dy
y2=x dx
Step 2: Integrate Both Sides Now, integrate both sides:
Zdy
y2=Zx dx
Calculate the left hand side:
Zy−2dy =−y−1+C1=−1
y+C1
Calculate the right hand side:
Zx dx =1
2x2+C2
29
Step 3: Combine Constants and Solve for y Equating both sides,
we have:
−1
y+C1=1
2x2+C2
We can combine C1and C2into a single constant Csince constants of
integration can generically be merged:
−1
y=1
2x2+C
Step 4: Use the Initial Condition to Find C We are given the initial
condition y(1) = 1. Plugging this into our integrated equation:
−1
1=1
2(1)2+C
−1 = 1
2+C
C=−1−1
2=−3
2
Step 5: Write the General Solution Substituting Cback in:
−1
y=1
2x2−3
2
1
y=−1
2x2+3
2
y=2
3−x2
Conclusion: The solution to the differential equation given the
initial condition y(1) = 1 is
y=2
3−x2.
This answer satisfies the differential equation and the initial con-
dition as shown in the steps above.
Question 13
Problem Statement: Solve the following non-linear differential
equation using separation of variables:
dy
dx =y2cos(x)
—
Solution:
30
Step-by-Step Breakdown:
Step 1: Separate Variables We begin by separating the variables
y and x. Rearrange the given differential equation so that all terms
involving y are on one side and all terms involving x are on the other
side:
dy
dx =y2cos(x)
First, isolate terms involving y and dx:
dy
y2= cos(x)dx
Step 2: Integrate Both Sides Now, integrate both sides of the
equation. The left side with respect to y and the right side with
respect to x:
Zdy
y2=Zcos(x)dx
The integral on the left side can be solved by recognizing it as a
standard integral:
Zdy
y2=Zy−2dy =−1
y+C1
The integral on the right side is a simple trigonometric integral:
Zcos(x)dx = sin(x) + C2
Step 3: Write General Solution Putting these results together,
equating the two sides, we have:
−1
y+C1= sin(x) + C2
For simplicity, combine the constants C1and C2into a single con-
stant C, where C=C1−C2:
−1
y= sin(x) + C
Step 4: Solve for y Solve the equation for y to get the solution in
terms of y:
y=−1
sin(x) + C
This is the general solution to the original differential equation.
Conclusion: The solution to the differential equation dy
dx =y2cos(x)
is
31
y(x) = −1
sin(x) + C
where Cis an arbitrary constant which will depend on initial condi-
tions or specific boundary values. Question 13: Solve the Non-Linear
First Order Differential Equation
Problem Statement: Solve the following non-linear differential
equation using separation of variables:
dy
dx =y2cos(x)
—
Solution:
Step-by-Step Breakdown:
Step 1: Separate Variables We begin by separating the variables
y and x. Rearrange the given differential equation so that all terms
involving y are on one side and all terms involving x are on the other
side:
dy
dx =y2cos(x)
First, isolate terms involving y and dx:
dy
y2= cos(x)dx
Step 2: Integrate Both Sides Now, integrate both sides of the
equation. The left side with respect to y and the right side with
respect to x:
Zdy
y2=Zcos(x)dx
The integral on the left side can be solved by recognizing it as a
standard integral:
Zdy
y2=Zy−2dy =−1
y+C1
The integral on the right side is a simple trigonometric integral:
Zcos(x)dx = sin(x) + C2
Step 3: Write General Solution Putting these results together,
equating the two sides, we have:
−1
y+C1= sin(x) + C2
32
For simplicity, combine the constants C1and C2into a single con-
stant C, where C=C1−C2:
−1
y= sin(x) + C
Step 4: Solve for y Solve the equation for y to get the solution in
terms of y:
y=−1
sin(x) + C
This is the general solution to the original differential equation.
Conclusion: The solution to the differential equation dy
dx =y2cos(x)
is
y(x) = −1
sin(x) + C
where Cis an arbitrary constant which will depend on initial con-
ditions or specific boundary values.
Question 14
Question:
Solve the differential equation given that y= 3x+ 5 is a particular
solution of the nonhomogeneous equation:
y′′ + 4y= 12x+ 8
Step-by-Step Solution:
Step 1: Identify the structure of the particular solution The given
particular solution is yp= 3x+ 5. We start by validating if it is indeed
a solution to the differential equation.
Step 2: Compute derivatives of the particular solution To plug into
the differential equation, compute the first and second derivatives of
yp:
yp= 3x+ 5
y′
p= 3
y′′
p= 0
Step 3: Substitute into the differential equation Substitute yp,y′
p,
and y′′
pinto the differential equation:
y′′ + 4y= 0 + 4(3x+ 5)
0 + 12x+ 20
33
Notice that this results to 12x+ 20, but the nonhomogeneous term in
the differential equation is 12x+ 8. This means there might have been
an error, but we’ll move forward by looking for a complementary
solution.
Step 4: Solve the corresponding homogeneous equation The ho-
mogeneous equation is:
y′′ + 4y= 0
This is a second-order linear homogeneous equation with constant
coefficients. The characteristic equation is:
r2+ 4 = 0
r2=−4
r=±2i
Step 5: Write the general solution of the homogeneous equation
The solution to the homogeneous equation, with complex roots ±2i,
is:
yh=c1cos(2x) + c2sin(2x)
Step 6: Construct the general solution to the nonhomogeneous
equation The general solution yto the nonhomogeneous equation is a
combination of the homogeneous solution yhand a particular solution
yp. We know yp= 3x+ 5 doesn’t satisfy the nonhomogeneous term
exactly. Therefore, we adjust ypto yp= 3x+ 2 to match the constant:
y=yh+yp
y=c1cos(2x) + c2sin(2x)+3x+ 2
Step 7: Validate the solution We earlier miscomputed 4(3x+ 5) =
12x+ 20; the error was in including +5 from yp; however, we adjusted
+2 instead of +5 to make 12x+ 8 work correctly.
Therefore, the final, correct general solution is:
y=c1cos(2x) + c2sin(2x)+3x+ 2
This approach shows how we construct and verify solutions to dif-
ferential equations step by step, ensuring all components are right-
fully included and verified. Differential Equations Question 14 for
Liberty University
Question:
Solve the differential equation given that y= 3x+ 5 is a particular
solution of the nonhomogeneous equation:
y′′ + 4y= 12x+ 8
Step-by-Step Solution:
34
Step 1: Identify the structure of the particular solution The given
particular solution is yp= 3x+ 5. We start by validating if it is indeed
a solution to the differential equation.
Step 2: Compute derivatives of the particular solution To plug into
the differential equation, compute the first and second derivatives of
yp:
yp= 3x+ 5
y′
p= 3
y′′
p= 0
Step 3: Substitute into the differential equation Substitute yp,y′
p,
and y′′
pinto the differential equation:
y′′ + 4y= 0 + 4(3x+ 5)
0 + 12x+ 20
Notice that this results to 12x+ 20, but the nonhomogeneous term in
the differential equation is 12x+ 8. This means there might have been
an error, but we’ll move forward by looking for a complementary
solution.
Step 4: Solve the corresponding homogeneous equation The ho-
mogeneous equation is:
y′′ + 4y= 0
This is a second-order linear homogeneous equation with constant
coefficients. The characteristic equation is:
r2+ 4 = 0
r2=−4
r=±2i
Step 5: Write the general solution of the homogeneous equation
The solution to the homogeneous equation, with complex roots ±2i,
is:
yh=c1cos(2x) + c2sin(2x)
Step 6: Construct the general solution to the nonhomogeneous
equation The general solution yto the nonhomogeneous equation is a
combination of the homogeneous solution yhand a particular solution
yp. We know yp= 3x+ 5 doesn’t satisfy the nonhomogeneous term
exactly. Therefore, we adjust ypto yp= 3x+ 2 to match the constant:
y=yh+yp
y=c1cos(2x) + c2sin(2x)+3x+ 2
35
Step 7: Validate the solution We earlier miscomputed 4(3x+ 5) =
12x+ 20; the error was in including +5 from yp; however, we adjusted
+2 instead of +5 to make 12x+ 8 work correctly.
Therefore, the final, correct general solution is:
y=c1cos(2x) + c2sin(2x)+3x+ 2
This approach shows how we construct and verify solutions to dif-
ferential equations step by step, ensuring all components are right-
fully included and verified.
Question 15
Problem Statement: Solve the first-order linear differential equa-
tion: dy
dx + 2y=e−2x
where yis a function of x.
Step-by-Step Solution:
Step 1: Identify the parts of the differential equation. The given
equation is linear and of the form:
dy
dx +p(x)y=q(x)
where p(x)=2and q(x) = e−2x.
Step 2: Find the integrating factor. The integrating factor, µ(x),
is given by:
µ(x) = eRp(x)dx
µ(x) = eR2dx =e2x
Step 3: Multiply the original differential equation by the integrat-
ing factor.
e2xdy
dx + 2e2xy=e2xe−2x
e2xdy
dx + 2e2xy= 1
Step 4: Rewrite the left-hand side as the derivative of a product.
The left-hand side can be written as:
d
dx(e2xy) = 1
Step 5: Integrate both sides with respect to x.
Zd
dx(e2xy)dx =Z1dx
36
e2xy=x+C
where Cis the constant of integration.
Step 6: Solve for y.
y=x+C
e2x
y=xe−2x+Ce−2x
Final Answer: The general solution to the differential equation
dy
dx + 2y=e−2xis:
y=xe−2x+Ce−2x
where Cis an arbitrary constant. Question 15: Solving a First-Order
Linear Differential Equation
Problem Statement: Solve the first-order linear differential equa-
tion: dy
dx + 2y=e−2x
where yis a function of x.
Step-by-Step Solution:
Step 1: Identify the parts of the differential equation. The given
equation is linear and of the form:
dy
dx +p(x)y=q(x)
where p(x)=2and q(x) = e−2x.
Step 2: Find the integrating factor. The integrating factor, µ(x),
is given by:
µ(x) = eRp(x)dx
µ(x) = eR2dx =e2x
Step 3: Multiply the original differential equation by the integrat-
ing factor.
e2xdy
dx + 2e2xy=e2xe−2x
e2xdy
dx + 2e2xy= 1
Step 4: Rewrite the left-hand side as the derivative of a product.
The left-hand side can be written as:
d
dx(e2xy) = 1
Step 5: Integrate both sides with respect to x.
Zd
dx(e2xy)dx =Z1dx
37
e2xy=x+C
where Cis the constant of integration.
Step 6: Solve for y.
y=x+C
e2x
y=xe−2x+Ce−2x
Final Answer: The general solution to the differential equation
dy
dx + 2y=e−2xis:
y=xe−2x+Ce−2x
where Cis an arbitrary constant.
38