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

  • Thread starter HmBe
  • Start date
  • Tags
    Ode
In summary, for the given differential equation, the general solution is xc = A cos(wt) + B sin(wt) + C, where C = -gsin(a)/w2. Then, plugging in the initial conditions, A and B can be evaluated to get a complete solution.
  • #1
HmBe
45
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
  • #2
It may make no sense, but it does work. I checked it, and your solution matches the conditions for the differential equation.
 
  • #3
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.
 

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

What is an Ordinary Differential Equation (ODE)?

An Ordinary Differential Equation (ODE) is a mathematical equation that describes the relationship between a function and its derivatives. It is used to model a variety of phenomena in science and engineering, such as population growth, chemical reactions, and motion.

What are the basic steps for solving a Simple ODE?

The basic steps for solving a Simple ODE are as follows:
1. Identify the independent variable and dependent variable
2. Write down the differential equation in its standard form
3. Determine the order of the ODE
4. Find the general solution by integrating the equation
5. Apply initial or boundary conditions to find the particular solution

What are the common mistakes made when solving Simple ODEs?

Some common mistakes made when solving Simple ODEs include:
- Forgetting to check if the ODE is separable or linear before applying a specific method
- Misinterpreting the initial or boundary conditions
- Making calculation errors while integrating the equation
- Not checking the validity of the solution by plugging it back into the original equation

How can I check if my solution to a Simple ODE is correct?

To check if your solution to a Simple ODE is correct, you can:
- Substitute the solution into the original equation and see if it satisfies the equation
- Graph the solution and see if it matches the behavior of the ODE
- Compare your solution with known solutions or use software to verify your answer

How can I improve my skills in solving Simple ODEs?

To improve your skills in solving Simple ODEs, you can:
- Practice solving different types of ODEs
- Understand the concepts and techniques used in solving ODEs
- Analyze and learn from your mistakes
- Seek help from textbooks, online resources, or a tutor

Back
Top