- 1. What is a differential equation?
- 2. Order and degree: how hard is the equation?
- 3. General and particular solutions: a family and one member
- 4. Sort the x's from the y's: variables separable
- 5. Growth and decay: money, people and atoms
- 6. Why does tea cool slower and slower? Newton's law of cooling
- 7. Homogeneous functions and homogeneous equations
- 8. Solving homogeneous equations: put y = vx
- 9. Linear equations and the integrating factor
- 10. Linear equations in action, and which method to use
- Review
4 of 10·NCERT §9.4 · §9.4.1·5 min
Sort the x's from the y's: variables separable
The big ideaIf the rate \( \frac{dy}{dx} \) splits into (a function of x) times (a function of y), move all the y's to one side with dy and all the x's to the other with dx, then integrate both sides.
In simple words
Imagine a box of mixed red and blue beads. It is hard to count them while they are jumbled. So you sort them: red beads in one bowl, blue beads in the other. Then counting each bowl is easy. Here the red beads are everything with y, the blue beads are everything with x. Once they are in separate bowls, you can deal with each one using the integration you already know.
The equations we can solve
This chapter solves only first order, first degree differential equations, ones that can be written as
\[ \frac{dy}{dx} = F(x, y), \]
where F is some expression in x and y. There are three methods, one for each of three shapes of F: variables separable (this page), homogeneous and linear (later pages).
Separating the variables
If F can be written as a product \( g(x)\,h(y) \), with g depending only on x and h only on y, the equation is of variable separable type:
\[ \frac{dy}{dx} = g(x)\,h(y). \]
When \( h(y) \ne 0 \), divide by h(y) and treat dy and dx as separate pieces:
\[ \frac{1}{h(y)}\,dy = g(x)\,dx \quad \Rightarrow \quad \int \frac{1}{h(y)}\,dy = \int g(x)\,dx. \]
The answer has the form \( H(y) = G(x) + C \), where H and G are antiderivatives of \( \frac{1}{h(y)} \) and g(x). Only one constant C is needed: the constants from the two sides combine into one.
Four steps
- Write the equation as \( \frac{dy}{dx} = g(x)\,h(y) \).
- Separate: all y with dy on the left, all x with dx on the right.
- Integrate both sides and add one constant C.
- If a point is given, put it in to find C (the particular solution).
Splitting dy and dx like this looks like cheating, but it is a short way of writing the chain rule, and it always gives the right answer. The neat dy/dx notation of Leibniz, who discovered this method in 1691, is built to allow it.
Worked examples
- General solution. \( \frac{dy}{dx} = \frac{x^2 + 1}{y^2} \). Separate: \( y^2\,dy = (x^2 + 1)\,dx \). Integrate: \( \frac{y^3}{3} = \frac{x^3}{3} + x + C \).
- An inverse tangent answer. \( \frac{dy}{dx} = (1 + y^2)e^x \). Since \( 1 + y^2 \) is never 0, separate: \( \frac{dy}{1 + y^2} = e^x\,dx \). Integrate: \( \tan^{-1} y = e^x + C \).
- Particular solution. \( \frac{dy}{dx} = 3x^2 y \), with y = 2 when x = 0. Separate: \( \frac{dy}{y} = 3x^2\,dx \). Integrate: \( \log|y| = x^3 + C_1 \), so \( y = Ke^{x^3} \) (with \( K = \pm e^{C_1} \)). Put x = 0, y = 2: K = 2. Answer: \( y = 2e^{x^3} \).
- A curve from its slope. A curve through (3, 4) has slope \( -\frac{x}{y} \) at every point (x, y). Since the slope of the tangent is \( \frac{dy}{dx} \): \( y\,dy = -x\,dx \), so \( \frac{y^2}{2} = -\frac{x^2}{2} + C_1 \), that is \( x^2 + y^2 = C \). Through (3, 4): C = 25. The curve is the circle \( x^2 + y^2 = 25 \).
Try it: the ticks below are the slopes \( -\frac{x}{y} \) at every point. Drag P to (3, 4) and the curve that follows them is that circle.
Guess first: can you separate these?
Guess: which of \( \frac{dy}{dx} = x + y \) and \( \frac{dy}{dx} = e^{x + y} \) is of variable separable type?
See what happens
Practise: spot the hidden products.
Don't mix these up
- Put C on one side only, right after integrating. Adding it later, after taking exponentials, puts it in the wrong place.
- When logs appear, writing the constant as \( \log|C| \) makes tidy answers: \( \log|y| = \log|x| + \log|C| \) gives \( y = Cx \).
- \( \frac{dy}{dx} = \sin(x + y) \) is not separable: \( \sin(x+y) \ne \sin x \sin y \).
Try it. Solve \( \frac{dy}{dx} = \frac{y}{x} \) (x, y not zero).
Answer
- First order, first degree
- Only y′ appears, to the power 1: \( \frac{dy}{dx} = F(x, y) \).
- Variable separable
- \( \frac{dy}{dx} \) is a function of x times a function of y.
- Separating the variables
- Moving y and dy to one side, x and dx to the other.
- Antiderivative
- A function whose derivative is the given function: what integration finds.
Words to know
Which equation is of variable separable type?
- \( \frac{dy}{dx} = x^2 + y^2 \)
- \( \frac{dy}{dx} = e^{x - y} \)
- \( \frac{dy}{dx} = \cos(x + y) \)
What is the general solution of \( \frac{dy}{dx} = \frac{x}{y} \)?
- \( y^2 - x^2 = C \)
- \( x^2 + y^2 = C \)
- \( y = Cx \)
Solve \( \frac{dy}{dx} = 2xy \) with y = 5 when x = 0.
- \( y = e^{x^2} + 4 \)
- \( y = 5e^{2x^2} \)
- \( y = 5e^{x^2} \)
Picture and video credits