Q.Solve the following differential equation:
This is a first-order linear ODE that simplifies to . Using an integrating factor , the general solution is .
The key here is to recognize that the right-hand side can be split into two simpler terms: . That immediately reveals the equation is not separable in its current form, but it is linear in .
An Initial Value Problem (IVP) isn’t given here — we’re just solving the differential equation generally. But the approach for a first-order linear ODE is always the same: rewrite it as , then multiply through by an integrating factor to make the left side a perfect derivative.
Let’s walk through it.
- Rewrite the equation in standard linear form. Start with . Bring the term to the left:
So here and .
- Find the integrating factor. Compute . Then the integrating factor is:
For simplicity, we usually take (assuming ; the absolute value can be handled later with a sign).
Integrating factor for is .
- Multiply the entire equation by .
Notice the left side is exactly the derivative of :
So the equation becomes:
- Integrate both sides.
where is the constant of integration.
- Solve for . Multiply through by :
If you ever forget the integrating factor method, you can also treat this as a homogeneous equation (set ) — try it: , then gives , leading to the same result.
A common mistake is to forget the absolute value inside when integrating . For , you can drop the absolute value; for , the sign is absorbed into the constant anyway. But in exams, writing is safest.
The general solution is , where is an arbitrary constant.
Unlock everything free for 14 days
- Full step-by-step solutions
- Concept-first explanations
- Methods, shortcuts & mistakes
- PYQ mapping + timed mock tests
Full access for 14 days. No credit card required.