Solve 1st Order DE: y+y'=x, y(0)=0

  • Thread starter Thread starter James889
  • Start date Start date
  • Tags Tags
    First order
Click For Summary

Homework Help Overview

The discussion revolves around solving the first order differential equation y + y' = x with the initial condition y(0) = 0. Participants explore various methods to find a solution, including assuming a linear form and using an integrating factor.

Discussion Character

  • Exploratory, Mathematical reasoning, Assumption checking

Approaches and Questions Raised

  • Participants discuss assuming a solution of the form Ax + b and the challenges faced with this approach. The use of the integrating factor technique is also examined, with some participants noting the importance of including the constant of integration.

Discussion Status

There is an ongoing exploration of the problem, with participants providing feedback on each other's attempts. Some guidance has been offered regarding the necessity of the integration constant, and multiple interpretations of the solution are being discussed.

Contextual Notes

Participants are questioning the assumptions made in their approaches, particularly regarding the integration constant and the implications of the homogeneous solution.

James889
Messages
190
Reaction score
1
Hi,

I have the first order differential equation [tex]y+y' = x[/tex]
y(0) = 0
First i tried to assume a solution of the form Ax+b, that didn't quite work.

Then i tried to use the Integrating factor technique, work follows

[tex]e^{\int1} = e^x[/tex]

[tex]\int e^x(y+y') = \int{xe^x}[/tex]

[tex]ye^x = \int xe^x[/tex]

let u = x, du=1
v = e^x dv=e^x

So i end up with:
[tex]ye^x = xe^x -e^x[/tex]

which is wrong...
Any ideas?
 
Physics news on Phys.org
You forgot your " + C" at the end of your integration. : )
 
The answer is supposed to be [tex]y = ce^{-x} + x-1[/tex]

But the answer i get when dividing both sides by e^x is y = x-1
 
Last edited:
Did you read my post?

James889 said:
[tex]e^{\int1} = e^x[/tex]

[tex]\int e^x(y+y') = \int{xe^x}[/tex]

[tex]ye^x = \int xe^x[/tex]

let u = x, du=1
v = e^x dv=e^x

So i end up with:
[tex]ye^x = xe^x -e^x[/tex]

Where is the integration constant? Where is the "+ C"? That is important because when you divide by e^x, you'll end up with the e^(-x) you were looking for.
 
James889 said:
Hi,

I have the first order differential equation [tex]y+y' = x[/tex]
y(0) = 0
First i tried to assume a solution of the form Ax+b, that didn't quite work.
What didn't work when you did this? Is it the same problem where you're missing the e-x term?
 
vela said:
What didn't work when you did this? Is it the same problem where you're missing the e-x term?

Yes,

Put y = Ax + b
then y' = A

So i get: Ax + b + A = x
 
James889 said:
Yes,

Put y = Ax + b
then y' = A

So i get: Ax + b + A = x

What values of A and b make the left hand side also equal to x?

if y=f(x) is a single solution of the equation y'+y = x the other solutions
are y = f(x) + C g(x) where y= g(x) is a solution of y' + y = 0.
 
willem2 said:
What values of A and b make the left hand side also equal to x?
The values A=1, b=-1

But does this mean i have to guess G(x) ?
 
No, you have to solve the corresponding homogeneous equation y' + y = 0 and add that solution to the other one, yp=x-1, to get the general solution.
 
  • #10
James889 said:
Hi,

I have the first order differential equation [tex]y+y' = x[/tex]
y(0) = 0
First i tried to assume a solution of the form Ax+b, that didn't quite work.

Then i tried to use the Integrating factor technique, work follows

[tex]e^{\int1} = e^x[/tex]

[tex]\int e^x(y+y') = \int{xe^x}[/tex]

[tex]ye^x = \int xe^x[/tex]

let u = x, du=1
v = e^x dv=e^x

So i end up with:
[tex]ye^x = xe^x -e^x[/tex]

which is wrong...
Any ideas?

l'Hôpital said:
You forgot your " + C" at the end of your integration. : )

James889 said:
The answer is supposed to be [tex]y = ce^{-x} + x-1[/tex]

But the answer i get when dividing both sides by e^x is y = x-1
As l'Hopital said, you forgot the "constant of integration", C, in your original solution:
[tex]ye^x= xe^x- e^x+ C[/itex]<br /> <br /> Now, dividing through by [itex]e^x[/itex] gives [itex]y= x- 1+ Ce^{-x}[/itex][/tex]
 

Similar threads

  • · Replies 12 ·
Replies
12
Views
2K
Replies
7
Views
2K
Replies
2
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
Replies
19
Views
3K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 26 ·
Replies
26
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K