I have a bunch of differential equations (nonlinear and linear) and some equality equations, all are in one cell. I want to use Mathematica to substitute the assigned values or variables into differential equations, and finally get a simplified version for them. As a simple example of my case is:
equations = {a == b1 + c*x''[t], b2 == d*x''[t] + e*(x[t]-y[t]) + f*(x'[t]-y'[t]),
g*y''[t] + e*(y[t] - x[t]) + f*(y'[t] - x'[t]) + m == 0,
n*z''[t] == m - R, R == 0, b1 == b2, y[t] == 2*x[t],
y'[t] == 2*x'[t], y''[t] == 2*x''[t]}
where I want to substitute the equivalent of y[t] and its derivatives and apply b1=b2 in the main first two equations and finally get a simplified result for x''[t] and z''[t].
I tried to use reduce as follows:
Reduce[{a == b1 + c*x''[t], b2 == d*x''[t] + e*(x[t]) + f*(x'[t]) ,
g*y''[t] + e*(y[t] - x[t]) + f*(y'[t] - x'[t]) + m == 0,
n*z''[t] == m - R, R == 0, b1 == b2, y[t] == 2*z[t],
y'[t] == 2*z'[t], y''[t] == 2*z''[t]}, {x''[t], z''[t]}, {b1, b2,
y[t], y'[t], y''[t],m}]
but, it does not work! it just give an answer for x''[t] which is: (a-e(x[t]-2*z[t])-f*(x'[t]-2*z'[t]))/(d+c).
similarly it should give a result for z''[t] as (-R+e*(x[t]-2*z[t])+f*x'[t]-2*z'[t]))/(2*g+n)
