A linear first-order ODE has the form — the unknown function appears linearly (no , no ). This class includes many financially important equations that separable equations cannot handle: a portfolio that earns interest at rate but pays out a fixed coupon per year satisfies (not separable); the Ornstein-Uhlenbeck mean-reversion ODE rewrites as the linear form . The solution method is the integrating factor — a function that collapses the left side into the derivative of a product and turns the equation into a straightforward integration.
Learning objectives. By the end of this note you should be able to:
- recognise a first-order linear ODE and put it in standard form ;
- compute the integrating factor ;
- multiply through, recognise the product-rule pattern, and integrate to find the general solution;
- apply an initial condition to pin the constant;
- solve the portfolio-with-withdrawals and OU mean-reversion ODEs.
In this lesson
- Standard form and the integrating factor
- Worked examples
- The OU mean-reversion ODE
Before you start
- Separable Equations: Technique and Initial Conditions
- The Chain Rule
- The Fundamental Theorem of Calculus
The full lesson, with worked examples and exercise solutions, is for members.
Read the full lessonNew to SelfMadeQuant.com? See membership options or explore the curriculum.