Question on initial value problem

cue928
Messages
129
Reaction score
0
I am working on the following initial value problem:

y'' + 4y = 4, y(0) = 1, y'(0) = 1

The method they show is:
(1): y = A cos x + B sin x
A = 1, (2): y = 1 + A cos x + B sin x
y(0) = 1 + A = 0
y'(0) = B = 1
Final answer is y(x) = 1 + sin(x)

The problem I don't see is the first equation (1). I had y = A cos(2x) + B sin(2x) by solving the LHS. The, I am confused on how they proceed with writing the equation (2). I've done IVP's before without problems, so I am confused what I am missing here.
 
Physics news on Phys.org
I'm happy to help out if you correct a few errors first.

In (1): you have written 'A = 1.' But in fact your final answer has A = 0. Are you using 'A' to mean different things?

In (2): we know that y(0) = 1, so it can't be the case that 1 + A = 0.

Finally, your answer y(x) = 1 + sin (x) does not satisfy the equation y'' + 4y = 4.
 
Last edited:
hi cue928! :wink:
cue928 said:
y'' + 4y = 4, y(0) = 1, y'(0) = 1
(2): y = 1 + A cos x + B sin x

yes you're right :smile:

clearly, (2) should be y = 1 + A cos 2x + B sin 2x :redface:
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top