2
$\begingroup$
de = x''[t] + 6 x'[t] + 8 x[t] == 10
80 + 6 Derivative[1][x][t] + (x^\[Prime]\[Prime])[t] == 10

Initial = {x[0] -> 0, x'[0] -> 0}

Lde = LaplaceTransform[de, t, s]
80/s - Derivative[1][x][0] == 10/s

Lde = Lde /. Initial
80/s == 10/s

Solve[Lde, LaplaceTransform[x[t], t, s]]
Solve::ivar: 10/s is not a valid variable.

Hello, using the trail version of mathmatica I have a Differetial equation (de) and want to find the laplace transform of it and model X[t] and x[s]. Ive used various resources to get to this point but cannot get past the last line.

It states that 10/s is not a valid variable - but this is my input???

Any help would be appreciated!

$\endgroup$

closed as off-topic by zhk, bbgodfrey, ubpdqn, MarcoB, Edmund Mar 21 '17 at 0:09

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – bbgodfrey, ubpdqn, MarcoB, Edmund
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    $\begingroup$ Do you have some existing definitions that are causing problems? Perhaps try again with a fresh kernel (via the menu "Evaluation > Quit Kernel") $\endgroup$ – mikado Mar 18 '17 at 18:26
  • $\begingroup$ 8 x[t] is replaced by 80 in the first line, suggesting that x[t] has already been defined as 10 in code preceding that in the question. This issue probably invalidates everything that follows. $\endgroup$ – bbgodfrey Mar 19 '17 at 4:13
2
$\begingroup$
lt = LaplaceTransform[de, t, s] /. Initial;
sol = Solve[lt, LaplaceTransform[x[t], t, s]];
InverseLaplaceTransform[sol[[1, 1, 2]], s, t]

enter image description here

DSolve[{x''[t] + 6 x'[t] + 8 x[t] == 10, x[0] == 0, x'[0] == 0}, x[t], t]

enter image description here

Plot[x[t] /. %, {t, 0, 30}, PlotRange -> All]
$\endgroup$
  • $\begingroup$ Thanks very much for that Maple and after starting a new kernel - (cheers mikado) it worked. Going to construct it so I can understand the response of MSD systems better. $\endgroup$ – Benjamin Crump Mar 18 '17 at 21:00

Not the answer you're looking for? Browse other questions tagged or ask your own question.