Solving 2nd order differential

Click For Summary

Homework Help Overview

The discussion revolves around a second-order differential equation given by y'' + sin(x)y' + cos(x)y = 0. The original poster seeks to determine the 2nd, 3rd, and 4th derivatives at x=0, with initial conditions y(0) = 0 and y'(0) = 1.

Discussion Character

  • Exploratory, Assumption checking, Problem interpretation

Approaches and Questions Raised

  • Participants explore the possibility of substituting x=0 directly into the differential equation to find y''(0) and discuss differentiating the equation to find higher derivatives. There are questions about the necessity of finding the original function to compute these derivatives and the role of initial conditions in the process.

Discussion Status

Participants are actively discussing various methods to approach the problem, including direct substitution and differentiation of the differential equation. Some express uncertainty about the need for the original function, while others clarify that it is not necessary to find the derivatives at x=0.

Contextual Notes

There is a focus on understanding the implications of the initial conditions and the nature of the differential equation, with some participants questioning the assumptions made about the need for the original function in the context of the problem.

th3chemist
Messages
66
Reaction score
0

Homework Statement


I have to determine the 2nd,3rd and 4th derivative at 0. So ψ''(0)


The equation is y'' + sin(x)y' + cos(x)y = 0

A know solution is y = ψ(x).

The intial conditions are y(0) = 0 , y'(0) = 1

Homework Equations





The Attempt at a Solution



I know this is a 2nd order differential equation. However I don't know what to do. I can't use characteristic equations in this case. And if I juts take the 1st and 2nd derivative here and plug them I won't attain anything.
 
Physics news on Phys.org
If you have

y''(x) + sin(x)y'(x) + cos(x)y(x) = 0

and you want y''(0), just put in x=0 into the DE. You are given what y'(0) and y(0) are. So you should be able to get y''(0).

Similarly you can differentiate the entire DE to get what y'''(x) would be and so on.
 
rock.freak667 said:
If you have

y''(x) + sin(x)y'(x) + cos(x)y(x) = 0

and you want y''(0), just put in x=0 into the DE. You are given what y'(0) and y(0) are. So you should be able to get y''(0).

Similarly you can differentiate the entire DE to get what y'''(x) would be and so on.

Could I not sole for y''(x) = -sin(x)y'(x) - cos(x)y(x)
then sub in x=0 ?
 
th3chemist said:

Homework Statement


I have to determine the 2nd,3rd and 4th derivative at 0. So ψ''(0)

The equation is y'' + sin(x)y' + cos(x)y = 0

A know solution is y = ψ(x).

The initial conditions are y(0) = 0 , y'(0) = 1

Homework Equations



The Attempt at a Solution



I know this is a 2nd order differential equation. However I don't know what to do. I can't use characteristic equations in this case. And if I juts take the 1st and 2nd derivative here and plug them I won't attain anything.
You're not being asked to solve the D.E.
 
Last edited:
th3chemist said:
Could I not sole for y''(x) = -sin(x)y'(x) - cos(x)y(x)
then sub in x=0 ?
Yes, that is essentially what rock.freak667 suggested. He suggested setting x= 0 first and then solving but it is the same thing.

And once you have that, y'''(x)= (-sin(x)y'(x)- cos(x)y(x))'= -cos(x)y'(x)- sin(x)y''(x)+ sin(x)y(x)-cos(x)y'(x) And now you know y(0), y'(0), and y''(0) and can just substitute those.

This is, in fact, a way of solving such a differential equation as a Maclaurin series- you calculate the derivatives at x= 0 successively. It is, unfortunately not a very efficient method.
 
HallsofIvy said:
Yes, that is essentially what rock.freak667 suggested. He suggested setting x= 0 first and then solving but it is the same thing.

And once you have that, y'''(x)= (-sin(x)y'(x)- cos(x)y(x))'= -cos(x)y'(x)- sin(x)y''(x)+ sin(x)y(x)-cos(x)y'(x) And now you know y(0), y'(0), and y''(0) and can just substitute those.

This is, in fact, a way of solving such a differential equation as a Maclaurin series- you calculate the derivatives at x= 0 successively. It is, unfortunately not a very efficient method.

But then how do I get the original function back from that?
 
th3chemist said:
But then how do I get the original function back from that?

Why do you want to get the original function?
 
rock.freak667 said:
Why do you want to get the original function?

Don't I need it to find the other derivatives at 0? And what about the constants that get produced? Arn't initial values used to solve them?
 
th3chemist said:
Don't I need it to find the other derivatives at 0? And what about the constants that get produced? Arn't initial values used to solve them?

Not really, because even if you found y(x), you'd still need to find y'''(x) and y''''(x) which when you reach the second derivative, you'd get the original DE which the question gave to you.

The question is not asking you to solve the DE, it is asking you to get y'''(0) and y''''(0).

You are given y(0) and y'(0), using the original DE, you need to get y''(0). So you can just out x=0 into the DE and rearrange to get y''(0).


Then if you differentiate the left side and right sides wrt x, you will get a term of y''' which is what you want to find.


e.g.

y'' + y = 0

If you know y(0)=1 and you want to get y'''(0)

you can say

y''(0) + 1 = 0 or y''(0) = -1

d/dx (y'' + y') = d/dx(0)

y''' + y'' = 0

so y'''(0) + y''(0) = 0 and then you can solve for y'''(0).
 
  • #10
th3chemist said:
But then how do I get the original function back from that?
If you want the original function, then you could do as I suggested: keep differentiating to get the Maclaurin series.

However, the problem you originally posted said nothing about getting the "original function", just getting the "second, third, and fourth derivatives at x= 0". You can do that without finding the function itself.
 
  • #11
Alright. So I would take this equation, determine the 3rd derivative and the 4th and then sub in x=0? sounds simple enough :p.

Does the solution they give not matter?
 
  • #12
th3chemist said:
Alright. So I would take this equation, determine the 3rd derivative and the 4th and then sub in x=0? sounds simple enough :p.

Does the solution they give not matter?
What solution is given ?
 
  • #13
SammyS said:
What solution is given ?

There's a known solution is y = ψ(x).
 
  • #14
What, exactly, is the statement of the problem you are trying to solve? You originally said only "I have to determine the 2nd,3rd and 4th derivative at 0". You are given that
y(0) = 0 , y'(0) = 1, and y'' + sin(x)y' + cos(x)y = 0.

You do NOT need to know y in order to answer that.
 

Similar threads

  • · Replies 19 ·
Replies
19
Views
3K
  • · Replies 33 ·
2
Replies
33
Views
4K
Replies
2
Views
2K
Replies
8
Views
1K
Replies
7
Views
2K
Replies
8
Views
1K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K