MHB Solve DE for y: $\displaystyle y^\prime +y = xe^{-x}+1$

  • Thread starter Thread starter karush
  • Start date Start date
karush
Gold Member
MHB
Messages
3,240
Reaction score
5
$\textsf{Given:}$
$$\displaystyle y^\prime +y = xe^{-x}+1$$
$\textit{Solve the given differential equation}$
$\textit{From:$\displaystyle\frac{dy}{dx}+Py=Q$}$
$\textit{then:}$
$$\displaystyle
e^x y=\int x+e^{-2x} \, dx
+ c \\
\displaystyle e^x y=\frac{1}{2}(x^2-e^{-2x})+c$$
$\textit{divide every term by $e^x$}$
$$\displaystyle y=\frac{1}{2(e^x)}(x^2)
-\frac{e^{-2x}}{2(e^x)}+\frac{c}{(e^x)}$$
$\textit{simplify and reorder terms}$
$$\displaystyle y=c_1e^{-x}+\frac{1}{2}e^{-x}x^2+1$$
$\textit{Answer by W|A}$
$$y(x)=\color{red}
{\displaystyle c_1e^{-x}+\frac{1}{2}e^{-x}x^2+1}$$

any bugs any suggest?
 
Physics news on Phys.org
The integrating factor is:

$$\mu(x)=e^x$$

And so we get:

$$y'e^x+ye^x=x+e^x$$

$$\frac{d}{dx}\left(e^xy\right)=x+e^x$$

Integrate:

$$e^xy=\frac{x^2}{2}+e^x+c_1$$

Hence:

$$y(x)=\frac{x^2}{2}e^{-x}+1+c_1e^{-x}$$

Somehow you arrived at the correct answer, but your work doesn't show how.
 
MarkFL said:
Hence:

$$y(x)=\frac{x^2}{2}e^{-x}+1+c_1e^{-x}$$

Somehow you arrived at the correct answer, but your work doesn't show how.

ok I hit and missed with some examples
but see your steps make a lot more sense
 
There is the following linear Volterra equation of the second kind $$ y(x)+\int_{0}^{x} K(x-s) y(s)\,{\rm d}s = 1 $$ with kernel $$ K(x-s) = 1 - 4 \sum_{n=1}^{\infty} \dfrac{1}{\lambda_n^2} e^{-\beta \lambda_n^2 (x-s)} $$ where $y(0)=1$, $\beta>0$ and $\lambda_n$ is the $n$-th positive root of the equation $J_0(x)=0$ (here $n$ is a natural number that numbers these positive roots in the order of increasing their values), $J_0(x)$ is the Bessel function of the first kind of zero order. I...
Are there any good visualization tutorials, written or video, that show graphically how separation of variables works? I particularly have the time-independent Schrodinger Equation in mind. There are hundreds of demonstrations out there which essentially distill to copies of one another. However I am trying to visualize in my mind how this process looks graphically - for example plotting t on one axis and x on the other for f(x,t). I have seen other good visual representations of...

Similar threads

Replies
1
Views
1K
Replies
2
Views
1K
Replies
2
Views
2K
Replies
4
Views
2K
Replies
3
Views
1K
Replies
4
Views
1K
Replies
10
Views
2K
Replies
5
Views
2K
Replies
1
Views
1K
Back
Top