This is a first-order linear ODE solved using an integrating factor. The solution satisfying y(0)=−1 gives y(1)=−21.
The problem gives us a differential equation and an initial condition — that’s an Initial Value Problem (IVP). The goal is to find the specific function y(t) that satisfies both the equation and the starting value, then evaluate it at t=1.
The equation is:
(1+t)dtdy−ty=1,y(0)=−1
This is a first-order linear ODE in y. The standard form is dtdy+P(t)y=Q(t). Let’s rewrite it.
- Rewrite in standard linear form
Divide through by (1+t) (valid for t=−1, and we only care about t=0 to t=1, so fine):
dtdy−1+tty=1+t1
So P(t)=−1+tt and Q(t)=1+t1.
- Find the integrating factor
The integrating factor is μ(t)=e∫P(t)dt.
Compute ∫P(t)dt=∫−1+ttdt.
Simplify the integrand: −1+tt=−(1−1+t1)=−1+1+t1.
So:
∫P(t)dt=∫(−1+1+t1)dt=−t+log∣1+t∣+C
We only need one antiderivative, so take C=0. Then:
μ(t)=e−t+log∣1+t∣=e−t⋅elog∣1+t∣=(1+t)e−t
Since t>−1 in our domain, 1+t>0, so absolute values drop.
The integrating factor is μ(t)=(1+t)e−t.
- Multiply the ODE by μ(t)
Multiply the standard form by μ(t):
(1+t)e−tdtdy−(1+t)e−t⋅1+tty=(1+t)e−t⋅1+t1
Simplify the second term: (1+t)e−t⋅1+tt=te−t. The right side becomes e−t.
So we have:
(1+t)e−tdtdy−te−ty=e−t
Notice the left side is exactly dtd[(1+t)e−ty]. Check by differentiating:
dtd[(1+t)e−ty]=(1+t)e−tdtdy+[e−t−(1+t)e−t]y=(1+t)e−tdtdy−te−ty
Yes, matches.
So the equation becomes:
dtd[(1+t)e−ty]=e−t
- Integrate both sides
Integrate from 0 to t (or indefinitely and then use initial condition):
∫0tdsd[(1+s)e−sy(s)]ds=∫0te−sds …