Check My Work for solving this Differential Equation? :)

Dusty912
Messages
149
Reaction score
1

Homework Statement


Question: Solve this differential equation
dy/dt=1+y2 and y(π/4)=-1

Homework Equations



The Attempt at a Solution


dy/dt=1+y2 and y(π/4)=-1

dy/dt=1+y2
dy=(1+y2)dt
dy/(1+y2)=dt
∫dy(1+y2)=∫dt
tan-1(y)=t+c
y(t)=tan(t)+c
y(π/4)=tan(π/4)+c
-1=1+c
-2=c

answer: y(t)=tan(t)-2
 
Physics news on Phys.org
Dusty912 said:

Homework Statement


Question: Solve this differential equation
dy/dt=1+y2 and y(π/4)=-1

Homework Equations



The Attempt at a Solution


dy/dt=1+y2 and y(π/4)=-1

dy/dt=1+y2
dy=(1+y2)dt
dy/(1+y2)=dt
∫dy(1+y2)=∫dt
tan-1(y)=t+c
y(t)=tan(t)+c
y(π/4)=tan(π/4)+c
-1=1+c
-2=c

answer: y(t)=tan(t)-2
Did you check if dy/dt=1+y2 for your solution?

I think there is an error in this step:
tan-1(y)=t+c
y(t)=tan(t)+c
 
Samy_A said:
Did you check if dy/dt=1+y2 for your solution?

I think there is an error in this step:
tan-1(y)=t+c
y(t)=tan(t)+c

hmm I'm not sure that I am seeing the error, does it involve the constant being effected by the tan?
 
Dusty912 said:
hmm I'm not sure that I am seeing the error, does it involve the constant being effected by the tan?
Yes.

There must be an error somewhere, as inspection would show that y(t)=tan(t)-2 doesn't satisfy the differential equation.
 
so would it look something like this: y=tan(t+c) ----not my answer but the next step
 
Dusty912 said:
so would it look something like this: y=tan(t+c) ----not my answer but the next step
Yes.
 
ok so then then from there using y(π/4)=-1
the next step would be: -1=tan(π/4+c)
and then I am guessing the step would be: tan-1(-1)=π/4+c
 
Dusty912 said:
ok so then then from there using y(π/4)=-1
the next step would be: -1=tan(π/4+c)
and then I am guessing the step would be: tan-1(-1)=π/4+c
Yes (no need for guessing, though).
 
adding on to the previous steps: -π/4=π/4+c
-π/2=c

so the the solution would be:
y(t)=tan(t-π/2)
 
  • #10
Dusty912 said:
adding on to the previous steps: -π/4=π/4+c
-π/2=c

so the the solution would be:
y(t)=tan(t-π/2)
Yes.
 
  • #11
Okay thank you very much. You've been very helpful.
 
Back
Top