Solve First order linear differential equation, initial conditions

Click For Summary

Homework Help Overview

The problem involves solving a first-order linear differential equation of the form dy/dt + y = 0.5 with the initial condition y(t=0) = 1. Participants are discussing the steps taken to separate variables and integrate, as well as the implications of the initial condition on the solution.

Discussion Character

  • Exploratory, Mathematical reasoning, Problem interpretation

Approaches and Questions Raised

  • Participants describe attempts to separate variables and integrate both sides of the equation. There are questions regarding the correctness of the derived expressions and the handling of the constant of integration. Some participants point out potential errors in the signs and the interpretation of the initial condition.

Discussion Status

The discussion is ongoing, with participants providing feedback on each other's attempts. There is a focus on clarifying the steps taken and ensuring the accuracy of the mathematical manipulations. Multiple interpretations of the solution are being explored, particularly regarding the handling of constants and the initial condition.

Contextual Notes

Participants are navigating through the implications of the initial condition and the constants involved in the solution. There is a noted confusion about the signs and the equivalence of expressions derived during the integration process.

NCyellow
Messages
22
Reaction score
0

Homework Statement


The problem is given as follows:
Solve
dy/dt + y = 0.5, y(t=0)=1

Homework Equations


The Attempt at a Solution


I separate the y terms from the t terms, which gives me
dy(-y+0.5)=dt
I integrate both sides to get
-ln(-y+0.5)=t+C
C is the constant, I combine the constants from both sides to one value.
Multiplying both sides by the negative,
ln(-y+0.5)=-t-C
Now i e both sides
-y+0.5=e^(-t-C)
Therefore I can simplify to y=e^(-t-C)+0.5, which is my solution
Since y(0)=1,
e^(-C) = 0.5
I don't know what exactly I am supposed to do with that...
Was my answer correct?
Please advise, Thank you!
 
Last edited:
Physics news on Phys.org
surely you mean e^{-C}=1.5
 
latentcorpse said:
surely you mean e^{-C}=1.5

Wrote the signs wrong, fixed now.
 
NCyellow said:

Homework Statement


The problem is given as follows:
Solve
dy/dt + y = 0.5, y(t=0)=1


Homework Equations





The Attempt at a Solution


I separate the y terms from the t terms, which gives me
dy(-y+0.5)=dt
dy/(-y+0.5)= dt

I integrate both sides to get
-ln(-y+0.5)=t+C
C is the constant, I combine the constants from both sides to one value.

Multiplying both sides by the negative,
ln(-y+0.5)=-t-C
Now i e both sides
-y+0.5=e^(-t-C)
Therefore I can simplify to y=e^(-t-C)+0.5, which is my solution
Since y(0)=1,
e^(-C) = 0.5
I don't know what exactly I am supposed to do with that...
Was my answer correct?
Please advise, Thank you!
-y+0.5= e^{-t-C} is NOT equivalent to y= e^{-t-C}+0.5.

Subtracting 0.5 from each side of -y+0.5= e^{-t-C} gives -y= e^{-t-C}- 0.5 and then, multiplying both sides by -1, y= 0.5- e^{-t-C}.

Now, taking y= 1 when t= 0, 1= 0.5- e^{-C} so e^{-C}= 0.5 still.
And e^{-t-C}= e^{-t}e^{-C}. Since e^{-C}= 0.5, e^{-t-C}= 0.5e^{-t} and your solution is y= 0.5- 0.5e^{-t}
 

Similar threads

Replies
2
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 6 ·
Replies
6
Views
1K
Replies
3
Views
2K
Replies
2
Views
1K
Replies
5
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K