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

  • Thread starter Thread starter ognik
  • Start date Start date
  • Tags Tags
    Ode
Click For Summary
SUMMARY

The discussion focuses on solving the characteristic equation for the second-order linear homogeneous ordinary differential equation (ODE) given by y'' + 2y' + 3y = 0 with initial conditions y(0) = 0 and y'(0) = 1. The characteristic equation is derived as p^2 + 2p + 3 = 0, yielding complex roots p = -1 ± i√2. The particular solution is confirmed to be y(x) = (1/√2)e^(-x)sin(√2x), and the general solution is expressed as a linear combination of two independent solutions: y(x) = C1e^(-x)sin(√2x) + C2e^(-x)cos(√2x).

PREREQUISITES
  • Understanding of second-order linear homogeneous ordinary differential equations (ODEs)
  • Knowledge of characteristic equations and complex roots
  • Familiarity with initial value problems (IVPs)
  • Basic calculus, including differentiation and integration of exponential and trigonometric functions
NEXT STEPS
  • Study the method of undetermined coefficients for non-homogeneous ODEs
  • Learn about the principle of superposition in linear differential equations
  • Explore the Laplace transform technique for solving ODEs
  • Investigate the stability of solutions to linear differential equations
USEFUL FOR

Mathematicians, engineering students, and anyone involved in solving ordinary differential equations, particularly those dealing with initial value problems and linear systems.

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 9 ·
Replies
9
Views
5K
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 7 ·
Replies
7
Views
4K