Using Mathematica to solve an ODE

  • Thread starter Thread starter Ashley1nOnly
  • Start date Start date
  • Tags Tags
    Mathematica Ode
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 1K views
Ashley1nOnly
Messages
132
Reaction score
3

Homework Statement


upload_2018-9-4_13-2-12.png


Homework Equations


upload_2018-9-4_13-1-2.png

upload_2018-9-4_13-1-36.png


The Attempt at a Solution



I used the NDSolve function from mathematic but its giving me problems. What is the correct way to enter the equation?[/B]
soln = NDSolve[{y''[t] = (-9.8/5)*sin (t), y[0] = 20, y, {x, 0, 12}}]
 

Attachments

  • upload_2018-9-4_13-1-2.png
    upload_2018-9-4_13-1-2.png
    1 KB · Views: 710
  • upload_2018-9-4_13-1-36.png
    upload_2018-9-4_13-1-36.png
    1.1 KB · Views: 695
  • upload_2018-9-4_13-2-12.png
    upload_2018-9-4_13-2-12.png
    28.2 KB · Views: 652
Physics news on Phys.org
(1) The right hand side is not sin(t), it is sin(y[t]).

(2) Look more carefully at the syntax of the Mathematica NDSolve example below. Is your input in this form?

s = NDSolve[{y'[x] == y[x] Cos[x + y[x]], y[0] == 1}, y, {x, 0, 30}]