Guest User

Untitled

a guest
Nov 23rd, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. DSolve[{3 (D[a[t], t]^2/a[t]^2 + 1/a[t]^2) == 8 Pi/a[t]^4, a[0] == 1}, a[t], t]
  2.  
  3. {{a[t] -> Sqrt[3 - 2 Sqrt[3 (-3 + 8 [Pi])] t - 3 t^2]/Sqrt[3]}, {a[t] -> Sqrt[3 + 2 Sqrt[3 (-3 + 8 [Pi])] t - 3 t^2]/Sqrt[3]}}
  4.  
  5. Plot[Sqrt[3 + 2 Sqrt[3 (-3 + 8 [Pi])] t - 3 t^2]/Sqrt[2], {t, 0, 6}]
  6.  
  7. sol = NDSolve[{3 (D[a[t], t]^2/a[t]^2 + 1/a[t]^2) == 8 Pi/a[t]^4, a[0] == 1}, a, {t, 0, 6}]
  8.  
  9. Plot[Evaluate[a[t] /. sol[[2]]], {t, 0, 5.3}]
  10.  
  11. Method -> {"MethodOfLines",
  12. "DifferentiateBoundaryConditions" -> {True, "ScaleFactor" -> 1}}
Add Comment
Please, Sign In to add comment