xydx-(1+x^2)dy=0
⚠ xydx-(1+x^2)dy = 0 is read as the differential equation y' = (xy)/(1+x^2): divide by dx and isolate y', the derivative of y with respect to x■xy is read as the product x*y: for the variable xy, write xy_
1) Solve the separable equation y' = xy1 + x2, where y is a function of x
Before dividing, y = 0 gives the equilibrium solution y = 0
On intervals where y ≠ 0, separate the variables: dyy = xx2 + 1·dx
⇥1.1) Let's compute the integral: ∫1ydy
⇥ⓘ The derivative of ln|y| is 1y, so ln|y| is an antiderivative of 1y: ∫1ydy = ln|y|
⇥ ln|y|
⇥1.2) Let's integrate: ∫xx2 + 1dx
⇥For the math expression: xx2 + 1, since (ln(a))' = a'/a, we try differentiating ln(x2 + 1)
⇥1.3) Let's differentiate: ddx(ln(x2 + 1))
⇥We differentiate using: ddx(ln(f)) = ddx(f)·1f (where f = x2 + 1)
⇥ⓘ The derivative of ln(x) is 1/x: ddx(ln(x2 + 1)) = ddx(x2 + 1)·1x2 + 1
⇥ ddx(x2 + 1)·1x2 + 1
⇥ⓘ Multiplying a fraction by a term multiplies its numerator: ddx(x2 + 1)·1x2 + 1 = ddx(x2 + 1)·1x2 + 1 = ddx(x2 + 1)x2 + 1■The derivative of a sum is the sum of the derivatives: ddx(x2 + 1) = ddx(x2) + 0
⇥ ddx(x2) + 0x2 + 1
⇥ⓘ Adding 0 changes nothing: ddx(x2) + 0 = ddx(x2)■The derivative of x^n is n*x^(n-1): ddx(x2) = 2x
⇥ 2xx2 + 1
⇥You observe that the computed derivative and the original math expression are the same, except for a coefficient. So the integral is:
⇥ⓘ The derivative of 12·ln(x2 + 1) is xx2 + 1, so 12·ln(x2 + 1) is an antiderivative of xx2 + 1: ∫xx2 + 1dx = 12·ln(x2 + 1)
⇥ 12·ln(x2 + 1)
⇥ⓘ Multiplying a fraction by a term multiplies its numerator: 12·ln(x2 + 1) = 1·ln(x2 + 1)2 = ln(x2 + 1)2
⇥ ln(x2 + 1)2
Integrating both sides gives ln|y| = ln(x2 + 1)2 + C, where C is an arbitrary real constant
Taking the exponential gives |y| = exp(C)exp(ln(x2 + 1)2) = exp(C)·x2 + 1, hence y = K·x2 + 1 with K = ±exp(C), a nonzero real constant
K = 0 gives back the equilibrium solution y = 0: the solutions are y = K·x2 + 1, where K is an arbitrary real constant
▶Solution:   y = K·x2 + 1