The equation gives the slope at every point, and the condition says the solution passes through (0,4). In a Math box the condition goes on its own row, under the equation.
y(0)=4
2
Separate
The right side is −x times 1/y, so the equation is separable. Multiply both sides by ydx, which is allowed where y=0.
ydy=−xdx
3
Integrate
∫ydy=y2/2 and ∫−xdx=−x2/2. One constant goes on the right.
2y2=−2x2+C
4
Find C
Put x=0 and y=4 into the integrated equation. Then 16/2=0+C, so C=8.
C=202+242=8
5
Write the implicit solution
Multiplying y2/2=−x2/2+8 by 2 gives x2+y2=16, a circle of radius 4 centered at the origin. A relation like this, not yet solved for y, is called an implicit solution.
x2+y2=16
6
Solve for y
Solving gives y=±√16−x2. The condition y(0)=4 is positive, so the solution is the upper half of the circle.
y=√16−x2
7
Find the interval of validity
The equation divides by y, so the solution cannot reach y=0. On the upper half of the circle that happens at x=±4, where the tangent is vertical and the slope −x/y is undefined. The solution is valid on −4<x<4.
8
Check
The derivative of √16−x2is −x/√16−x2, which is −x/y, and y(0)=√16=4.
y(x)=√16−x2y(0)=4
Result
x2+y2=16, with the explicit solution y=√16−x2 valid on −4<x<4.
y=√16−x2,−4<x<4
Your turn
1. One like the example
Solve dy/dx=x/y with y(0)=3.
Show the answer and explanation
y2−x2=9, so y=√x2+9 for every x.
Separating gives ydy=xdx, and integrating gives y2/2=x2/2+C. At (0,3),C=9/2, so y2=x2+9. The condition is positive, so y=√x2+9. Because x2+9 is never 0, the solution is valid for all x.
dxdy=yxy(0)=3ydy=xdx2y2=2x2+Cy2=x2+9y=√x2+9
2. A variation
Solve dy/dx=−4x/y with y(0)=2. What curve is the solution on, and where is it valid?
Show the answer and explanation
4x2+y2=4, an ellipse, so y=2√1−x2on −1<x<1.
Separating gives ydy=−4xdx, and integrating gives y2/2=−2x2+C. At (0,2),C=2, so y2+4x2=4, an ellipse. The upper half is y=2√1−x2. It reaches y=0 at x=±1, so it is valid on −1<x<1.
Solve dy/dx=y2 with y(0)=1. The right side is defined everywhere, so where does the solution stop?
Show the answer and explanation
y=1/(1−x), valid for x<1. It grows without bound as xapproaches 1.
Separating gives dy/y2=dx, and integrating gives −1/y=x+C. At (0,1),C=−1,so −1/y=x−1 and y=1/(1−x). The solution blows up at x=1, so the interval that contains the starting point is x<1, even though the equation itself is defined everywhere.
dxdy=y2y(0)=1y2dy=dx−y1=x+CC=−1y=1−x1
Keep exploring
Check the derivative in Math: √16−x2 has derivative −x/√16−x2for −4<x<4.