Question: Rearranging two ODE's

Hi I am simply trying to rearange equation X, the steoes I want to do are differentiate X w.r.t t then insert equation Y into the new differentiated form but I am stuck, I am not really sure what to try I have used algsubs but it comes up with an error.

 

here is my code: 

 

X := diff(x(t), t)+(k1+k2+k3)*x(t)-(k4-k1)*y(t)-k1 = 0;
print(`output redirected...`); # input placeholder
/ d \
|--- x(t)| + (k1 + k2 + k3) x(t) - (k4 - k1) y(t) - k1 = 0
\ dt /
Y := diff(y(t), t)+(k4+k5+k6)*y(t)-(k3-k6)*x(t)-k6 = 0;
print(`output redirected...`); # input placeholder
/ d \
|--- y(t)| + (k4 + k5 + k6) y(t) - (k3 - k6) x(t) - k6 = 0
\ dt /
A := diff(X, t);
print(`output redirected...`); # input placeholder
/ d / d \\ / d \
|--- |--- x(t)|| + (k1 + k2 + k3) |--- x(t)|
\ dt \ dt // \ dt /

/ d \
- (k4 - k1) |--- y(t)| = 0
\ dt /
algsubs(Y, A);
%;
Error, (in algsubs) cannot compute degree of pattern in y(t)

 

Please Wait...