ODEMedium
Differential equation — separable variables
Solve the differential equation y' = 2x·y with initial condition y(0) = 3.
Given data
y' = 2x·yy(0) = 3- Separate the variables: move y to the left and x to the right.
- Integrate both sides: ∫ dy/y = ∫ 2x dx.
- Apply the exponential to isolate y.
- Use the condition y(0) = 3 to find K.
Full worked solution
- Separate the variables: move y to the left and x to the right.. Separating variables puts all terms on the left and all terms on the right.
- Integrate both sides: ∫ dy/y = ∫ 2x dx.. Integrating both sides yields the general solution in implicit form.
- Apply the exponential to isolate y.with . Exponentiating both sides removes the logarithm.
- Use the condition y(0) = 3 to find K., so . The particular solution satisfying the initial condition is .
Result:y(x) = 3·e^{x²}.