Solving a Differential Equation Conflict

  • Thread starter Thread starter gulsen
  • Start date Start date
Click For Summary

Homework Help Overview

The discussion revolves around solving a basic differential equation of the form dy/dx = x + y with an initial condition y(0) = 1. Participants explore different methods to solve the equation, including attempting to make it exact and treating it as a non-homogeneous equation.

Discussion Character

  • Mixed

Approaches and Questions Raised

  • Some participants attempt to solve the equation by making it exact, while others question the correctness of this approach. There is also discussion about solving it as a non-homogeneous equation and the implications of integration constants.

Discussion Status

Participants are actively engaging with the problem, providing corrections and clarifications regarding the methods used. There is recognition of errors in the initial attempts, particularly concerning the integration constant and the naming conventions of solutions.

Contextual Notes

Some participants note the importance of initial conditions and the role of arbitrary constants in the solutions. There is also mention of potential typos in the original equations presented.

gulsen
Messages
215
Reaction score
0
I have a basic differential equation:
\frac{dy}{dx} = x + y, y(0) = 1

Now, when I try to solve this by making it exact
\mu \frac{dy}{dx} + \mu y = \mu x
I get \mu = e^{-x} and solution -x-1. This doesn't satisfy the initial condition. But when I try to solve it as a non-homogenous equation as:
\frac{dy}{dx} + y= x
I get
y_p = 2e^x, y_c = -x-1
so
y = 2e^x-x-1

Which seems to be a correct & full solution. What was I missing in the first try?
 
Physics news on Phys.org
You are solving dy/dx + y = x which is wrong since the original equation is
dy/dx = x + y, or dy/dx - y = x so now u(x) = e^(-x) and so on and it works out.


And yes, the answer is y = 2e^x - x - 1
 
gulsen said:
I have a basic differential equation:
\frac{dy}{dx} = x + y, y(0) = 1
Now, when I try to solve this by making it exact
\mu \frac{dy}{dx} + \mu y = \mu x
I assume this was just a typo, but that equation should be
\mu \frac{dy}{dx} - \mu y = \mu x
I get \mu = e^{-x} and solution -x-1. This doesn't satisfy the initial condition.
Your error: you forgot the constant of integration. You should have obtained
y = -(x+1) + c/\mu = ce^x - (1+x)
and then solved for the initial condition y(0)=1 yielding c=2 or
y = 2e^x -(x+1)
But when I try to solve it as a non-homogenous equation as:
\frac{dy}{dx} + y= x
I get
y_p = 2e^x, y_c = -x-1
so
y = 2e^x-x-1
You're nomenclature is backward here. The solution to the homogeneous equation is called the complementary function and is denoted as y_c. The complementary function generally involves arbitrary constants. A solution to the inhomogeneous equation is called a particular function and is denoted as y_p.
In this case, the solution to the homogeneous equation y^\prime-y=0 is
y_c = ce^x
where c is an arbitrary constant and
y_p = -(x+1)
is a particular solution to the inhomogeneous equation. Combining these,
y = ce^x - (1+x)
which meets the initial conditions when c=2.
 
Last edited:
Oh, that was just a typo. Thanks D_H, it ends up that I've forgotten the integration constant.
About naming, take it easy, I'm just a freshman!
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
2K
Replies
3
Views
2K
Replies
3
Views
2K
Replies
19
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
10
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 12 ·
Replies
12
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 24 ·
Replies
24
Views
2K