Results 1 to 3 of 3

Math Help - Mathematica plot

  1. #1
    Newbie
    Joined
    Dec 2009
    Posts
    6

    Mathematica plot

    Hi!

    i'm solving an equation

    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}]

    I do not know how to plot y'[t] vs. y[t].

    Any help appreciated!
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Super Member
    Joined
    Aug 2008
    Posts
    903
    Try this:

    Clear[y]
    sol = NDSolve[{y''[t] + Sin[y[t]] == Sin[t], y[0] == 0, y'[0] == 0},
    y, {t, 0, 5}]
    y[t_] = First[Evaluate[y[t] /. sol]]
    yd[t_] = D[y[t], t]
    ParametricPlot[{yd[t], y[t]}, {t, 0, 5}]
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Newbie
    Joined
    Dec 2009
    Posts
    6
    Amazing!!! You are genius.
    Thank you !!!
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. How to plot this equation in Mathematica
    Posted in the Math Software Forum
    Replies: 1
    Last Post: December 6th 2011, 04:16 PM
  2. parametric plot in wxMaxima (or Mathematica)
    Posted in the Math Software Forum
    Replies: 3
    Last Post: November 17th 2010, 09:04 PM
  3. Replies: 2
    Last Post: June 22nd 2010, 01:17 PM
  4. box plot
    Posted in the Statistics Forum
    Replies: 1
    Last Post: April 1st 2010, 02:00 PM
  5. Mathematica: Exporting a plot
    Posted in the Math Software Forum
    Replies: 6
    Last Post: March 4th 2010, 07:56 AM

Search Tags


/mathhelpforum @mathhelpforum