Differential Equation Solutions - y'' = -y & y' = y

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
4 replies · 2K views
snipez90
Messages
1,095
Reaction score
5
Hey guys, I was going through my differential equations packet and an example exercise illustrated that the differential equation y'' = -y has solution y = A*sin(x) + B*cos(x) for constants A and B. I understand why this is true but I was wondering if this was the only solution or at the very least if is most popular one. This also leads me to wonder if the diff eq y' = y has y = Ce^x as its only solution for a constant C.
 
Physics news on Phys.org
Yes that is the only solution.
Yes, Ce^x is the only solution of y' = y.
 
snipez90 said:
Hey guys, I was going through my differential equations packet and an example exercise illustrated that the differential equation y'' = -y has solution y = A*sin(x) + B*cos(x) for constants A and B. I understand why this is true but I was wondering if this was the only solution or at the very least if is most popular one. This also leads me to wonder if the diff eq y' = y has y = Ce^x as its only solution for a constant C.

Every differential equation

[tex]y^{(n)}(x)=f\left(x,y(x),\dots,y^{(n-1)}(x)\right)[/tex]

has n independent solutions. Thus

[tex]y''(x)+y(x)=0 \Rightarrow y(x)=A\,\cos x+B\,\sin x \rightarrow \text{General Solution}[/tex]

[tex]y'(x)-y(x)=0 \Rightarrow y(x)=C\,e^x \rightarrow \text{General Solution}[/tex]
 
snipez90 said:
Hey guys, I was going through my differential equations packet and an example exercise illustrated that the differential equation y'' = -y has solution y = A*sin(x) + B*cos(x) for constants A and B. I understand why this is true but I was wondering if this was the only solution or at the very least if is most popular one. This also leads me to wonder if the diff eq y' = y has y = Ce^x as its only solution for a constant C.


there is another popular but completely equivalent way to write the solution: [tex]y= A sin (x + \phi)[/tex] where phi is the phase constant. (Of course, you may as well use cos instead of sine). That's a form often used in phyiscs because it shows clearly that the solution is a simple sinusoidal with phase constant and amplitude determined by the initial conditions.
 
whoa, thanks for the replies. the solution to y'' = -y seems much less obvious than y' = y. very nice result though.