Subject: Class 12 Mathematics Chapter: Variable Separable Equations Topic: 10.5 Variable Separable Equations – Solve variable separable equations
The first and simplest method for solving a differential equation is the method of separation of variables. A differential equation is said to be variable separable if the first-order expression dy/dx = f(x, y) can be written in the form dy/dx = g(x) h(y), so that all terms containing y, together with dy, can be separated to one side and all terms containing x, together with dx, to the other side. Once separated, the equation can be integrated directly on both sides, giving the general solution with one arbitrary constant.
This method is the foundation of nearly every other technique in this chapter. The homogeneous substitution and the integrating factor method both ultimately lead to separable forms, so the ability to separate variables quickly and integrate correctly is a skill worth mastering. Because the method is straightforward, it is also the most frequently tested topic in examinations, appearing both as short-answer questions and as the first part of longer problems.
The main challenges in this topic are algebraic: choosing the correct side for each term, handling constants of integration correctly, and simplifying the final answer into an acceptable form. This chapter explains the procedure with worked examples of increasing difficulty, from simple polynomial equations to those involving trigonometric and exponential functions, and includes tables and diagrams that summarise the entire method.
A first-order differential equation dy/dx = f(x, y) is separable if f(x, y) can be factored as g(x) h(y). The method proceeds as follows.
Steps to solve a variable separable equation: 1. Write the equation in the form dy/dx = g(x) h(y). 2. Rearrange to separate variables: (1/h(y)) dy = g(x) dx. 3. Integrate both sides: ∫(1/h(y)) dy = ∫g(x) dx + C. 4. Simplify the resulting relation to obtain the general solution.
Example 1 (Solved): Solve dy/dx = x².
Solution: This is already separable with g(x) = x² and h(y) = 1. Integrating both sides: ∫dy = ∫x² dx, giving y = x³/3 + C. This is the general solution of the equation.
Example 2 (Solved): Solve dy/dx = eˣ y.
Solution: Separate variables: (1/y) dy = eˣ dx. Integrating both sides: ln|y| = eˣ + C. Hence y = ±e^(eˣ + C) = A e^(eˣ), where A = ±e^C is an arbitrary constant. This is the general solution.
Example 3 (Solved): Solve dy/dx = (x² + 1)(y² + 1).
Solution: Separate variables: dy/(y² + 1) = (x² + 1) dx. Integrating: tan⁻¹ y = x³/3 + x + C. Hence the general solution is y = tan(x³/3 + x + C).
The constant of integration can be placed on either side, and it may be written in any convenient form such as C, ln C, or e^C, depending on which form simplifies the answer. In exponential and logarithmic solutions, it is often helpful to write the constant in a way that absorbs signs and factors.
Example 4 (Solved): Solve dy/dx = (y² + 1)/(x² + 1).
Solution: Separate variables: dy/(y² + 1) = dx/(x² + 1). Integrating both sides: tan⁻¹ y = tan⁻¹ x + C. Therefore the general solution is tan⁻¹ y - tan⁻¹ x = C.
Example 5 (Solved): Solve (x + 1)(dy/dx) = 2y.
Solution: Separate variables: dy/y = 2 dx/(x + 1). Integrating: ln|y| = 2 ln|x + 1| + C = ln(x + 1)² + C. Taking exponentials: y = C(x + 1)², where the constant C absorbs ±e^C. This is the general solution.
Example 6 (Solved): Solve dy/dx + y = 1.
Solution: Rearrange to dy/dx = 1 - y, then separate: dy/(1 - y) = dx. Integrating: -ln|1 - y| = x + C. Hence ln|1 - y| = -x - C, so 1 - y = A e⁻ˣ, giving the general solution y = 1 - A e⁻ˣ.
Particular solutions: When an initial condition y(x₀) = y₀ is given, substitute the values into the general solution to determine the constant and obtain the particular solution.
Example 7 (Solved): Solve dy/dx = 2xy, given y(0) = 1.
Solution: Separating, dy/y = 2x dx. Integrating: ln|y| = x² + C, so y = A e^(x²). Using y(0) = 1 gives A = 1. The particular solution is y = e^(x²).
Variable separable equations cover a wide range of functions. Recognising standard integrals is essential: ∫dy/y = ln|y|, ∫dy/(1 + y²) = tan⁻¹ y, ∫dy/√(1 - y²) = sin⁻¹ y, and ∫eˣ dx = eˣ. Many equations require algebraic manipulation such as factorisation, cancellation of common terms, or substitution to reveal the separable form.
Example 8 (Solved): Solve x(dy/dx) = y + 2, given y(1) = 2.
Solution: Separate: dy/(y + 2) = dx/x. Integrating: ln|y + 2| = ln|x| + C, so y + 2 = A x. Using y(1) = 2 gives A = 4. The particular solution is y + 2 = 4x.
Example 9 (Solved): Solve (dy/dx) = (xy + x)/(xy - y).
Solution: Factorise the numerator and denominator: xy + x = x(y + 1) and xy - y = y(x - 1). Hence dy/dx = x(y + 1)/(y(x - 1)). Separating: y/(y + 1) dy = x/(x - 1) dx. Write y/(y + 1) = 1 - 1/(y + 1) and x/(x - 1) = 1 + 1/(x - 1). Integrating: y - ln|y + 1| = x + ln|x - 1| + C. This is the general solution.
Example 10 (Solved): Solve dy/dx = tan x tan y.
Solution: Separate: dy/tan y = tan x dx, that is, cot y dy = tan x dx. Integrating: ln|sin y| = -ln|cos x| + C. Hence sin y = A/cos x, giving the general solution sin y cos x = A.
Physical interpretation: Such equations model exponential growth and decay, cooling of bodies, and growth of populations. The solution y = y₀ e^(kt) arises directly from the separable equation dy/dt = k y, and it will be studied in detail in the applications chapter.
| Equation | Separated form | General solution |
|---|---|---|
| dy/dx = x² | dy = x² dx | y = x³/3 + C |
| dy/dx = eˣ y | dy/y = eˣ dx | y = A e^(eˣ) |
| dy/dx = (y² + 1)/(x² + 1) | dy/(y² + 1) = dx/(x² + 1) | tan⁻¹ y = tan⁻¹ x + C |
| (x + 1) dy/dx = 2y | dy/y = 2 dx/(x + 1) | y = C(x + 1)² |
| dy/dx = 2xy | dy/y = 2x dx | y = A e^(x²) |
| Standard integral | Result | Used in |
|---|---|---|
| ∫ dy/y | ln | y |
| ∫ dy/(1 + y²) | tan⁻¹ y | Inverse tangent solutions |
| ∫ dy/(1 - y²)^(1/2) | sin⁻¹ y | Trigonometric forms |
| ∫ eˣ dx | eˣ | Exponential equations |
| ∫ dy/(y + a) | ln | y + a |
flowchart TD
A[Variable Separable Equations] --> B[Write dy/dx = g(x)h(y)]
A --> C[Separate variables]
A --> D[Integrate both sides]
B --> E[Factor f(x,y) if needed]
C --> F[dy/h(y) = g(x)dx]
D --> G[Add constant C]
D --> H[General solution]
H --> I[Use initial condition]
I --> J[Particular solution]
The method of separation of variables is the simplest technique for solving first-order differential equations and the gateway to all other methods. By writing the equation as dy/dx = g(x)h(y) and separating the variables, the problem reduces to two ordinary integrations, and the general solution contains exactly one arbitrary constant. Careful attention to standard integrals, the constant of integration, and initial conditions produces correct general and particular solutions. This method is tested directly in examinations and used indirectly in the homogeneous and linear equations that follow, making it an indispensable part of the chapter on differential equations.