Solving First Order Linear Inhomogenous Eq.

Click For Summary
SUMMARY

The discussion focuses on solving the first order linear inhomogeneous equation given by y' = y/(1+e^x) + e^{-x}. The solution derived using the method of variation of constants is y(x) = C(e^x/(1+e^x)) - (2 + e^{-x})/(2(1 + e^x)). The user expressed confusion regarding the verification of the solution using derivatives, indicating a common challenge in confirming the correctness of solutions in differential equations.

PREREQUISITES
  • Understanding of first order linear differential equations
  • Familiarity with the method of variation of constants
  • Basic knowledge of calculus, specifically differentiation
  • Experience with mathematical software, such as Mathematica
NEXT STEPS
  • Study the method of variation of constants in detail
  • Practice solving first order linear inhomogeneous equations
  • Learn how to verify solutions of differential equations using derivatives
  • Explore the capabilities of Mathematica for solving differential equations
USEFUL FOR

Students and professionals in mathematics, particularly those studying differential equations, as well as educators looking for practical examples of solving first order linear inhomogeneous equations.

Kalidor
Messages
68
Reaction score
0
y'= \frac{y}{1+e^x}+e^{-x}

It's an easy first order linear inhomogenous eq. I solved it by hand with the formula that one can find anywhere AND with Mathematica, but when I take the derivative to check the solution it comes out wrong and it's freaking me out. Can anyone here post just the plain solution?
 
Physics news on Phys.org
Just use the method of variating the constant, and you get:

<math>y(x) = C\frac{e^x}{1+e^x}-\frac{2+e^{-x}}{2(1+e^x)} </math>
 
<tex>y(x) = C\frac{e^x}{1+e^x}-\frac{2+e^{-x}}{2(1+e^x)} </tex>
 
oops used the wrong brackets for math mode, so here it is:

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

Similar threads

  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 1 ·
Replies
1
Views
455
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 36 ·
2
Replies
36
Views
5K
  • · Replies 7 ·
Replies
7
Views
2K