Separation of Variables Math Example 1

Follow the full solution, then compare it with the other examples linked below.

Example 1

easy
Solve dy/dx=xydy/dx = xy with y(0)=2y(0)=2.

Solution

  1. 1
    Separate: dy/y=xโ€‰dxdy/y = x\,dx. Integrate: lnโกโˆฃyโˆฃ=x2/2+C\ln|y| = x^2/2+C.
  2. 2
    y=Aex2/2y = Ae^{x^2/2}. y(0)=2โ‡’A=2y(0)=2 \Rightarrow A=2.
  3. 3
    Solution: y=2ex2/2y = 2e^{x^2/2}.

Answer

y=2ex2/2y = 2e^{x^2/2}
Separate, integrate both sides, exponentiate, apply IC.

About Separation of Variables

A method for solving first-order DEs of the form dydx=f(x)โ‹…g(y)\frac{dy}{dx} = f(x) \cdot g(y): rearrange to dyg(y)=f(x)โ€‰dx\frac{dy}{g(y)} = f(x)\,dx, then integrate both sides.

Learn more about Separation of Variables โ†’

More Separation of Variables Examples