ODE 1st orderMedium

Separable variable ODE

Solve the ODE y' = 2xy with initial condition y(0) = 3.
Given data
y' = 2xyy(0) = 3
Review the theory: ODE del 1° Ordine
Steps
0 / 3
  1. Separate the variables: move all y terms to the left and x terms to the right.
  2. Integrate both sides.
  3. Apply the initial condition y(0) = 3 and find the explicit solution.
Full worked solution
  1. Separate the variables: move all y terms to the left and x terms to the right.
    dyy=2x dx\frac{dy}{y} = 2x\,dx
    dydx=2xy→dyy=2x dx\frac{dy}{dx} = 2xy \rightarrow \frac{dy}{y} = 2x\,dx. Separating variables collects yy on the left and xx on the right.
  2. Integrate both sides.
    ln⁡∣y∣=x2+C\ln|y| = x^2 + C
    ∫dyy=∫2x dx→ln⁡∣y∣=x2+C\int \frac{dy}{y} = \int 2x\,dx \rightarrow \ln|y| = x^2 + C. Integrating both sides yields the general solution in implicit form.
  3. Apply the initial condition y(0) = 3 and find the explicit solution.
    y(0)=3⇒C=ln⁡3⇒y=3ex2y(0)=3 \Rightarrow C=\ln3 \Rightarrow y = 3e^{x^2}
    y=ex2+C=eC ex2y = e^{x^2 + C} = e^C\,e^{x^2}. Using y(0)=3y(0) = 3: 3=eC⋅e0=eC→K=33 = e^C\cdot e^0 = e^C \rightarrow K = 3. Explicit solution: y(x)=3 ex2\mathbf{y(x) = 3\,e^{x^2}}.
Result:y(x) = 3e^{x²}.