Hi everyone,
I am trying to plot the speed curves of 2 vehicles in Mathematica: the first one (leading vehicle) is a normal vehicle simulating a brutal braking and the second (following vehicle) is an autonomous vehicle that has to react to the first one’s speed variations.
The leading vehicle’s speed curve is easy to get but I ran into a problem regarding the following one. I have the following differential equation in the Laplace domain, with y[s] being the following vehicle’s speed:
![]()
I would like to find the equivalent equation in the time domain using Mathematica, but the InverseLaplaceTransform function doesn’t seem to be able to do it (I can’t simply say that s^4*y[s]=y’‘’'[t] because I have boundary conditions in t=0 that are not equal to 0).
If I simplify the equation above in order to express y[s] depending on s, and use the InverseLaplaceTransform function on y[s], it will automatically consider all the boundary conditions equal to zero so I get this result (with the blue curve being the speed (m/s) of the first vehicle depending on time and the yellow curve describing the speed of the following vehicle):
Which is wrong in my case since the following vehicle is already moving (The yellow curve should start at around 15 m/s).
So my questions are: is there a way to specify the boundary conditions to the software when using the InverseLaplaceTransform function? If not, is there a way to convert the equation that I have from the Laplace Domain to the time domain and after that use DSolve to solve the differential equation with the my boundary conditions ?
Sorry if I made any beginner mistakes, I’m quite new to control systems and discovered Mathematica a week ago. Thanks for your advice.



