If y(t) is a solution of (1+t)dydt−ty=1 and y(0)=-1, then show that y(1)=−12.
Given that, (1+t)dydt−ty=1⇒dydt−(t1+t)y=11+t
which is a linear differential equation.
On comparing it with dydt+Py=Q, we get
P=−(t1+t), Q=11+t
IF=e−∫t1+tdt=e−∫(1−11+t)dt=e−[t−log(1+t)] =e−t.elog(1+t) =e−t(1+t)
The general solution is
y(t).(1+t)et=∫(1+t).e−t(1+t)dt+C⇒y(t)=e−t(−1).et1+t+C′, where C′=Ce′1+t⇒y(t)=−11+t+C′
When t=0 and y=-1, then
−1=−1+C′⇒C′=0y(t)=−11+t⇒y(1)=−12