Solving First Order Linear Inhomogenous Eq.

  • Context: Undergrad 
  • Thread starter Thread starter Kalidor
  • Start date Start date
  • Tags Tags
    First order Linear
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
3 replies · 2K views
Kalidor
Messages
68
Reaction score
0
[tex]y'= \frac{y}{1+e^x}+e^{-x}[/tex]

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:

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