Advanced Math Solutions – Ordinary Differential Equations Calculator, Linear ODE (2024)

Ordinary differential equations can be a little tricky. In a previous post, we talked about a brief overview of ODEs. In this post, we will focus on a specific type of ODE, linear first order differential equations. A linear first order differential equation is an ODE that can be put in the form

\frac{dy}{dx}+p(x)y=q(x)

where p and q are continuous functions on a given interval. In linear first order differential equations, we can derive a formula for the solution above.

How to solve a linear first order differential equation:

  1. Put the equation into form\frac{dy}{dx}+p(x)y=q(x)
  • This step is very important. You cannot solve, unless the equation is in this form.
  • Set p(x)=(\ln(μ(x)))' and solve for μ(x)
    • μ(x) is known as the integrating factor
    • Integrate both sides
    • Don’t forget the unknown constant, c, and when you can combine multiple unknown constants
  • Multiply the equation in Step 1 by μ(x) and simplify
  • Use the product rule, f\cdot g^'+f^'\cdot g on the left side of the equation to make the left side of the equation equal to (μ(x)y(x))' and write it as that:

    μ(x)\frac{dy}{dx}+μ(x)p(x)y=μ(x)q(x)\quad\rightarrow\quad(μ(x)y(x))^'=μ(x)q(x)

  • Integrate and solve for y(x)

    • Don’t forget the unknown constant and when you can combine multiple unknown

    We will go through this first example step by step (click here for a more detailed step by step):

    Advanced Math Solutions – Ordinary Differential Equations Calculator, Linear ODE (1)

    1. Put the equation in the form of a first order linear ODE

    Advanced Math Solutions – Ordinary Differential Equations Calculator, Linear ODE (2)


    2. Solve for µ(x)


    Advanced Math Solutions – Ordinary Differential Equations Calculator, Linear ODE (3)

    We integrate both sides to find µ(x).

    3. Multiply by µ(x) and simplify

    Advanced Math Solutions – Ordinary Differential Equations Calculator, Linear ODE (4)

    4. Make the left side equal to the product rule

    Advanced Math Solutions – Ordinary Differential Equations Calculator, Linear ODE (5)

    5. Integrate and solve for y(x)

    Advanced Math Solutions – Ordinary Differential Equations Calculator, Linear ODE (6)

    Here’s another example (click here):

    Advanced Math Solutions – Ordinary Differential Equations Calculator, Linear ODE (7)

    Last example (click here):

    Advanced Math Solutions – Ordinary Differential Equations Calculator, Linear ODE (8)

    Linear first order differential equations may look intimidating at first sight. These problems do take some time to solve, but are not very hard. The most important thing to remember is to not forget about the unknown constant, c.

    Until next time,

    Leah

    Advanced Math Solutions – Ordinary Differential Equations Calculator, Linear ODE (2024)
    Top Articles
    Latest Posts
    Article information

    Author: Kieth Sipes

    Last Updated:

    Views: 5773

    Rating: 4.7 / 5 (47 voted)

    Reviews: 94% of readers found this page helpful

    Author information

    Name: Kieth Sipes

    Birthday: 2001-04-14

    Address: Suite 492 62479 Champlin Loop, South Catrice, MS 57271

    Phone: +9663362133320

    Job: District Sales Analyst

    Hobby: Digital arts, Dance, Ghost hunting, Worldbuilding, Kayaking, Table tennis, 3D printing

    Introduction: My name is Kieth Sipes, I am a zany, rich, courageous, powerful, faithful, jolly, excited person who loves writing and wants to share my knowledge and understanding with you.