Results 1 to 3 of 3

Math Help - 2nd Order DE in Mathematica

  1. #1
    Newbie
    Joined
    Dec 2009
    Posts
    6

    2nd Order DE in Mathematica

    I've got a lot of problems plotting this one

    y'' + sin(y) = sin(x)
    initial conditions: y(0)=0 y'(0)=0

    This is equation of some pendulum.
    I'm looking for Mathemacia form to plot the solution.

    I tried this:
    DSolve[y''[x] + Sin[y[x]] == Sin[x], y[x], x]
    and it doesn't work.

    ty
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Super Member
    Joined
    Aug 2008
    Posts
    903
    Use NDSolve:

    sol = NDSolve[{y''[t] + Sin[y[t]] == Sin[t], y[0] == 0, y'[0] == 0},
    y, {t, 0, 5}]
    Plot[Evaluate[y[t] /. sol], {t, 0, 5}]
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Newbie
    Joined
    Dec 2009
    Posts
    6
    It works!!!
    Thanks!
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. [SOLVED] Re-writing higher order spatial derivatives as lower order system
    Posted in the Differential Equations Forum
    Replies: 11
    Last Post: July 27th 2010, 09:56 AM
  2. Help about Mathematica
    Posted in the Math Software Forum
    Replies: 2
    Last Post: June 1st 2010, 12:46 PM
  3. Replies: 2
    Last Post: February 23rd 2009, 06:54 AM
  4. LCM/GCD With Mathematica
    Posted in the Math Software Forum
    Replies: 3
    Last Post: January 7th 2009, 07:49 AM
  5. Replies: 2
    Last Post: November 25th 2008, 10:29 PM

Search Tags


/mathhelpforum @mathhelpforum