Question: Helped needed to input a piecewise function

The orginial equation to solve is : x" + F(x) = sin 4t

initial conditions : x(0) = 0, x'(0) =1;

F(x) = { bx, x>= 0 and ax, x<0}

I need to do three different values for b = 1, a = 4, then b = 64, a = 4, finially  b = 36, a = 25,

Thanks for any insite I am new to the program.

Courtney

 

> with(DEtools):

> ics := x(0)=0,D(x)(0)=1; 

> P:=piecewise(x<0,4*x,0<=x,x); 

> eq := diff(x(t),t,t) + P*x(t)=sin(4*t); 

> dsolve(eq);

Error, (in dsolve) x(t) and x cannot both appear in the given ODE.

 

Please Wait...