Solving a 2nd order differential equation

In summary, the conversation involves a person seeking help with a physics problem involving a system of two coupled differential equations. They attempt to solve the problem by substituting one equation into the other and using Euler's equation, but make a mistake in their solution due to neglecting constants. They then backtrack and solve for both variables, using a substitution to reduce the order of the equation and setting initial conditions to find the final solution.
  • #1
Sparky_
227
5

Homework Statement



This is a portion of a slightly larger problem involving:
[tex]

K*\frac{d^2x}{dt^2} = -K2*\frac{dz}{dt}
[/tex]

[tex]
K*\frac{dz^2}{dt^2} = K2*\frac{dx}{dt}
[/tex]

I would like to check my work and I don't believe I am moving toward the solution, knowing it has sin and cos in the final solution:

Homework Equations





The Attempt at a Solution



I'm just wanting some help on the math portion of the following -

Picking up midstream in a problem - I have started with a substitution
[tex]
u= \frac {dx}{dt}
[/tex]


[tex]
K1 \frac {du^{2}}{dt^2} + {-K2}u = 0
[/tex]

[tex]

u = e^{mt}
u’ = me^{mt}
u’’ = m^2e^{mt}
[/tex]

[tex]

K2*m^{2}e^{mt} + -K1* e^{mt} = 0
[/tex]

Factor out [tex] e^{mt} [/tex]


[tex]
m^2 = \frac {K1}{K2}
[/tex]

[tex]
m =sqrt{ \frac {K1}{K2}}

[/tex]

I am 1 integration away from getting X.

I know the solution is of the form X = Acos(at) + Bsin(at) - I was expecting complex roots.

If the above is correct then my problem is further upstream
 
Physics news on Phys.org
  • #2
HOLD UP -

found a sign error - don't see how to delete this thread
 
  • #3
Sparky_ said:
Picking up midstream in a problem - I have started with a substitution
[tex]
u= \frac {dx}{dt}
[/tex]


[tex]
K1 \frac {du^{2}}{dt^2} + {-K2}u = 0
[/tex]
I'm afraid that isn't correct. Notice that the two ODEs form a couple system (i.e. both equations involve derivatives of both x and z).

However, you have the right idea with regards to substitution. You could try substituting one of the equations into the other.
 
  • #4
Thanks!


I'm going in that direction now. - it's looking better.
 
  • #5
ok - I have been playing with the equation:
[tex]
K1 \frac {du^{2}}{dt^2} + {K2}u = 0
[/tex]


Starting here -

[tex]

u = e^{mt}
u’ = me^{mt}
u’’ = m^2e^{mt}
[/tex]
[tex]
K1*u’’+ K2*u = 0
[/tex]


[tex]

K2*m^{2}e^{mt} + K1* e^{mt} = 0
[/tex]

Factor out [tex] e^{mt} [/tex]


[tex]
m^2 = -\frac {K1}{K2}
[/tex]

[tex]
m =\sqrt{ -\frac {K1}{K2}}

[/tex]

[tex]
m1 = +i \sqrt{ \frac {K1}{K2}}
m2 = -i \sqrt{ \frac {K1}{K2}}

[/tex]

[tex]
u = e^{{i}{const}}+ e^{-{i}{const}}

[/tex]
[tex]
u = cos(const* t) + isin(const* t) + cos(const* t) – isin(const* t)

[/tex]

The sin terms cancel and I have 2 cos terms.


I know the solution is of the form X = Acos(const* t) + Bsin(const* t) .

Can I get some guidance?

Thanks
Sparky_
 
  • #6
How have you got from here:
Sparky_ said:
This is a portion of a slightly larger problem involving:
[tex]

K*\frac{d^2x}{dt^2} = -K2*\frac{dz}{dt}
[/tex]

[tex]
K*\frac{dz^2}{dt^2} = K2*\frac{dx}{dt}
[/tex]
to here:
Sparky_ said:
[tex]
K1 \frac {du^{2}}{dt^2} + {K2}u = 0
[/tex]
The two are not consistent.
 
  • #7
Hey Hootenanny,

Thanks for the help and advice,

In the top equation - I took the derivative of both sides.

I then had a second order derivative of z with respect to t.

(again in the 2nd equation) I then solved for the same derivative d^2z / dt^2 and substituted into the top equation.

I'm not playing careful with the constants - just grouping them as K's - ignore the mistakes with the constants.

Then I said u = dx/dt, du/dt = d^2x / dt^2 and so on - that gets me a 2nd order.

I am thinking once I have x, I can then get z.

(sorry for no TeX - in this post.)

Am I off somewhere?

Then next question - even if my setup is wrong - I think my solution to (k1)d^2u/dt^2 + K2u = 0 has a mistake somewhere.

Thanks
Sparky_
 
  • #8
Sparky_ said:
I'm not playing careful with the constants - just grouping them as K's - ignore the mistakes with the constants.
That is a very bad idea. Even if you collect constants together, you should define them and rename them as something other than your original constants. If you don't, then you end up thinking that things cancel when they don't really because they are multiplied by different constants.

Assuming you can keep track of your constants, you mistake is on the penultimate line. Your solution is missing two multiplicative constants:

[tex] u(t) = c_1 \exp(i\lambda t) + c_2\exp(-i\lambda t)[/tex]
 
Last edited:
  • #9
Thanks!

Well - I have learned a lesson.

As you can tell I was more worried about the steps and the involved math steps.

I assmumed I could just sprinkle the constants back in at the end - I would say it's a rookie mistake - but I am many years past a rookie - more a coming out of retirement mistake.

(this is related to something I'm just playing with - just started doodling and wondering if I still could ... and now I wnat to complete it.)

Thanks again
-Sparky_
 
  • #10
Ok – playing with this problem a little more

Backing up – here is the “real problem” – it’s a physics problem I know the solution and the solution is shown in about one line – I’m for fun wanting to work it out

I’m uncertain on how to resolve the constants – I do have the liberty to set the initial conditions

The problem:
[tex]
m\frac {d^2x}{dt^2} = -qB \frac{dz}{dt}
[/tex]
[tex]
m\frac {d^2z}{dt^2} = qB \frac{dx}{dt}
[/tex]

Take time derivative of both sides (of eq. 1):
[tex]
\frac {d}{dt} m\frac {d^2x}{dt^2} =\frac {d}{dt} -qB \frac{dz}{dt}
[/tex]


[tex]
m\frac {d^3x}{dt^3} = -qB \frac{d^2z}{dt^2}
[/tex]

From equation 2:
[tex]
\frac {d^2z}{dt^2} = \frac {qB}{m} \frac{dx}{dt}

[/tex]

Some algebra and apply Euler’s equation:
[tex]

m\frac {d^3x}{dt^3} = \frac {(-qB)(qB)}{m} \frac{dx}{dt}
[/tex]
[tex]
\frac {d^3x}{dt^3} = (\frac {(qB)}{m})^2 \frac{dx}{dt}
[/tex]
[tex]
u= \frac {dx}{dt}
[/tex]
[tex]
pick: u = e^{at}
[/tex]
[tex]
u’ = ae^{at}
[/tex]
[tex]
u’’ = a^2e^{at}
[/tex]
[tex]
a^2e^{at} + (\frac {(qB)}{m})^2 e^{at} = 0
[/tex]
[tex]
a^2 + (\frac {(qB)}{m})^2 = 0
[/tex]
[tex]
a = + - (\frac {(qB)}{m})
[/tex]
[tex]
u = e^{i\frac{qB}{m}t} + e^{-i\frac{qB}{m}t}
[/tex]
[tex]
u = C1cos(\frac{qB}{m}) + iC2sin(\frac{qB}{m}) + C3cos(\frac{qB}{m}) – iC4sin(\frac{qB}{m})
[/tex]
Use a substitution to reduce the order of the equation:
[tex]

u= \frac {dx}{dt}
[/tex]
[tex]
dx = u dt
[/tex]
[tex]
x = \frac{mC1}{qB}sin(\frac{qBt}{m}) - \frac{imC2}{qB}cos(\frac{qBt}{m}) + \frac{mC3}{qB}sin(\frac{qBt}{m}) + \frac{imC4}{qB}cos(\frac{qBt}{m})
[/tex]
[tex]
x = (\frac{mC1}{qB} + \frac{mC3}{qB}))sin(\frac{qB}{m}t) – (\frac{imC2}{qB} + \frac{imC4}{qB})cos(\frac{qB}{m}t)

[/tex]

Now – I’m not sure on the steps below:
Is it correct to do the following:

[tex]
\int{ \frac{d^2x}{dt^2}} = \int{ \frac{-qB}{m}\frac{dz}{dt}}
[/tex]
[tex]
\frac{dx}{dt} = \frac{-qBz}{m}
[/tex]

[tex]

z = -\frac{m}{qB}\frac{dx}{dt}
[/tex]

[tex]
z = K1 \frac{qB}{m}cos() + K2\frac{qB}{m}sin()

[/tex]


I have the freedom (I think to say x = z = 0 at t=0.

There is some complication with the cos term at t=0 and gave x=z=0 – correct?

Am I on the right path?

Thanks
-Sparky_
 
Last edited:

Related to Solving a 2nd order differential equation

1. What is a 2nd order differential equation?

A 2nd order differential equation is a mathematical equation that involves the second derivative of an unknown function. It is commonly used to model physical systems in science and engineering.

2. How do you solve a 2nd order differential equation?

To solve a 2nd order differential equation, you must first identify the type of equation (linear, nonlinear, homogeneous, etc.) and then use various techniques such as separation of variables, substitution, or power series to find a solution.

3. What are the applications of solving 2nd order differential equations in science?

2nd order differential equations are commonly used in physics, engineering, and other fields of science to model and predict the behavior of physical systems. They are also used in population dynamics, economics, and other areas of research.

4. Can 2nd order differential equations have multiple solutions?

Yes, 2nd order differential equations can have multiple solutions. This is because the general solution of a 2nd order differential equation contains two arbitrary constants, which can lead to different solutions depending on the initial conditions.

5. Are there any software programs available for solving 2nd order differential equations?

Yes, there are several software programs available for solving 2nd order differential equations, such as MATLAB, Mathematica, and Maple. These programs use numerical methods to find approximate solutions to differential equations.

Similar threads

  • Calculus and Beyond Homework Help
Replies
2
Views
358
  • Calculus and Beyond Homework Help
Replies
2
Views
655
  • Calculus and Beyond Homework Help
Replies
8
Views
384
  • Calculus and Beyond Homework Help
Replies
12
Views
1K
  • Calculus and Beyond Homework Help
Replies
1
Views
426
  • Calculus and Beyond Homework Help
Replies
12
Views
1K
  • Calculus and Beyond Homework Help
Replies
7
Views
468
  • Calculus and Beyond Homework Help
Replies
6
Views
387
  • Calculus and Beyond Homework Help
Replies
2
Views
360
  • Calculus and Beyond Homework Help
Replies
21
Views
974
Back
Top