ODE 1st orderMedium

Linear 1st order ODE

Solve y' + 3y = 6 with y(0) = 0.
Given data
y' + 3y = 6y(0) = 0
Review the theory: ODE del 1° Ordine
Steps
0 / 3
  1. Calculate the integrating factor μ = e^(∫3 dx).
  2. Integrate (μy)' = μ·6 = 6e^(3x).
  3. Apply y(0) = 0 and find C.
Full worked solution
  1. Calculate the integrating factor μ = e^(∫3 dx).
    μ=e3x\mu = e^{3x}
    μ=e∫3 dx=e3x\mu = e^{\int 3\,dx} = e^{3x}. The integrating factor for the linear ODE y′+P(x)y=Q(x)y' + P(x)y = Q(x) with P(x)=3P(x) = 3.
  2. Integrate (μy)' = μ·6 = 6e^(3x).
    e3xy=2e3x+Ce^{3x}y = 2e^{3x} + C
    (μy)′=μQ=6e3x→μy=∫6e3x dx=2e3x+C(\mu y)' = \mu Q = 6e^{3x} \rightarrow \mu y = \int 6e^{3x}\,dx = 2e^{3x} + C. Solving y=2+Ce−3xy = 2 + C e^{-3x}.
  3. Apply y(0) = 0 and find C.
    0=2+C⇒C=−20 = 2 + C \Rightarrow C = -2
    0=2+C e0→C=−20 = 2 + C\,e^{0} \rightarrow C = -2. The particular solution satisfying y(0)=0y(0) = 0 is y(x)=2(1−e−3x)\mathbf{y(x) = 2(1 - e^{-3x})}.
Result:y(x) = 2(1 − e^{−3x}).