Diffe Q, a forced harmonic oscillator

Click For Summary
SUMMARY

This discussion focuses on solving a forced harmonic oscillator using the method of undetermined coefficients. The initial conditions must be applied to the complete solution, which includes both the homogeneous and non-homogeneous parts. An example is provided with the equation y'' + 4y = x, where the homogeneous solution is y(x) = kcos(2x) + csin(2x) and the particular solution is y(x) = x/4. The final solution, incorporating initial conditions, is y(x) = -(1/8)sin(2x) + x/4.

PREREQUISITES
  • Understanding of differential equations, specifically second-order linear equations.
  • Familiarity with the method of undetermined coefficients.
  • Knowledge of initial value problems in the context of differential equations.
  • Basic skills in complex numbers and trigonometric functions.
NEXT STEPS
  • Study the method of undetermined coefficients in greater detail.
  • Learn about solving second-order linear differential equations with constant coefficients.
  • Explore the characteristics of homogeneous and non-homogeneous solutions.
  • Investigate initial value problems and their applications in physics and engineering.
USEFUL FOR

Students and professionals in mathematics, physics, and engineering who are dealing with differential equations, particularly those focused on forced harmonic oscillators and initial value problems.

2cansam
Messages
2
Reaction score
0
okay this is kind of a quick one when youre solving a forced harmonic oscillator for an initial condition by the method of undetermined coefficients, you do the part for the homogenoues equation first and come up with somethign like ke^at + ce^bt. Now when you goto solve for those constants k and c using your initial conditions do you use the general soltion form the nonhomogenous part as well? so it would either be ke^at + ce^bt = d -or- ke^at + ce^bt+re^dt = f

Thanks in advance and sorry about my rapant use of variables and poor math notation
 
Physics news on Phys.org
Yes, of course. The initial conditions apply to the function that satisfies the entire equation. You must use that function, both "homogeneous" and "non-homogeneous" parts to satisfy the initial conditions.

For example, to solve y"+ 4y= x, y(0)= 0, y'(0)= 0.
The associated homogeneous equation is y"+ 4y= 0 which has characteristic equation r2+ 4= 0 and so characteristic values 2i and -2i. The general solution to that homogeneous equation is
y(x)= kcos(2x)+ c sin(2x). Now, using the method of "undetermined coefficients, we seek a particular solution to the entire equation of the form y(x)= Ax+ B. Then y'= A and y"= 0 so the equation becomes
0+ 4(Ax+ B)= 4Ax+ 4B= x. Clearly, A= 1/4 and B= 0. The general solution to the entire equation is y(x)= kcos(2x)+ csin(2x)+ x/4. Of course, then, y'(x)= -2ksin(2x)+ 2ccos(2x)+ 1/4.

Now, we have y(0)= k= 0 and y'(0)= 2c+ 1/4= 0 so c= -1/8. The solution to the problem is y(x)= -(1/8)sin(2x)+ x/4.

Since y(x)= 0 (y identically equal to 0) satisfies any homogeneous differential equation, if we just used the homogeneous equation to satisfy these initial conditions we would have just got y(x)= 0 and so, adding the particular solution, y(x)= x/4 which does NOT satisfy
y'(0)= 0.
 
thanks man , haha yeah i guess it is pretty obvious looking back at it now. Thanks a bunch man
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K