

How to Solve Ordinary Differential Equations Step by Step?
The concept of Ordinary Differential Equations (ODEs) plays a key role in mathematics and is widely applicable to both real-life situations and exam scenarios. ODEs are especially useful in modeling and predicting change in science, finance, engineering, and everyday life. On this page, you’ll learn everything from definition, solving tricks, types, and useful examples of ordinary differential equations for students of all levels.
What Is Ordinary Differential Equation?
An Ordinary Differential Equation (ODE) is defined as an equation that involves the derivatives of a function with respect to a single independent variable. You’ll find this concept applied in areas such as Physics (motion, circuits), Biology (population growth), and Economics (modelling rates of change). Knowing how to quickly identify and solve ODEs will boost your confidence in school exams and competitive tests.
Types and Forms of Ordinary Differential Equations
ODEs can be classified based on their order and structure. The two main characteristics are:
- Order (first order, second order, etc.) — This refers to the highest derivative present.
- Linearity (linear or nonlinear) — Linear ODEs have variables and their derivatives to the first power only.
Type | General Form | Example |
---|---|---|
First Order Linear | \( \frac{dy}{dx} + P(x)y = Q(x) \) | \( \frac{dy}{dx} + 3y = 6 \) |
First Order Nonlinear | \( \frac{dy}{dx} = f(x, y) \) | \( \frac{dy}{dx} = y^2 + x \) |
Second Order Linear | \( \frac{d^2y}{dx^2} + a\frac{dy}{dx} + by = R(x) \) | \( \frac{d^2y}{dx^2} - 2\frac{dy}{dx} + y = 0 \) |
ODEs can also be classified as Homogeneous or Non-homogeneous, and as Autonomous (independent of x) or Non-autonomous.
Key Formula for Ordinary Differential Equations
Here’s the standard forms and solution techniques most commonly used:
- First Order Separable: \( \frac{dy}{dx} = f(x)g(y) \) → \( \int \frac{1}{g(y)}\,dy = \int f(x)\,dx \)
- Integrating Factor Method for Linear ODEs: \( \frac{dy}{dx} + P(x)y = Q(x) \)
IF = \( e^{\int P(x)dx} \), Solution: \( y \cdot \text{IF} = \int Q(x)\text{IF}dx + C \)
Other important formulas appear for higher order ODEs, such as the characteristic equation method.
Steps to Solve Ordinary Differential Equations
- Identify the order and type of the equation (linear, separable, homogeneous, etc.).
- Choose the correct solving method: separation of variables, integrating factor, substitution (for non-linear), etc.
- Rearrange if necessary: move all terms to appropriate sides.
- Integrate both sides with respect to the correct variable.
- Don’t forget the constant of integration (C) for general solutions.
- Substitute initial conditions or boundary values if provided to find the particular solution.
- Check your answer by differentiating and plugging back into the original equation.
Step-by-Step Illustration
Let’s see a worked example for practice:
1. Given: \( \frac{dy}{dx} + 2y = e^x \)2. Compare to standard linear form (\( \frac{dy}{dx} + P(x)y = Q(x) \)) — here, \( P(x) = 2, Q(x) = e^x \).
3. Find integrating factor (IF): IF = \( e^{\int 2dx} = e^{2x} \).
4. Multiply both sides by IF:
5. Notice left side is derivative of \( y e^{2x} \):
6. Integrate both sides:
7. Final Solution:
Worked Examples
Example 1: Solve \( \frac{dy}{dx} = 4x \)
1. Separate variables and integrate both sides:2. \( dy = 4x dx \)
3. \( \int dy = \int 4x dx \)
4. \( y = 2x^2 + C \)
Example 2: Solve \( \frac{dy}{dx} + y = 0 \) given \( y(0) = 5 \)
1. This is a linear ODE with \( P(x) = 1, Q(x) = 0 \).2. IF = \( e^{\int 1dx} = e^{x} \)
3. Multiply by IF: \( e^{x} \frac{dy}{dx} + e^{x}y = 0 \) → \( \frac{d}{dx}(y e^{x}) = 0 \)
4. Integrate: \( y e^{x} = C \) → \( y = Ce^{-x} \)
5. Use \( y(0) = 5 \): \( 5 = C \) → Solution: \( y = 5e^{-x} \)
For more difficult examples and worksheet PDFs, check resources linked at the end.
Applications of Ordinary Differential Equations
Ordinary differential equations are everywhere around us! Here are some important uses:
- Physics: Newton’s law of motion, electric circuits, falling objects, and oscillations.
- Biology: Modeling population growth, spread of diseases (epidemiology), and cell division.
- Economics and Finance: Compound interest, rate of return on investments, stock market analysis.
You will see ODEs appear frequently in JEE, NEET, Olympiad, and Class 12 CBSE or ICSE exams. Learning ODEs opens doors to understanding advanced science and engineering fields, too.
Cross-Disciplinary Usage
Ordinary differential equations are not only useful in Maths but also play an important role in Physics, Computer Science, and daily logical reasoning. Students preparing for JEE or NEET will see its relevance in various questions.
Speed Trick or Exam Shortcut
Many ODE questions on MCQs can be answered in seconds using shortcuts:
Trick: For \( \frac{dy}{dx} = kx^n \), the general solution is \( y = \frac{k}{n+1}x^{n+1} + C \)
Just add 1 to the power, divide by the new exponent, and you have your answer! Vedantu’s live classes discuss such tips to boost your exam scores.
Try These Yourself
- Solve \( \frac{dy}{dx} = 5x \)
- Find the solution to \( \frac{dy}{dx} + 4y = 0 \) for \( y(0) = 2 \)
- Classify \( y'' + 3y' + 2y = 0 \): What is its order?
- Give a real-life example that can be modeled by a first-order ODE.
Frequent Errors and Misunderstandings
- Forgetting the constant of integration, C, in general solutions.
- Not checking the order or linearity before applying a solving method.
- Missing negative signs or making basic arithmetic errors in integrating steps.
- Confusing ODEs and PDEs: PDE involves >1 variable in derivatives!
- Plugging incorrect initial/boundary conditions when finding particular solutions.
Relation to Other Concepts
The idea of Ordinary Differential Equations connects closely with topics such as Differential Equation, Differentiation, and Integration. Mastering this helps with understanding more advanced concepts like Laplace Transforms and mathematical modeling in science.
Summary Table – ODE Cheat Sheet
ODE Type | Form | Typical Solution Method |
---|---|---|
First Order Linear | \( \frac{dy}{dx} + P(x)y = Q(x) \) | Integrating Factor (IF) |
First Order Separable | \( \frac{dy}{dx} = f(x)g(y) \) | Separate variables + integrate |
Second Order Linear Homogeneous | \( a\frac{d^2y}{dx^2} + b\frac{dy}{dx} + cy = 0 \) | Characteristic Equation |
Second Order Nonhomogeneous | \( a\frac{d^2y}{dx^2} + b\frac{dy}{dx} + cy = R(x) \) | Complementary function + particular integral |
Extra Resources and Downloads
- Differential Equations for Class 12 – Key formulas, solved examples, worksheets.
- Linear Differential Equations – More about the linear case, practice problems.
- Applications of Differential Equations – Real-life uses for exams and projects.
For instant calculation, you can try an online differential equation solver from trusted sources as well.
Classroom Tip
Remember: if you see derivatives only with respect to one variable (d/dx or d/dt), it’s an ODE. Use the phrase: “One variable – Ordinary!” Vedantu’s teachers use mnemonics like O for One to help students quickly spot ordinary differential equations in homework or exam questions.
We explored Ordinary Differential Equations—from definition, formula, examples, mistakes, and connections to other subjects. Continue practicing with Vedantu to become confident in solving ODE problems and score higher in exams.
FAQs on Ordinary Differential Equations (ODEs): Definition, Types & Solved Examples
1. What is an ordinary differential equation (ODE) with an example?
An ordinary differential equation (ODE) is a mathematical equation that involves a function of a single independent variable and one or more of its derivatives. It essentially describes the relationship between a quantity and its rate of change. For example, the equation dy⁄dx = 3y is a simple ODE, where 'y' is a function of the independent variable 'x'.
2. What is the difference between the 'order' and 'degree' of a differential equation?
The order of an ODE is the order of the highest derivative present in the equation. For example, d2y/dx2 + 5(dy/dx) + 6y = 0 has an order of 2. The degree is the highest power of the highest-order derivative, provided the equation is a polynomial in its derivatives. In the same example, the degree is 1, as the power of d2y/dx2 is one.
3. How are ordinary differential equations classified?
Ordinary differential equations are primarily classified based on three properties:
- Order: Based on the highest derivative in the equation (e.g., first-order, second-order).
- Degree: Based on the highest power of the highest-order derivative.
- Linearity: An ODE is linear if the dependent variable and its derivatives appear only to the first power and are not multiplied together. Otherwise, it is non-linear.
4. What is the fundamental difference between an Ordinary Differential Equation (ODE) and a Partial Differential Equation (PDE)?
The key difference lies in the number of independent variables. An ODE involves a function of a single independent variable (like y(x)) and its ordinary derivatives (dy/dx). A Partial Differential Equation (PDE) involves a function of two or more independent variables (like u(x,t)) and its partial derivatives (∂u/∂x, ∂u/∂t).
5. What are the main methods for solving first-order differential equations in the CBSE Class 12 syllabus?
As per the CBSE 2025-26 syllabus, the primary methods for solving first-order, first-degree differential equations are:
- Separation of Variables: Used when the equation can be rearranged to have all terms of one variable on one side and all terms of the other variable on the other side.
- Homogeneous Equations: Applied to equations of the form dy/dx = F(y/x).
- Linear Differential Equations: For equations in the form dy/dx + P(x)y = Q(x), solved using an integrating factor.
6. What are some important real-world applications of ordinary differential equations?
ODEs are crucial for modelling various phenomena across science and engineering. Key applications include:
- Physics: Describing Newton's laws of motion, radioactive decay, and the behaviour of electrical circuits.
- Biology: Modelling population growth (logistic growth) and the spread of diseases.
- Finance: Analysing compound interest and modelling financial market trends.
- Engineering: Studying heat transfer, chemical reactions, and mechanical vibrations.
7. Why is the constant of integration 'C' crucial when finding a general solution to an ODE?
The constant of integration 'C' is crucial because it represents a family of solutions, not just a single one. An ODE's solution is a function, and integration introduces an arbitrary constant. Each value of 'C' corresponds to a specific curve that satisfies the differential equation. Without this constant, you would only have one of infinitely many possible solutions. This family of solutions is called the general solution.
8. What is the conceptual difference between a general solution and a particular solution of an ODE?
A general solution of an ODE is the most comprehensive form of the solution and includes arbitrary constants (like 'C'). It represents an entire family of functions that satisfy the equation. A particular solution is a specific solution derived from the general solution by using initial or boundary conditions to determine the exact value of these constants. It represents a single, unique curve that fits the specific problem context.
9. How can you tell if a differential equation is linear or non-linear?
A differential equation is linear if the dependent variable (e.g., 'y') and all of its derivatives appear only to the first power and are not multiplied with each other. For example, d2y/dx2 + x2(dy/dx) = sin(x) is linear. The equation becomes non-linear if it contains terms like y2, (dy/dx)3, or y(dy/dx), as the dependent variable or its derivatives are not of the first degree or are multiplied together.
10. What is the importance of a homogeneous differential equation?
A homogeneous differential equation, often in the form dy/dx = F(y/x), is important because it models systems where the rate of change depends on the ratio of the variables, not their absolute values. This is useful in fields like geometry for problems involving slopes, in economics for certain growth models, and in physics for phenomena where scale invariance is a key feature.

















