aerograce
- 63
- 1
Let y be a solution of the di®erential equation,
\frac{dy}{dx}=\frac{y-1}{x+1}
such that
y(0)=0;
Then y(1) is:
My attempt:
\frac{1}{y-1}dy=\frac{1}{x+1}dx
ln|y-1|= ln |x+1| +C
Problems start to occur from here:
My method:
When x=0, y=0. Hence ln0=ln0+C C=0;
When x=1, ln|y-1|= ln2 + 0;
Hence |y-1| = 2
y=3 or y=-1.
My teacher's method
\frac{1}{y-1}dy=\frac{1}{x+1}dx
ln|y-1|= ln |x+1| +C
(y-1)=A(x+1)
Because y(0)=0 Hence A=-1
And when x=1, y-1=-2 y=-1
I am quite confused. My method seems to be legit also, but why I got different answer.
\frac{dy}{dx}=\frac{y-1}{x+1}
such that
y(0)=0;
Then y(1) is:
My attempt:
\frac{1}{y-1}dy=\frac{1}{x+1}dx
ln|y-1|= ln |x+1| +C
Problems start to occur from here:
My method:
When x=0, y=0. Hence ln0=ln0+C C=0;
When x=1, ln|y-1|= ln2 + 0;
Hence |y-1| = 2
y=3 or y=-1.
My teacher's method
\frac{1}{y-1}dy=\frac{1}{x+1}dx
ln|y-1|= ln |x+1| +C
(y-1)=A(x+1)
Because y(0)=0 Hence A=-1
And when x=1, y-1=-2 y=-1
I am quite confused. My method seems to be legit also, but why I got different answer.