Simple ODE, I don't know what I'm doing wrong

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

The discussion focuses on solving the second-order ordinary differential equation (ODE) x''(t) + w²x(t) = -gsin(a) with initial conditions x(0)' = 0 and x(0) = -gsin(a)/w². The correct approach involves first determining the general solution of the homogeneous equation, which is xc = A cos(wt) + B sin(wt), and then finding a particular solution xp = C for the non-homogeneous equation. The constants A and B should only be evaluated after establishing the complete general solution, ensuring the initial conditions are applied correctly.

PREREQUISITES
  • Understanding of second-order ordinary differential equations (ODEs)
  • Familiarity with homogeneous and non-homogeneous equations
  • Knowledge of initial value problems in differential equations
  • Basic trigonometric functions and their properties
NEXT STEPS
  • Study the method of undetermined coefficients for finding particular solutions
  • Learn about the superposition principle in linear differential equations
  • Explore the concept of initial conditions in solving ODEs
  • Review examples of non-homogeneous second-order differential equations
USEFUL FOR

Students studying differential equations, educators teaching ODEs, and anyone seeking to understand the solution techniques for second-order linear differential equations.

HmBe
Messages
45
Reaction score
0

Homework Statement



solve x''(t)+w2x(t)=-gsin(a) with x(0)'=0 x(0)=-gsin(a)/w2


Homework Equations





The Attempt at a Solution



let x=Acoswt+Bsinwt+C
x'=0 so B=0

x=Acoswt+C
c=-gsina/w2

t=0, x=A-gsina/w2
but x(0)=-gsin(a)/w2

so A=0, and you get x is a constant, which makes no sense for the situation.
 
Last edited:
Physics news on Phys.org
It may make no sense, but it does work. I checked it, and your solution matches the conditions for the differential equation.
 
HmBe said:

Homework Statement



solve x''(t)+w2x(t)=-gsin(a) with x(0)'=0 x(0)=-gsin(a)/w2


Homework Equations





The Attempt at a Solution



let x=Acoswt+Bsinwt+C
x'=0 so B=0

x=Acoswt+C
c=-gsina/w2

t=0, x=A-gsina/w2
but x(0)=-gsin(a)/w2

so A=0, and you get x is a constant, which makes no sense for the situation.

You need to get the general solution of the non-homogeneous equation before you plug in the initial conditions to evaluate the constants. You have the general solution of the homogeneous equation:

xc = A cos(wt) + B sin(wt)

The next step is to find a particular solution xp of the non-homogeneous equation. So figure out what C will give

xp = C

as a solution of the NH equation. This has nothing to do with the initial conditions. Once you have C figured out your general solution is

xc = A cos(wt) + B sin(wt) + C

Only then should you plug in the initial conditions for x(0) and x'(0) to figure out A and B.
 

Similar threads

Replies
4
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K
Replies
4
Views
2K
Replies
5
Views
2K
Replies
9
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
6
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
1
Views
2K