First Order ODE Solver
This First Order ODE Solver helps you solve first-order differential equations and shows each step clearly. It can be used to work with common first-order ODE forms, apply suitable solution methods, and optionally use an initial condition to find a particular solution. This makes it useful for checking answers, understanding how first-order ODEs are solved, and practising differential equations step by step.
Step-by-step method
- Write the ODE clearly (use dy/dx or y').
- Detect the first-order type (separable or linear).
- Apply the matching method (separate variables OR integrating factor).
- Integrate and include the constant (+ C).
- If an initial condition is given, solve for the constant.
- Rewrite the final solution in terms of y(x).
Formula bank:
| dy |
| dx |
| 1 |
| g(y) |
| 1 |
| g(y) |
| ∫ μ(x)Q(x) dx + C |
| μ(x) |
Example 1: dy/dx + y = x, x, y
Step 1 - Write the ODE.
In this problem: Start with the given differential equation.
| dy |
| dx |
Step 2 - Identify the type.
In this problem: Linear first-order (integrating factor).
| ∫ μ(x)Q(x) dx + C |
| μ(x) |
Step 3 - Identify P(x) and Q(x).
In this problem: Compare with y′ + P(x)y = Q(x).
Step 4 - Compute the integrating factor μ(x).
In this problem: μ(x) = e^{∫P(x)dx}.
Step 5 - Multiply the entire ODE by μ(x).
In this problem: Multiply every term and simplify.
| dy |
| dx |
| dy |
| dx |
Step 6 - Rewrite the left side as a derivative.
In this problem: Use (μy)′ = μy′ + μP(x)y.
| dy |
| dx |
Step 7 - Integrate both sides.
In this problem: ∫(μy)′ dx = ∫ μQ dx.
Step 8 - Solve for y.
In this problem: Divide both sides by μ(x).
| (−1 + x)ex + C |
| ex |
Step 9 - Final answer.
In this problem: Write the solution in standard form.
Final answer: Solution
Example 2: dy/dx = y/x, x, y, y(1)=2
Step 1 - Write the ODE.
In this problem: Start with the given differential equation.
| dy |
| dx |
| 1 |
| x |
Step 2 - Identify the type.
In this problem: Linear first-order (integrating factor).
| ∫ μ(x)Q(x) dx + C |
| μ(x) |
Step 3 - Identify P(x) and Q(x).
In this problem: Compare with y′ + P(x)y = Q(x).
| 1 |
| x |
Step 4 - Compute the integrating factor μ(x).
In this problem: μ(x) = e^{∫P(x)dx}.
Step 5 - Multiply the entire ODE by μ(x).
In this problem: Multiply every term and simplify.
| dy |
| dx |
| 1 |
| x |
| 1 |
| x |
| dy |
| dx |
| 1 |
| x2 |
Step 6 - Rewrite the left side as a derivative.
In this problem: Use (μy)′ = μy′ + μP(x)y.
| 1 |
| x |
| dy |
| dx |
| 1 |
| x2 |
Step 7 - Integrate both sides.
In this problem: ∫(μy)′ dx = ∫ μQ dx.
Step 8 - Solve for y.
In this problem: Divide both sides by μ(x).
| 0 + C |
| e−ln(x) |
Step 9 - Apply initial condition.
In this problem: Use y(1) = 2 to determine the constant.
Step 10 - Final answer.
In this problem: Write the solution in standard form.
Final answer: Solution
Sign up or login to get the full step solution for free!