Skip to main content
1-Visitor
November 23, 2011
Solved

Solving ODE

  • November 23, 2011
  • 1 reply
  • 2492 views

I am trying to solve the following ODE;

mx''(t) + cx'(t) + kx(t) = f(t) I already defined my function beforehand.

for x(t)=0 and x'(t)=0

Then I am trying to form the solve block by Given,

But, after I write Given, x''(t) seems still red, undefined.

Given

mx''(t) + cx'(t) + kx(t) = f(t) %%Should x''(t) be red here?

x(t)=0

x'(t)=0

x:= Odesolve(t,5)

what is wrong?

Thanks in advance..

Best answer by Fred_Kohlhepp

mahmut akça wrote:

I am trying to solve the following ODE;

mx''(t) + cx'(t) + kx(t) = f(t) I already defined my function beforehand.

for x(t)=0 and x'(t)=0

Then I am trying to form the solve block by Given,

But, after I write Given, x''(t) seems still red, undefined.

Given

mx''(t) + cx'(t) + kx(t) = f(t) %%Should x''(t) be red here?

x(t)=0

x'(t)=0

x:= Odesolve(t,5)

what is wrong?

Thanks in advance..

Your initial conditions should be x(0) = 0, not x(t) = 0.

1 reply

23-Emerald I
November 23, 2011

mahmut akça wrote:

I am trying to solve the following ODE;

mx''(t) + cx'(t) + kx(t) = f(t) I already defined my function beforehand.

for x(t)=0 and x'(t)=0

Then I am trying to form the solve block by Given,

But, after I write Given, x''(t) seems still red, undefined.

Given

mx''(t) + cx'(t) + kx(t) = f(t) %%Should x''(t) be red here?

x(t)=0

x'(t)=0

x:= Odesolve(t,5)

what is wrong?

Thanks in advance..

Your initial conditions should be x(0) = 0, not x(t) = 0.

1-Visitor
November 23, 2011

Thanks sir, but I wrote it here in the wrong way. Actual problem is not that.