Results 1 to 2 of 2

Math Help - How to plot this equation in Mathematica

  1. #1
    Member roshanhero's Avatar
    Joined
    Aug 2008
    Posts
    180

    How to plot this equation in Mathematica

    The potential inside of a uniformly charged sphere of radius R is given by \frac{Q}{4\pi \epsilon _{0}}\frac{1}{2R}(3-\frac{r^2}{R^2})
    Please help me on how to plot this equation in Mathematica
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Member
    Joined
    May 2008
    Posts
    106

    Re: How to plot this equation in Mathematica

    To plot this in mathematica you will need to choose some values for the constants,

    I would choose units for charge so that numerically Q=4\pi \epsilon_0
    and we choose the radius of the sphere to be R=1.

    Since we only know the potential inside the sphere we should only plot from r=0 to r=R so the mathematica command you want to use is

    Plot[0.5*(3-r^2), {r,0,1}]

    and press shift and return together to evaluate it. The mathematica help should get you going with the syntax you need.
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. parametric plot in wxMaxima (or Mathematica)
    Posted in the Math Software Forum
    Replies: 3
    Last Post: November 17th 2010, 08:04 PM
  2. Replies: 2
    Last Post: June 22nd 2010, 12:17 PM
  3. Mathematica: Exporting a plot
    Posted in the Math Software Forum
    Replies: 6
    Last Post: March 4th 2010, 06:56 AM
  4. Mathematica plot
    Posted in the Math Software Forum
    Replies: 2
    Last Post: February 15th 2010, 11:41 PM
  5. help me to plot this equation in Matlab....
    Posted in the Math Software Forum
    Replies: 1
    Last Post: April 23rd 2009, 09:38 PM

Search Tags


/mathhelpforum @mathhelpforum