Guest User

Untitled

a guest
Nov 25th, 2017
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. One day it began to snow exactly at noon at a heavy and steady rate. A snowplow left its garage at 1:00 P.M., and another one followed in its tracks at 2:00 P.M.:
  2. a) At what time did the second snowplow crash into the first?
  3. b) Could the crash have been avoided by dispatching the second snowplow at 3:00 P.M. instead?
  4.  
  5. eqn1 = D[h[t], t] == r;
  6. eqn2 = D[x[t], t] == k/h[t];
  7. soln1 = DSolve[{eqn1, h[0] == 0}, h[t], t];
  8. neweqn2 = eqn2 /. soln1;
  9. soln2 = DSolve[{neweqn2, x[1] == 0}, x[t], t];
  10. newsoln2 = soln2 /. t -> T;
  11. aux = Solve[newsoln2[[1, 1, 2]] == y[t], T, Reals][[1, 1, 2]]
  12. eqn3 = D[y[t], t] == k/h[t];
  13. soln3 = DSolve[{eqn1, h[T] == 0}, h[t], t];
  14. neweqn3 = eqn3 /. soln3;
  15. eqn4 = neweqn3 /. T -> aux
  16. soln4 = DSolve[{eqn4, y[2] == 0}, y[t], t]
  17.  
  18. t-> e^((r/k)y)(2-(r/k)y)
Add Comment
Please, Sign In to add comment