- Foundation
- About 15 min
- 5 practice questions
Differential equations as slopes: finding a curve from a slope condition
Translate 'the slope of the curve at each point is …' into a differential equation, solve it, and use one point on the curve to find the particular curve.
If something looks wrong, please tell us.
Since dy/dx is the slope of the tangent to a curve y = f(x), a statement about slopes is a differential equation. 'At every point the slope equals twice the x-coordinate' is just dy/dx = 2x. Solving it gives a whole family of curves; a given point selects one. This lesson turns words into equations and solves five types.
From words to equations
| Words | Differential equation |
|---|---|
| slope at each point equals twice the x-coordinate | dy/dx = 2x |
| slope equals the y-coordinate divided by the x-coordinate | dy/dx = y/x |
| slope equals minus x over y | dy/dx = −x/y |
| slope equals twice the y-coordinate | dy/dx = 2y |
| the tangent is horizontal everywhere | dy/dx = 0 |
| slope equals the square of the y-coordinate | dy/dx = y² |
Write the slope condition as dy/dx = f(x, y). If the right side is a product f(x)g(y), separate the variables and integrate: ∫ dy/g(y) = ∫ f(x) dx + C. Then use the point on the curve to find C.
Worked example 1: slope depends on x only
The slope of a curve at each point (x, y) is 2x and it passes through (1, 3). Then dy/dx = 2x, so y = x² + C. At (1, 3), 3 = 1 + C, so C = 2. The curve is the parabola y = x² + 2.
Worked example 2: slope equals y/x
The slope at each point is y/x, and the curve passes through (1, 2), with x > 0 and y > 0. Separating, dy/y = dx/x. Integrating, ln y = ln x + c, so y = kx, where k = e^c. At (1, 2), k = 2. The curve is the straight line y = 2x. This makes sense geometrically: a line through the origin has slope y/x at each of its points.
Worked example 3: slope equals −x/y
Here dy/dx = −x/y with the curve through (3, 4). Separating, y dy = −x dx. Integrating, y²/2 = −x²/2 + c, so x² + y² = k. At (3, 4), k = 9 + 16 = 25. The curve is the circle x² + y² = 25. The slope −x/y is indeed the slope of the tangent to a circle centred at the origin, perpendicular to the radius, whose slope is y/x.
Worked example 4: slope equals twice the height
dy/dx = 2y with y = 3 when x = 0. Separating, dy/y = 2 dx, so ln|y| = 2x + c and y = Ae^{2x}. At x = 0, A = 3, so y = 3e^{2x}. This is exponential growth, the same equation that governs continuous compounding.
Worked example 5: a slope that grows quickly
dy/dx = y² with y = 1 when x = 0. Separating, dy/y² = dx, so −1/y = x + c. At (0, 1), −1 = c. So −1/y = x − 1 and y = 1/(1 − x). Check: dy/dx = 1/(1 − x)² = y². When x = 1/2, y = 2. The solution is valid only for x < 1, since y becomes infinite as x approaches 1. Solutions of differential equations may exist only on an interval.
A check that always works
Differentiate your answer and compare with the original slope condition, then substitute the given point. For Example 3, the circle gives 2x + 2y(dy/dx) = 0, so dy/dx = −x/y, which matches.
Key takeaways: dy/dx is the tangent slope; translate the words, separate the variables if possible, integrate once with one constant, and fit the constant to a point. Always check by differentiating, and note the interval where the solution is valid.
Check your understanding
-
1. A curve has slope 2x at each point (x, y) and passes through (1, 3). Its equation is:
- y = x² + 1
- y = 2x + 1
- y = x² + 2
- y = x² + 3
Show answer
Answer: C. dy/dx = 2x gives y = x² + C. Putting x = 1 and y = 3 gives C = 2. The curve y = x² + 1 would pass through (1, 2) instead.
-
2. A curve through (3, 4) has slope −x/y at each point. Its equation is:
- x² + y² = 25
- x² − y² = −7
- x² + y² = 5
- y = 4x/3
Show answer
Answer: A. Separating gives y dy = −x dx, so x² + y² = k. At (3, 4), k = 25. The line y = 4x/3 is the radius, which is perpendicular to the curve at (3, 4).
-
3. A curve through (1, 2) has slope y/x at every point (x > 0). Its equation is:
- y = x + 1
- y = x² + 1
- y = 2/x
- y = 2x
Show answer
Answer: D. dy/y = dx/x gives y = kx, and the point (1, 2) gives k = 2. The slope of y = 2x is 2, which equals y/x = 2x/x.
-
4. If dy/dx = 2y and y = 3 when x = 0, then y equals:
- 3e^{x/2}
- 3e^{2x}
- 2e^{3x}
- e^{2x} + 2
Show answer
Answer: B. Separating, dy/y = 2 dx, so y = Ae^{2x}. At x = 0, A = 3. Check: dy/dx = 6e^{2x} = 2y.
-
5. If dy/dx = y² and y = 1 when x = 0, what is y when x = 1/2?
- 2
- 1/2
- 3/2
- 4
Show answer
Answer: A. The solution is y = 1/(1 − x). At x = 1/2, y = 1/(1/2) = 2.
Sign in to keep track of the lessons you finish.