Find a solution to the initial value problem

6 replies · 13K views · last reply
Colts
Messages
76
Reaction score
0

Homework Statement


Find a solution to the initial value problem
Initial value problem: y' + sin(t)y = g(t), y(0) = 7, typeset as a displayed equation.

that is continuous on the interval
Interval [0, 2π] shown in plain text, the domain over which the initial value problem solution is required to be continuous.
where
Piecewise definition of g(t): g(t) = sin(t) if 0 ≤ t ≤ π, and g(t) = −sin(t) if π < t ≤ 2π.


Homework Equations


I know the equations, but don't want to type them out.

The Attempt at a Solution



I got the first part of this question. The part where g(t) = sin(t)

I can not figure it out when g(t)=-sin(t)
The answer I have come up with for that part is y(t)= -1+(8*e^(cos(t))/e)
This is using y(0)=y(2pi)

Any reason I can't do this? There must be some reason because I'm not getting the right answer.
 
Last edited by a moderator:
Okay so I'll assume you've actually solved y' + sin(t)y = sin(t) for 0 ≤ t ≤ π.

I got y(t) = cecos(t) + 1. As the general solution.

As for solving the second one, I got y(t) = cecos(t) - 1 for π ≤ t ≤ 2π.

I'm not sure how you're getting what you got?
 
I have solved for y' + sin(t)y = sin(t) for 0 ≤ t ≤ π.

Since we are given y(0)=7 we are not allowed to put C in our answer. SO my First answer was y=1+6/e*e^cos(t)

but since we are not given something for the other interval I don't know how to solve for C. I thought I could use y(0) = 7 since 2pi and 0 are equal for sin and cos, but it is not right.
 
Colts said:
I have solved for y' + sin(t)y = sin(t) for 0 ≤ t ≤ π.

Since we are given y(0)=7 we are not allowed to put C in our answer. SO my First answer was y=1+6/e*e^cos(t)

but since we are not given something for the other interval I don't know how to solve for C. I thought I could use y(0) = 7 since 2pi and 0 are equal for sin and cos, but it is not right.

Your first answer is not correct, you may want to check it again, I'll assume it's an arithmetic error.

Also, you have the right idea evaluating the second one at 2π, once again though it's probably just arithmetic.
 
Zondrina said:
Your first answer is not correct, you may want to check it again, I'll assume it's an arithmetic error.

Also, you have the right idea evaluating the second one at 2π, once again though it's probably just arithmetic.

I'm not sure how my first is wrong? This is for online homework and I put it in and it says it is correct.
 
Colts said:
I have solved for y' + sin(t)y = sin(t) for 0 ≤ t ≤ π.

Since we are given y(0)=7 we are not allowed to put C in our answer. SO my First answer was y=1+6/e*e^cos(t)

but since we are not given something for the other interval I don't know how to solve for C. I thought I could use y(0) = 7 since 2pi and 0 are equal for sin and cos, but it is not right.

Yes, y=1+(6/e)*e^cos(t) is correct for the first part. Use that to find y(pi) and use it as an initial value for the second. And no, you can't assume y(0)=y(2pi). It's true for the individual parts. But it's not necessarily true if you are splicing them together and you cross the point where you joined them.
 
I tried a quick and dirty Excel brute force solution with just 10 points in each interval.

Wonder how off I am?

Line graph titled numerical, plotting y against t from 0 to about 6.3 with small diamond markers joined by a line: y starts at 7, stays flat briefly, falls to a minimum near 1.6 around t = 3.1, then rises to about 14.4 at t = 6.3.