An integral curve of the differential equation $(y-x)(dy/dx) = 1$ passes through $(0,0)$, and $(a,1)$, then what is $a$ equal to?
I have four options:
- $2-1/e$
- $1-1/e$
- 1/e
- 1+e
I know how to draw direction field and integral curves, but I'm not sure how to draw this one. I realise that the slope would increase when I'm coming close to $y=x$.
Also, is it true that the function won't be differentiable close to $y = x$?
$$(y(x)-x)y'(x)=1$$ $$y-x(y)=x'(y)$$ This first order linear ODE is easy to solve : $$x(y)=c\,e^{-y}+y-1$$ The condition $x(0)=0$ implies $c=1$ $$x(y)=e^{-y}+y-1$$ The condition $x(1)=a$ implies $x(1)=a=e^{-1}+1-1$ $$a=\frac{1}{e}$$