Find Solutions for Char. Eqtn. y'' + 2y' + 3y = 0 with y(0) = 0, y'(0) = 1

  • Context: MHB 
  • Thread starter Thread starter ognik
  • Start date Start date
  • Tags Tags
    Ode
Click For Summary

Discussion Overview

The discussion revolves around solving the second-order linear homogeneous ordinary differential equation (ODE) given by y'' + 2y' + 3y = 0, along with initial conditions y(0) = 0 and y'(0) = 1. Participants explore the characteristic equation, derive solutions, and discuss the implications of their findings in the context of initial value problems (IVPs) and general solutions.

Discussion Character

  • Technical explanation, Debate/contested, Homework-related

Main Points Raised

  • One participant initially derives the characteristic equation p^2 + 2p + 3 = 0 and finds the roots to be p = -1 ± i√2, leading to a proposed solution of the form y = e^{-x}(C_1 cos(√2 x) + C_2 sin(√2 x)).
  • Another participant checks the derived solution against the original ODE and finds discrepancies, prompting a discussion about potential errors in the calculations.
  • One participant acknowledges a mistake in the sign of the characteristic roots and corrects their solution accordingly, leading to a revised form of the solution.
  • There is a discussion about the nature of the solutions to the IVP, with some participants noting that a second-order linear homogeneous ODE typically has two linearly independent solutions.
  • Participants clarify that the general solution of the ODE can be expressed as a linear combination of the two independent solutions, which include both sine and cosine terms.
  • One participant expresses confusion about whether finding a particular solution for the IVP suffices or if they should also consider the general solution.
  • Another participant confirms that the general solution encompasses the particular solution found, emphasizing the distinction between the two types of solutions.

Areas of Agreement / Disagreement

Participants generally agree that the ODE has two linearly independent solutions and that the general solution can be formed from these. However, there is some uncertainty regarding the distinction between particular and general solutions, as well as the implications of the initial conditions on the solutions.

Contextual Notes

Participants note the importance of checking solutions against the original ODE and clarify the conditions under which certain solutions are valid. There is an acknowledgment of potential typos and errors in earlier posts that may have affected the discussion.

Who May Find This Useful

This discussion may be useful for students and practitioners of differential equations, particularly those interested in understanding the nuances of solving second-order linear homogeneous ODEs and the implications of initial conditions on solution forms.

ognik
Messages
626
Reaction score
2
y'' + 2y' + 3y = 0, y(0) = 0, y'(0) = 1

Char. Eqtn. is $p^2 + 2p + 3 = 0, \therefore p = 1 \pm i \sqrt{2}$
Solutions of the form $p=r \pm iq$ are $y = e^{rx} \left( C_1 Cos qx + c_2 Sin qx \right) $

$\therefore y = e^{x} \left( C_1 Cos qx + c_2 Sin qx \right) , q= \sqrt2$

Now $y' = e^{x}\left( - C_1q Sin qx + C_2q Cos qx + C_1 Cos qx + C_2 Sin qx \right)$

$ y(0) = 0 = C_1, y'(0) = 1 = C_2q + C_1, \therefore C_2 = \frac{1}{\sqrt 2}$

Is that right please?
 
Physics news on Phys.org
You cite as the solution to the given second order IVP:

$$y(x)=\frac{1}{\sqrt{2}}e^x\sin\left(\sqrt{2}x\right)$$

I would check first to see if it satisfies the ODE, and so we must compute the first and second derivatives:

$$y'(x)=\frac{1}{\sqrt{2}}\left(\sqrt{2}e^x\cos\left(\sqrt{2}x\right)+e^x\sin\left(\sqrt{2}x\right)\right)=\frac{e^x}{\sqrt{2}}\left(\sqrt{2}\cos\left(\sqrt{2}x\right)+\sin\left(\sqrt{2}x\right)\right)$$

$$y''(x)=\frac{e^x}{\sqrt{2}}\left(\sqrt{2}\cos\left(\sqrt{2}x\right)-2\sin\left(\sqrt{2}x\right)\right)+\frac{e^x}{\sqrt{2}}\left(\sqrt{2}\cos\left(\sqrt{2}x\right)+\sin\left(\sqrt{2}x\right)\right)=\frac{e^x}{\sqrt{2}}\left(2\sqrt{2}\cos\left(\sqrt{2}x\right)-\sin\left(\sqrt{2}x\right)\right)$$

Now, substitution into the ODE gives:

$$\frac{e^x}{\sqrt{2}}\left(2\sqrt{2}\cos\left(\sqrt{2}x\right)-\sin\left(\sqrt{2}x\right)\right)+2\cdot\frac{e^x}{\sqrt{2}}\left(\sqrt{2}\cos\left(\sqrt{2}x\right)+\sin\left(\sqrt{2}x\right)\right)+3\frac{1}{\sqrt{2}}e^x\sin\left(\sqrt{2}x\right)=0$$

Let's multiply through by $$\sqrt{2}e^{-x}\ne0$$:

$$\left(2\sqrt{2}\cos\left(\sqrt{2}x\right)-\sin\left(\sqrt{2}x\right)\right)+2\left(\sqrt{2}\cos\left(\sqrt{2}x\right)+\sin\left(\sqrt{2}x\right)\right)+3\sin\left(\sqrt{2}x\right)=0$$

Oops...it appears we have a problem here, because we do not get an identity. Can you find where you made a minor slip?
 
Thanks, my obvious (& silly) 1st mistake was I dropped a - sign, so it should be $ p = -1 \pm i \sqrt 2 $

I followed this through to get $ y = \frac{1}{q}e^{-x} Sin qx $

I then substituted it back into the original eqtn which worked out :-). Thanks for reminding me I could substitute back to check my answer
------------

The next exercise says "Find the general solution of the ODE in the previous question" (i.e. the one we've just looked at). I thought I had found the general solution, what am I missing please?
 
Last edited:
ognik said:
Thanks, my obvious (& silly) 1st mistake was I dropped a - sign, so it should be $ p = -1 \pm i \sqrt 2 $

I followed this through to get $ y = \frac{1}{q}e^{-x} Sin qx $

I then substituted it back into the original eqtn which worked out :-). Thanks for reminding me I could substitute back to check my answer
------------

The next exercise says "Find the general solution of the ODE in the previous question" (i.e. the one we've just looked at). I thought I had found the general solution, what am I missing please?

You found the particular solution that satisfies both the given ODE and the initial conditions...you found the solution to the IVP. Now they are asking for the general solution to the ODE, which you already have...the two-parameter family of functions...(containing $c_1$ and $c_2$). :)
 
Thats what I thought, but it seemed a trivial exercise to just write down something I had already found...

Incidentally, I found just 1 sltn for the IVP - I take it there is no 2nd solution to that IVP? For example I remember reading somewhere that if f(x) is a real sltn to an ODE, so is f(-x)? - but I can't remember any qualifiers ...
 
A second order linear/homogeneous ODE will have 2 linearly independent solutions. In this case, they are:

$$y_1(x)=c_1e^{-x}\sin\left(\sqrt{2}x\right)$$

$$y_2(x)=c_2e^{-x}\cos\left(\sqrt{2}x\right)$$

And then by the principle of superposition, they are combined to give the general solution. The reasoning is that since both:

$$y_1''+2y_1'+3y_1=0$$

$$y_2''+2y_2'+3y_2=0$$

are true, we can then add and rearrange to obtain:

$$\left(y_1''+y_2''\right)+2\left(y_1'+y_2'\right)+3\left(y_1+y_2\right)=0$$

And given the linearity of differentiation, that is $$\left(f_1+f_2\right)^{(n)}=f_1^{(n)}+f_2^{(n)}$$, we may then state that:

$$y(x)=y_1(x)+y_2(x)$$

must also be a solution, and since there are no other linearly independent solutions, so it is the general solution. :)
 
Thanks, so if I find just 1 sltn for the IVP, I leave it at that?

Did you mean $C_2$ for $Y_2$?
 
ognik said:
Thanks, so if I find just 1 sltn for the IVP, I leave it at that?

Did you mean $C_2$ for $Y_2$?

Well, you will either be asked to find the general solution, or a particular solution given initial values.

And yes, I had a couple of typos before that I have corrected. :D
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 33 ·
2
Replies
33
Views
6K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 9 ·
Replies
9
Views
6K
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
11K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K