The ODE M(x,y)dx+N(x,y)dy=0 is exact if ∂y∂M=∂x∂N.
When exact, there exists Ψ(x,y) such that ∂x∂Ψ=M and ∂y∂Ψ=N And the solution is Ψ(x,y)=C.
Theorem 2.2. If M and N have continuous partial derivatives on a connected domain D Then Mdx+Ndy=0 is exact if and only if My=Nx.
Proof. If exact, M=Ψx and N=Ψy So My=Ψxy=Ψyx=Nx by Clairaut. Conversely, if My=NxDefine Ψ(x,y)=∫x0xM(t,y)dt+∫y0yN(x0,s)ds. Then Ψx=M(x,y) and Ψy=∫x0xMy(t,y)dt+N(x0,y)=∫x0xNx(t,y)dt+N(x0,y)=N(x,y)−N(x0,y)+N(x0,y)=N(x,y). ■
Where n=0,1. The substitution v=y1−n transforms it into a linear equation:
dxdv+(1−n)P(x)v=(1−n)Q(x)
Example. Solve y′+y=y2ex.
Here n=2 So set v=y−1. Then v′=−y−2y′ And the equation becomes v′−v=−ex. Integrating factor: e−x. So (ve−x)′=−1Giving ve−x=−x+C, v=−xex+Cex And y=1/(C−x)ex.
Theorem 2.3 (Picard-Lindelöf). If f and ∂f/∂y are continuous on a rectangle Containing (x0,y0) Then the IVP y′=f(x,y), y(x0)=y0 has a unique solution in some Neighbourhood of x0.
An ODE of the form dxdy=F(xy) is called homogeneous (not to be Confused with the linearity sense). The substitution v=y/xI.e., y=vxGives y′=v+xv′ So the equation becomes:
Problem. A tank contains 100 L of brine with 20 kg of salt. Fresh water enters at 3 L/min and The mixture leaves at 3 L/min. Find the amount of salt after 30 minutes.
Solution
Solution. Let Q(t) be the amount of salt (kg) at time t (min).
Given a one-parameter family of curves F(x,y,C)=0The orthogonal trajectories are curves That intersect every member of the family at right angles. To find them:
Find the differential equation dxdy=f(x,y) of the given family.
Replace dxdy with −dydx (equivalently, negate the slope).
Solve the new ODE.
Example. Find the orthogonal trajectories of y=Cx2.
dxdy=2Cx=x2y.
Orthogonal trajectories satisfy dxdy=−2yx.
Separating: 2ydy=−xdx. Integrating: y2=−2x2+COr 2x2+y2=C. These are ellipses.
A first-order ODE dxdy=f(x,y) specifies the rate of change of y at every point (x,y). The solution is a curve that is everywhere tangent to the direction field defined by f.
Separable equationsdxdy=g(x)h(y) describe systems where the rate of change factors into an x-dependent part and a y-dependent part. For example, exponential growth dtdP=rP has rate proportional to the current value: g(t)=r, h(P)=P.
Linear equationsdxdy+P(x)y=Q(x) describe systems with a restoring or forcing term. The homogeneous part y′+P(x)y=0 has solution y=Ce−∫Pdx, which decays or grows depending on the sign of P. The particular solution captures the effect of the forcing Q.
Exact equationsMdx+Ndy=0 with My=Nx arise from conservative systems: there exists a potential function Ψ(x,y) such that the ODE becomes dΨ=0, giving Ψ=const as the solution. This is the same as saying the force field (M,N) is the gradient of a potential.
Newton’s law of coolingdtdT=−k(T−Tenv) is separable and describes exponential approach to equilibrium. The solution T(t)=Tenv+(T0−Tenv)e−kt shows that the temperature difference decays exponentially, with time constant 1/k.
Mixing problems model the concentration of a substance in a tank. The rate of change is rate in−rate out. If fresh fluid enters, the concentration decreases exponentially; if concentrated fluid enters, the concentration increases toward the input concentration.
Problem. A population grows according to the logistic equation dtdP=rP(1−KP), where r is the growth rate and K is the carrying capacity. Solve and interpret.
Solution
This is separable: P(1−P/K)dP=rdt. Using partial fractions:
P(1−P/K)1=P1+1−P/K1/K=P1+K−P1
Integrating: ln∣P∣−ln∣K−P∣=rt+C, so K−PP=Aert.
Solving for P: P=1+Be−rtK where B=K/P0−1 and P0=P(0).
Interpretation: As t→∞, P(t)→K (the carrying capacity). The population starts with exponential growth, transitions to logistic growth as P approaches K, and saturates at K. The inflection point occurs at P=K/2, where the growth rate is maximal. ■