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

  • Context: MHB 
  • Thread starter Thread starter karush
  • Start date Start date
Click For Summary
SUMMARY

The differential equation \( y' + y = xe^{-x} + 1 \) is solved using the integrating factor \( \mu(x) = e^x \). The solution process involves rewriting the equation as \( \frac{d}{dx}(e^x y) = x + e^x \) and integrating to obtain \( e^x y = \frac{x^2}{2} + e^x + c_1 \). Dividing through by \( e^x \) yields the final solution \( y(x) = \frac{x^2}{2} e^{-x} + 1 + c_1 e^{-x} \), confirming the correctness of the approach despite initial confusion in the steps.

PREREQUISITES
  • Understanding of first-order linear differential equations
  • Familiarity with integrating factors in differential equations
  • Knowledge of integration techniques, particularly for polynomial and exponential functions
  • Ability to manipulate and simplify algebraic expressions
NEXT STEPS
  • Study the method of integrating factors in greater detail
  • Practice solving various first-order linear differential equations
  • Explore the application of differential equations in real-world scenarios
  • Learn about the existence and uniqueness theorem for differential equations
USEFUL FOR

Students and professionals in mathematics, engineering, and physics who are looking to deepen their understanding of differential equations and their solutions.

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
2K
  • · 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