First order DE with exponential

  • Context: Undergrad 
  • Thread starter Thread starter dragonblood
  • Start date Start date
  • Tags Tags
    Exponential First order
Click For Summary

Discussion Overview

The discussion revolves around solving a first order differential equation of the form y' + y = e^x. Participants explore methods for solving this equation, including separation of variables and linear methods.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Homework-related

Main Points Raised

  • One participant expresses uncertainty about how to separate variables for the equation y' + y = e^x.
  • Another participant suggests multiplying the equation by e^x to facilitate solving it, explaining that this leads to the product-rule expansion of d(e^x y)/dx.
  • This second participant notes that the method of multiplying by a function μ(x) is general for first order linear equations, but may not always yield elementary functions.
  • A third participant reiterates the original question, indicating a desire for a simpler method and introduces the concept of the characteristic equation for constant coefficient equations, suggesting a complementary solution and a particular solution approach.

Areas of Agreement / Disagreement

Participants present multiple approaches to solving the differential equation, with no consensus on a single method being preferred. The discussion remains unresolved regarding which method is the most effective or simplest.

Contextual Notes

The discussion includes various assumptions about the methods used, such as the applicability of linear methods and the nature of the solutions derived from different approaches. There is also an implicit assumption that participants are familiar with concepts like characteristic equations and undetermined coefficients.

dragonblood
Messages
21
Reaction score
0
I want to solve a first order differential equation on the form

y'+y=e^{x}

I want to separate the variables, but not sure how...Thanks!
 
Physics news on Phys.org
You can't separate the variables directly. The way to solve it is to multiply the whole equation by e^x. You'll then notice that since d (e^x)/dx = e^x, the right hand side is just the product-rule expansion of d(e^xy)/dx. So, you have

\frac{d}{dx}(e^x y) = e^{2x}.

Now you can separated the variables. You may wonder why I multiplied by e^x. In general you would multiply by some unknown function \mu(x), which you then chose by demanding that you can write the left hand side as d(\mu y)/dx. This requires setting the coefficient of y (after multiplication by the \mu) equal to d\mu/dx. In this case it gives d\mu/dx = \mu, which gives the exponential.

In general, the factor that you multiply by will be

\mu(x) = \exp\left[\int dx~(\mbox{coefficient of}~y)\right].

Notes: this trick only works for first order linear equations, you may not get a \mu(x) which you can express in terms of elementary functions (but it still gives you a solution), and the arbitrary constant of integration in the above expression doesn't matter (it will cancel out in the end).
 
Thank you very much!
 
dragonblood said:
I want to solve a first order differential equation on the form

y'+y=e^{x}

I want to separate the variables, but not sure how...Thanks!

You have already received one reply using linear methods. An even easier method for this is to observe that it is a constant coefficient equation with characteristic equation r+1=0. So the complementary solution is yc = Ce(-x) and you can find a particular solution yp by undetermined coefficients. Then the general solution is:

y = yc + yp
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 17 ·
Replies
17
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 3 ·
Replies
3
Views
3K
Replies
8
Views
6K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
686