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
 
Thread 'Direction Fields and Isoclines'
I sketched the isoclines for $$ m=-1,0,1,2 $$. Since both $$ \frac{dy}{dx} $$ and $$ D_{y} \frac{dy}{dx} $$ are continuous on the square region R defined by $$ -4\leq x \leq 4, -4 \leq y \leq 4 $$ the existence and uniqueness theorem guarantees that if we pick a point in the interior that lies on an isocline there will be a unique differentiable function (solution) passing through that point. I understand that a solution exists but I unsure how to actually sketch it. For example, consider a...

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