The right side 2xy is 2x times y, a function of x times a function of y. The equation is separable with g(x)=2x and h(y)=y.
dxdy=2x⋅y
2
Set the equilibrium aside
h(y)=y is zero only at y=0. The constant function y=0 has derivative 0, and 2x⋅0=0, so it is a solution. Keep it in mind, because the next step divides by y.
3
Separate the variables
For y=0, divide both sides by y and multiply by dx. Every y is now on the left beside dy, and every x is on the right beside dx. In a Math box this row also matters to the Checker, which tests the solution rows below it against the equation.
ydy=2xdx
4
Integrate both sides
∫dy/y=ln∣y∣ and ∫2xdx=x2. The two antiderivatives differ by one constant, so C goes on one side only.
ln∣y∣=x2+C
5
Solve for y
Raise e to both sides to get ∣y∣=eC⋅ex2. Removing the absolute value gives y=Aex2, where A=±eC. The value A=0 gives back the equilibrium y=0, so y=Aex2 with any A is the general solution.
y=Aex2
6
Apply the initial condition
At x=0 the solution is Ae0=A, and the condition says it is 3. That makes A=3, which gives the particular solution.
y(0)=A=3⟹y=3ex2
7
Check by differentiating
By the chain rule, y′=3ex2⋅2x=6xex2, and 2xy=2x⋅3ex2=6xex2. The two agree for every x, and y(0)=3. The solution is defined for every real x.
dxd(3ex2)=6xex2=2x⋅3ex2
Result
y=3ex2, defined for every real x.
y=3ex2
Your turn
1. One like the example
Solve dy/dx=3x2y with y(0)=2.
Show the answer and explanation
y=2ex3.
The factors are g(x)=3x2 and h(y)=y. Separating gives dy/y=3x2dx, and integrating gives ln∣y∣=x3+C, so y=Aex3. At x=0 the solution is A, so A=2.
dxdy=3x2yy(0)=2ydy=3x2dxln∣y∣=x3+Cy=Aex3y=2ex3
2. A variation
Solve dy/dx=2x(y−1) with y(0)=4. The y-part is now y−1, not y.
Show the answer and explanation
y=1+3ex2.
Divide by y−1, which is allowed for y=1, to get dy/(y−1)=2xdx. Integrating gives ln∣y−1∣=x2+C, so y−1=Aex2 and y=1+Aex2. At x=0,y=1+A=4, so A=3. The equilibrium is y=1 here, the case A=0.
A patient’s blood holds 50 mg of a medicine, and the body removes the medicine at a rate equal to 20% of the amount present, per hour, so dA/dt=−0.2A. Find A(t), and find when 10 mg remain.
Show the answer and explanation
A(t)=50e−0.2tmg, and 10 mg remain after 5ln5≈8.05 hours.
Separating gives dA/A=−0.2 dt, so ln∣A∣=−0.2t+C and A=Be−0.2t. At t=0,A=B=50. Setting 50e−0.2t=10 gives e−0.2t=1/5, so t=5ln5≈8.05 hours. The row 50e−0.2t=10 reads • “New condition: A(t) = 10.” and the rows after it read ✓.