SlideShare a Scribd company logo
1 of 17
At the end of this lesson you should be able to:
β€’ Solve First Order Differential Equations
FC311 – Intermediate Maths
Differential equations
In this course we will mainly be looking at first-order differential equations.
A differential equation in two variables x and y is an equation that contains derivatives of y
with respect to x. For example:
2
= 4 +1,
dy
x
dx
3
= ,
dy
xy
dx
2 + = 5 .
dy
x y xy
dx
The order of a differential equation is given by the highest order of derivative that occurs in
it.
First-order differential equations contain terms in ,
dy
dx
second-order differential equations contain terms in ,
2
2
d y
dx
third-order differential equations contain terms in , etc.
3
3
d y
dx
Differential equations
For example, suppose we have the differential equation:
The solution to a differential equation in x and y will take the form y = f(x).
The simplest differential equations are those of the form:
f
= ( )
dy
x
dx
Differential equations of this form can be solved by integrating both sides with respect to x
to give:
f
= ( )
y x dx

= 4 +1
dy
x
dx
Differential equations of the form = f(x)
Integrating both sides with respect to x gives:
dy
dx
= (4 +1)
y x dx

2
= 2 + +
y x x c
Since the constant c can take any value, this represents a whole family of solutions as
shown here: 𝑦 = 2π‘₯2
+ π‘₯ + 17. 𝑦 = 2π‘₯2
+ π‘₯ βˆ’ 4011. 𝑦 = 2π‘₯2
+ π‘₯ βˆ’ πœ‹
These are just three examples. There are an infinite number of possibilities
This is called the general solution
to the equation .
dy
x
dx
= 4 +1
Finding a particular solution
Suppose that as well as being given the differential equation:
Substituting x = 1 and y = 4:
we are also told that when x = 1, y = 4.
We can use this additional information to find the value of the arbitrary constant c in the
general solution:
y x x c
2
= 2 + +
4 = 2 + 1 + c
c = 1
This gives us the particular solution: y x x
2
= 2 + +1
= 4 +1
dy
x
dx
Solving first-order differential equations
Find the particular solution to the differential equation
given that y = 6 when x = 0.
Divide both sides by (x2 + 1):
Integrate both sides with respect to x:
dy
x x
dx
2
( +1) = 4
2
4
=
+1
dy x
dx x
x
y
x
 2
2
= 2
+1
y x c
2
= 2ln( +1)+
We can use brackets
because x2 + 1 > 0.
Writing the quotient
in the form .
f
f
'( )
( )
x
x
Solving first-order differential equations
Substitute x = 0 and y = 6:
The particular solution is therefore:
c
6 = 2ln(1)+
c = 6
y x2
= 2ln( +1)+6
Separating variables
Differential equations that can be arranged in the form
can be solved by the method of separating the variables.
This method works by collecting all the terms in y, including the β€˜dy’, on one side of the
equation, and all the terms in x, including the β€˜dx’, on the other side, and then integrating.
f g
( ) = ( )
dy
y x
dx
f g
( ) = ( )
y dy x dx
 
f g
( ) = ( )
y dy x dx
Separating variables
Find the general solution to .
+ 2
=
dy x
dx y
= ( + 2)
y dy x dx
 
2 2
= + 2 +
2 2
y x
x c
2 2
= + 4 +
y x x A
We only need a β€˜c’ on
one side of the equation.
You can miss out the step
and use the fact that
to separate the dy from the
dx directly.
... =...
dy
dx dy
dx
= ( + 2)
dy
y dx x dx
dx
 
2
= + 4 +
y x x A
Separate the variables and integrate:
Rearrange to give: = + 2
dy
y x
dx
It doesn’t make much
sense to have β€œ2𝑐” since
𝑐 is just a constant who’s
value we don’t know. So
we will replace 2𝑐 with 𝐴
Separable variables
Separating the variables and integrating with respect to x gives:
3
=
y x
e dy e dx
 
3
1
3
= +
y x
e e c
Using the laws of indices this can be written as:
3
= x y
dy
e e
dx
ο€­
3
1
3
= ln( + )
x
y e c
Rearrange to get 𝑦, by taking the natural logarithms of both
sides:
Find the particular solution to the differential equation
given that y = ln when x = 0.
3
= x y
dy
e
dx
ο€­
7
3
Separable variables
The particular solution is therefore:
Given that y = ln when x = 0:
7
3
7 1
3 3
ln = ln( + )
c
= 2
c
3
1
3
= ln( +2)
x
y e
Your turn
Find the particular solution to the following differential equation, where
𝑦 = 8 at π‘₯ = 1
𝑑𝑦
𝑑π‘₯
=
9π‘₯ + 6 𝑦
1
3
π‘₯
Solution
𝑦 =
2
3
9π‘₯ + 6 ln π‘₯ βˆ’ 3
3
2
To solve differential equations, we may have to
use any one ( or possibly more than one) of the
integration techniques we have learned.
β€’ Integration by substitution
β€’ Integration by parts
β€’ Integration by partial fractions
β€’ Integration with trig identities
β€’
𝑓′(π‘₯)
𝑓(π‘₯)
𝑑π‘₯ = ln 𝑓 π‘₯ + 𝑐
β€’ (the formula sheet)
We also need to rearrange to write our answer
in the form y=f(x) unless a question tells us
otherwise.
Example find the general solution for :
cos(π‘₯)
𝑑𝑦
𝑑π‘₯
=
𝑦π‘₯
π‘π‘œπ‘ (π‘₯)
1
𝑦
𝑑𝑦 =
π‘₯
π‘π‘œπ‘ 2(π‘₯)
𝑑π‘₯
1
𝑦
𝑑𝑦 = π‘₯𝑠𝑒𝑐2π‘₯𝑑π‘₯
ln 𝑦 = π‘₯π‘‘π‘Žπ‘›π‘₯ βˆ’ π‘‘π‘Žπ‘›π‘₯𝑑π‘₯
To solve the RHS, we must
use integration by parts
ln 𝑦 = π‘₯π‘‘π‘Žπ‘›π‘₯ βˆ’ 𝑙𝑛 sec π‘₯ + 𝑐
ln 𝑦 = π‘₯π‘‘π‘Žπ‘›π‘₯ + 𝑙𝑛 cos π‘₯ + 𝑐
Use the power rule, to take
-1 inside the logarithm
Example find the general solution for :
cos(π‘₯)
𝑑𝑦
𝑑π‘₯
=
𝑦π‘₯
π‘π‘œπ‘ (π‘₯)
ln 𝑦 = π‘₯π‘‘π‘Žπ‘›π‘₯ + 𝑙𝑛 cos π‘₯ + 𝑐
𝑦 = 𝑒π‘₯π‘‘π‘Žπ‘›π‘₯+𝑙𝑛 cos π‘₯ +𝑐
𝑦 = 𝑒π‘₯π‘‘π‘Žπ‘›π‘₯ Γ— 𝑒𝑙𝑛 cos π‘₯ Γ— 𝑒𝑐
Use the laws of indices
to separate the powers.
Now 𝑒𝑐
, is just a
constant, so we can call
it 𝐴.
𝑦 = 𝐴 cos π‘₯ 𝑒π‘₯π‘‘π‘Žπ‘›π‘₯
This is the simplest way
to give the solution.

More Related Content

Similar to Extra Help 19- differential equations.pptx

1st order differential equations
1st order differential equations1st order differential equations
1st order differential equationsNisarg Amin
Β 
differentiol equation.pptx
differentiol equation.pptxdifferentiol equation.pptx
differentiol equation.pptxPlanningHCEGC
Β 
19 2
19 219 2
19 2Mayar Zo
Β 
Week 2
Week 2 Week 2
Week 2 Hazrul156
Β 
Solving Linear Equations
Solving Linear EquationsSolving Linear Equations
Solving Linear Equationstaco40
Β 
Top Schools in delhi NCR
Top Schools in delhi NCRTop Schools in delhi NCR
Top Schools in delhi NCREdhole.com
Β 
DIFFERENTIAL EQUATION
DIFFERENTIAL EQUATIONDIFFERENTIAL EQUATION
DIFFERENTIAL EQUATIONshahzadebaujiti
Β 
Double integration
Double integrationDouble integration
Double integrationAbhishek N Nair
Β 
3. DERIVATIVE BY INCREMENT IN CALULUS 01
3. DERIVATIVE BY INCREMENT IN CALULUS 013. DERIVATIVE BY INCREMENT IN CALULUS 01
3. DERIVATIVE BY INCREMENT IN CALULUS 01oliverosmarcial24
Β 
Solution 3
Solution 3Solution 3
Solution 3aldrins
Β 
Partial Fraction ppt presentation of engg math
Partial Fraction ppt presentation of engg mathPartial Fraction ppt presentation of engg math
Partial Fraction ppt presentation of engg mathjaidevpaulmca
Β 
C2 st lecture 3 handout
C2 st lecture 3 handoutC2 st lecture 3 handout
C2 st lecture 3 handoutfatima d
Β 
Solution 3
Solution 3Solution 3
Solution 3aldrins
Β 
Chapter 9 differentiation
Chapter 9  differentiationChapter 9  differentiation
Chapter 9 differentiationatiqah ayie
Β 
Chapter 9- Differentiation Add Maths Form 4 SPM
Chapter 9- Differentiation Add Maths Form 4 SPMChapter 9- Differentiation Add Maths Form 4 SPM
Chapter 9- Differentiation Add Maths Form 4 SPMyw t
Β 
AP Calculus Project
AP Calculus ProjectAP Calculus Project
AP Calculus Projectkaitlinbianchi
Β 
Calculus 08 techniques_of_integration
Calculus 08 techniques_of_integrationCalculus 08 techniques_of_integration
Calculus 08 techniques_of_integrationtutulk
Β 

Similar to Extra Help 19- differential equations.pptx (20)

1st order differential equations
1st order differential equations1st order differential equations
1st order differential equations
Β 
differentiol equation.pptx
differentiol equation.pptxdifferentiol equation.pptx
differentiol equation.pptx
Β 
19 2
19 219 2
19 2
Β 
Week 2
Week 2 Week 2
Week 2
Β 
Solving Linear Equations
Solving Linear EquationsSolving Linear Equations
Solving Linear Equations
Β 
Top Schools in delhi NCR
Top Schools in delhi NCRTop Schools in delhi NCR
Top Schools in delhi NCR
Β 
DIFFERENTIAL EQUATION
DIFFERENTIAL EQUATIONDIFFERENTIAL EQUATION
DIFFERENTIAL EQUATION
Β 
19 6
19 619 6
19 6
Β 
Double integration
Double integrationDouble integration
Double integration
Β 
3. DERIVATIVE BY INCREMENT IN CALULUS 01
3. DERIVATIVE BY INCREMENT IN CALULUS 013. DERIVATIVE BY INCREMENT IN CALULUS 01
3. DERIVATIVE BY INCREMENT IN CALULUS 01
Β 
125 5.3
125 5.3125 5.3
125 5.3
Β 
Differential Equation
Differential EquationDifferential Equation
Differential Equation
Β 
Solution 3
Solution 3Solution 3
Solution 3
Β 
Partial Fraction ppt presentation of engg math
Partial Fraction ppt presentation of engg mathPartial Fraction ppt presentation of engg math
Partial Fraction ppt presentation of engg math
Β 
C2 st lecture 3 handout
C2 st lecture 3 handoutC2 st lecture 3 handout
C2 st lecture 3 handout
Β 
Solution 3
Solution 3Solution 3
Solution 3
Β 
Chapter 9 differentiation
Chapter 9  differentiationChapter 9  differentiation
Chapter 9 differentiation
Β 
Chapter 9- Differentiation Add Maths Form 4 SPM
Chapter 9- Differentiation Add Maths Form 4 SPMChapter 9- Differentiation Add Maths Form 4 SPM
Chapter 9- Differentiation Add Maths Form 4 SPM
Β 
AP Calculus Project
AP Calculus ProjectAP Calculus Project
AP Calculus Project
Β 
Calculus 08 techniques_of_integration
Calculus 08 techniques_of_integrationCalculus 08 techniques_of_integration
Calculus 08 techniques_of_integration
Β 

Recently uploaded

IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
Β 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
Β 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
Β 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
Β 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
Β 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
Β 
microprocessor 8085 and its interfacing
microprocessor 8085  and its interfacingmicroprocessor 8085  and its interfacing
microprocessor 8085 and its interfacingjaychoudhary37
Β 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
Β 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
Β 
Gurgaon ✑️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✑️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✑️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✑️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
Β 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
Β 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
Β 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLDeelipZope
Β 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
Β 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
Β 

Recently uploaded (20)

IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
Β 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
Β 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Β 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
Β 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
Β 
β˜… CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
β˜… CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCRβ˜… CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
β˜… CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
Β 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
Β 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
Β 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
Β 
microprocessor 8085 and its interfacing
microprocessor 8085  and its interfacingmicroprocessor 8085  and its interfacing
microprocessor 8085 and its interfacing
Β 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
Β 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Β 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
Β 
Gurgaon ✑️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✑️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✑️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✑️9711147426✨Call In girls Gurgaon Sector 51 escort service
Β 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
Β 
young call girls in Rajiv ChowkπŸ” 9953056974 πŸ” Delhi escort Service
young call girls in Rajiv ChowkπŸ” 9953056974 πŸ” Delhi escort Serviceyoung call girls in Rajiv ChowkπŸ” 9953056974 πŸ” Delhi escort Service
young call girls in Rajiv ChowkπŸ” 9953056974 πŸ” Delhi escort Service
Β 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
Β 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCL
Β 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
Β 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
Β 

Extra Help 19- differential equations.pptx

  • 1. At the end of this lesson you should be able to: β€’ Solve First Order Differential Equations FC311 – Intermediate Maths
  • 2. Differential equations In this course we will mainly be looking at first-order differential equations. A differential equation in two variables x and y is an equation that contains derivatives of y with respect to x. For example: 2 = 4 +1, dy x dx 3 = , dy xy dx 2 + = 5 . dy x y xy dx The order of a differential equation is given by the highest order of derivative that occurs in it. First-order differential equations contain terms in , dy dx second-order differential equations contain terms in , 2 2 d y dx third-order differential equations contain terms in , etc. 3 3 d y dx
  • 3. Differential equations For example, suppose we have the differential equation: The solution to a differential equation in x and y will take the form y = f(x). The simplest differential equations are those of the form: f = ( ) dy x dx Differential equations of this form can be solved by integrating both sides with respect to x to give: f = ( ) y x dx  = 4 +1 dy x dx
  • 4. Differential equations of the form = f(x) Integrating both sides with respect to x gives: dy dx = (4 +1) y x dx  2 = 2 + + y x x c Since the constant c can take any value, this represents a whole family of solutions as shown here: 𝑦 = 2π‘₯2 + π‘₯ + 17. 𝑦 = 2π‘₯2 + π‘₯ βˆ’ 4011. 𝑦 = 2π‘₯2 + π‘₯ βˆ’ πœ‹ These are just three examples. There are an infinite number of possibilities This is called the general solution to the equation . dy x dx = 4 +1
  • 5. Finding a particular solution Suppose that as well as being given the differential equation: Substituting x = 1 and y = 4: we are also told that when x = 1, y = 4. We can use this additional information to find the value of the arbitrary constant c in the general solution: y x x c 2 = 2 + + 4 = 2 + 1 + c c = 1 This gives us the particular solution: y x x 2 = 2 + +1 = 4 +1 dy x dx
  • 6. Solving first-order differential equations Find the particular solution to the differential equation given that y = 6 when x = 0. Divide both sides by (x2 + 1): Integrate both sides with respect to x: dy x x dx 2 ( +1) = 4 2 4 = +1 dy x dx x x y x  2 2 = 2 +1 y x c 2 = 2ln( +1)+ We can use brackets because x2 + 1 > 0. Writing the quotient in the form . f f '( ) ( ) x x
  • 7. Solving first-order differential equations Substitute x = 0 and y = 6: The particular solution is therefore: c 6 = 2ln(1)+ c = 6 y x2 = 2ln( +1)+6
  • 8. Separating variables Differential equations that can be arranged in the form can be solved by the method of separating the variables. This method works by collecting all the terms in y, including the β€˜dy’, on one side of the equation, and all the terms in x, including the β€˜dx’, on the other side, and then integrating. f g ( ) = ( ) dy y x dx f g ( ) = ( ) y dy x dx   f g ( ) = ( ) y dy x dx
  • 9. Separating variables Find the general solution to . + 2 = dy x dx y = ( + 2) y dy x dx   2 2 = + 2 + 2 2 y x x c 2 2 = + 4 + y x x A We only need a β€˜c’ on one side of the equation. You can miss out the step and use the fact that to separate the dy from the dx directly. ... =... dy dx dy dx = ( + 2) dy y dx x dx dx   2 = + 4 + y x x A Separate the variables and integrate: Rearrange to give: = + 2 dy y x dx It doesn’t make much sense to have β€œ2𝑐” since 𝑐 is just a constant who’s value we don’t know. So we will replace 2𝑐 with 𝐴
  • 10. Separable variables Separating the variables and integrating with respect to x gives: 3 = y x e dy e dx   3 1 3 = + y x e e c Using the laws of indices this can be written as: 3 = x y dy e e dx ο€­ 3 1 3 = ln( + ) x y e c Rearrange to get 𝑦, by taking the natural logarithms of both sides: Find the particular solution to the differential equation given that y = ln when x = 0. 3 = x y dy e dx ο€­ 7 3
  • 11. Separable variables The particular solution is therefore: Given that y = ln when x = 0: 7 3 7 1 3 3 ln = ln( + ) c = 2 c 3 1 3 = ln( +2) x y e
  • 12. Your turn Find the particular solution to the following differential equation, where 𝑦 = 8 at π‘₯ = 1 𝑑𝑦 𝑑π‘₯ = 9π‘₯ + 6 𝑦 1 3 π‘₯
  • 13. Solution 𝑦 = 2 3 9π‘₯ + 6 ln π‘₯ βˆ’ 3 3 2
  • 14. To solve differential equations, we may have to use any one ( or possibly more than one) of the integration techniques we have learned. β€’ Integration by substitution β€’ Integration by parts β€’ Integration by partial fractions β€’ Integration with trig identities β€’ 𝑓′(π‘₯) 𝑓(π‘₯) 𝑑π‘₯ = ln 𝑓 π‘₯ + 𝑐 β€’ (the formula sheet)
  • 15. We also need to rearrange to write our answer in the form y=f(x) unless a question tells us otherwise.
  • 16. Example find the general solution for : cos(π‘₯) 𝑑𝑦 𝑑π‘₯ = 𝑦π‘₯ π‘π‘œπ‘ (π‘₯) 1 𝑦 𝑑𝑦 = π‘₯ π‘π‘œπ‘ 2(π‘₯) 𝑑π‘₯ 1 𝑦 𝑑𝑦 = π‘₯𝑠𝑒𝑐2π‘₯𝑑π‘₯ ln 𝑦 = π‘₯π‘‘π‘Žπ‘›π‘₯ βˆ’ π‘‘π‘Žπ‘›π‘₯𝑑π‘₯ To solve the RHS, we must use integration by parts ln 𝑦 = π‘₯π‘‘π‘Žπ‘›π‘₯ βˆ’ 𝑙𝑛 sec π‘₯ + 𝑐 ln 𝑦 = π‘₯π‘‘π‘Žπ‘›π‘₯ + 𝑙𝑛 cos π‘₯ + 𝑐 Use the power rule, to take -1 inside the logarithm
  • 17. Example find the general solution for : cos(π‘₯) 𝑑𝑦 𝑑π‘₯ = 𝑦π‘₯ π‘π‘œπ‘ (π‘₯) ln 𝑦 = π‘₯π‘‘π‘Žπ‘›π‘₯ + 𝑙𝑛 cos π‘₯ + 𝑐 𝑦 = 𝑒π‘₯π‘‘π‘Žπ‘›π‘₯+𝑙𝑛 cos π‘₯ +𝑐 𝑦 = 𝑒π‘₯π‘‘π‘Žπ‘›π‘₯ Γ— 𝑒𝑙𝑛 cos π‘₯ Γ— 𝑒𝑐 Use the laws of indices to separate the powers. Now 𝑒𝑐 , is just a constant, so we can call it 𝐴. 𝑦 = 𝐴 cos π‘₯ 𝑒π‘₯π‘‘π‘Žπ‘›π‘₯ This is the simplest way to give the solution.