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

  • Thread starter Thread starter karush
  • Start date Start date
Click For Summary
The differential equation y' + y = xe^{-x} + 1 is solved using the integrating factor e^x. The solution process involves rewriting the equation as e^x y = ∫(x + e^{-2x}) dx + c, leading to the expression y = c_1 e^{-x} + (1/2)e^{-x}x^2 + 1. The final answer is confirmed as y(x) = c_1 e^{-x} + (1/2)e^{-x}x^2 + 1. The discussion highlights the importance of clearly showing each step in the solution process for clarity and understanding.
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
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K