Variation of Parameters to solve a second order ODE

  • #1
Bonnie
18
1

Homework Statement


The question I am working on is the one in the file attached.

Homework Equations


y = u1y1 + u2y2 :

u1'y1 + u2'y2 = 0
u1'y1' + u2'y2' = g(t)

The Attempt at a Solution


I think I have got part (i) completed, with y1 = e3it and y2 = e-3it. This gives a general solution to the homogeneous equation to be y = C1cos3t + C2sin3t.
For part (ii) I know that for variation of parameters you need to substitute y1 and y2 and their derivatives into the above system of equations to solve for u1' and u2', then integrate these to find u1 and u2, from which you can get the desired solution of
y = yp + yh
But I find that when I try to do that by substituting y1 = e3it and y2 = e-3it I just end up with very complicated expressions involving lots of e's and i's which the desired solution does not contain. I know it involves combining the information about the general soln from (i) with the method I have described, but I just don't know how to make it work. Any help would be appreciated, thank you in advance!
 

Attachments

  • Capture.PNG
    Capture.PNG
    10.5 KB · Views: 325

Answers and Replies

  • #2
BvU
Science Advisor
Homework Helper
15,383
4,373
I just end up with very complicated expressions involving lots of e's and i's which the desired solution does not contain
So the thing to do is avoid these exponential ##y## and take the trigonometric ##y## that you see in front of you when you write ##y = C_1\cos 3t + C_2\sin3t\ ## !

http://tutorial.math.lamar.edu/Classes/DE/VariationofParameters.aspx
 
  • #3
Ray Vickson
Science Advisor
Homework Helper
Dearly Missed
10,706
1,722

Homework Statement


The question I am working on is the one in the file attached.

Homework Equations


y = u1y1 + u2y2 :

u1'y1 + u2'y2 = 0
u1'y1' + u2'y2' = g(t)

The Attempt at a Solution


I think I have got part (i) completed, with y1 = e3it and y2 = e-3it. This gives a general solution to the homogeneous equation to be y = C1cos3t + C2sin3t.
For part (ii) I know that for variation of parameters you need to substitute y1 and y2 and their derivatives into the above system of equations to solve for u1' and u2', then integrate these to find u1 and u2, from which you can get the desired solution of
y = yp + yh
But I find that when I try to do that by substituting y1 = e3it and y2 = e-3it I just end up with very complicated expressions involving lots of e's and i's which the desired solution does not contain. I know it involves combining the information about the general soln from (i) with the method I have described, but I just don't know how to make it work. Any help would be appreciated, thank you in advance!
Have you forgotten that ##e^{\pm i \theta} = \cos \theta \pm i \sin \theta \,?##
 
  • #4
Bonnie
18
1
Have you forgotten that ##e^{\pm i \theta} = \cos \theta \pm i \sin \theta \,?##
Yes I had, thank you. I'll have another try!
 

Suggested for: Variation of Parameters to solve a second order ODE

Replies
8
Views
232
Replies
5
Views
509
Replies
17
Views
524
Replies
4
Views
643
Replies
33
Views
2K
Replies
12
Views
731
Replies
7
Views
307
  • Last Post
Replies
3
Views
746
  • Last Post
Replies
2
Views
554
Top