\[y′+y=g(x)\] find the solution
\[y'+y=g(x)\]\[g(x) =\begin{cases}x & 0\leq x <1\\0 & 1\leq x\end{cases}\qquad\qquad y(0)=0\]
\[\mu (x)=e^{\int\text dx}=e^x\] \[\left(ye^x\right)'=e^xg(x)\]\[ye^x=\int e^xg(x)\text dx\]\[=\int_0^1 xe^x\text dx\]\[=\left.xe^x\right|_0^1-\int_0^1 e^x\text dx\]\[=e-\left.e^x\right|_0^1\]\[=e-e+1\]\[=1\]
\[ye^x=1\] \[y=e^{-x}\] \[y(0)=e^{-0}=1\neq0\] ?
where did i go wrong?
@mukushla what do you think ?
it will be ye^x=1 + c c is the constant
when u substitute y(0) i.e. x=0 u need to find the constant and then plug in the value of c in ye^x =1 + c this will be your final answer
or maybe \[\large ye^x=\int_{c}^{1} xe^x dx \]
\[\left(ye^x\right)'=e^xg(x)\]\[ye^x+c=\int_0^1 xe^x\text dx\]\[ye^x+c=1\]\[ye^x=1-c\]\[y=e^{-x}-ce^{-x}\] \[y(x)=e^{-x}-ce^{-x}\]\[y(0)=1-c=0\]\[c=1\]\[y(x)=e^{-x}-e^{-x}=0\]?
\[ ye^x=\int_{c}^{1} xe^x dx\]\[=\left.xe^x\right|_c^1-\left.e^x\right|_c^1\]\[=e-ce^c-e+e^c\]\[ye^x=e^c-ce^c\]\[y(x)=e^x(e^{c}-ce^{c})\]\[y(0)=e^{c}-ce^{c})=0\]\[e^c(1-c)=0\]\[c=1\]\[y(x)=e^x(e-ce)\]\[y(x)=e^{x+1}(1-1)=0\]?
@UnkleRhaukus how about laplace transform?
what answer do you get
after applying laplace we have\[\large Y(s)+sY(s)-y(0)=\int_{0}^{1} xe^{-sx} dx\]
and \[Y(s)=\frac{1}{(1+s)s^2}-\frac{e^{-s}}{s^2}\]since \(y(0)=0\)
hm
we can calculate inverse of it but wolfram says \[y=-(x-1) H(x-1)+x+e^{-x}-1\]
im wondering how we can obtain it with other methods....!!!
\[y'+y=xu(x-1)=(x-1)u_1+u_1\]\[sY(s)-y(0)+Y(s)=\frac{e^{-s}}{s^2}+\frac{e^{-s}}s\]\[Y(s)(s+1)=e^{-s}\left(\frac1{s^2}+\frac1s\right)=e^{-s}\left({s+1\over s^2}\right)\]\[Y(s)={e^{-s}\over s^2}\implies y=(x-1)u_1\]what did I do wrong?
what is \(u_1\)
heavyside H(x-1) maybe you know it as
i dont think im ment to use laplace for this question
why not, I think I successfully redefined the problem in terms of the heavyside... what section of your book is this in?
this is the first assignment of a Differential Equations class
laplace trans forms dont come in till chapter 5, we havent covered everything form chapter 3 yet
do you know what the answer is supposed to be?
im not sure
oh wait, my heavyside thing is wrong but I won't fix it since you said no laplace yet anyway
should have started with\[y'+y=x(1-u_1)\]that is the step function redone with the heaviside
but if not laplace allowed this does not help
@lalaly
well ... \((e^x y)'=e^x g(x)\) and we have 2 cases \((I)\) \( 0\le x <1 \) \[(e^x y)'=e^x g(x)=xe^x\]\[ye^x=xe^x-e^x+c\]\[y=x-1+ce^{-x}\]\[y(0)=0\]it gives \(c=1\) \((II)\) \(x \ge1\) \[(ye^x)'=0\]\[ye^x=b\]\[y=be^{-x}\] so we can write \[y =\begin{cases}x-1+e^{-x} & 0\leq x <1\\be^{-x} & 1\leq x\end{cases}\]if we assume that \(y\) is a continous function easily u can see \(b=1\) and the final answer:\[y =\begin{cases}x-1+e^{-x} & 0\leq x <1\\e^{-x} & 1\leq x\end{cases}=-(x-1)H(x-1)+x-1+e^{-x}\]
exactly th same result from laplace transform
@mukushla you are awesome.this is 100% correct. i was reviewing my DEqS book for this Problem was just about to go for this process as you did.the key Point was the requirement of continuity at x=1.
:)
hey that's brilliant #Mukushla ! i wasn't sure how to handle the piecewise function but now i see i must take cases, thank you
yw :)
im a little bit unsure how i can assume the solution is continuos but every think else makes so much sense now
i feel i need another line or some words so something, how do we know continuity of the solution at x=1?
i say y(1)=1, but that kinda comes outer nowhere
@eliassaab sir..how we can say y is continous? is this come out from type of equation?
or it should be mentiond as a condition for problem?
quite different with what i got !!
y should be continuous and piecewise differentiable
so its obtainable from equation that y is continuous and piecewise differentiable...
Sorry the solution, that I posted above was for g[x]=1 for x between 0 and 1. Here is the solution for the given problem \[ y(x)=\left \{\begin{array}{cc} 0 & x\leq 0 \\ e^{-x} \left( 1-e^x+ x e^x\right) & 0<x\leq 1 \\ e^{-x} & x \ge 1 \\ \end{array} \right . \]
@mukushla your solution is correct.
oh...thank u sir..:)
if you take \[ u(x)=e^{-x} \left(e^x x-e^x+1\right)\\ u'(x) + u(x) =x\\ and\\ u(x)=e^{-x}\\ u'(x) + u(x) =0 \]
yeah...actually im stuck with my first question...i want just a little explanation about continuity if u dont mind me asking this again...
\[u(1)= e^{-1} \] on both side of 1.
should i say something about the limit of y(x) as x approaches 1, ?
Join our real-time social learning platform and learn together with your friends!