Question on initial value problem

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 1K views
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: