Solve ID Burgers Equation for given Conditions Using MATLAB


Consider the ID Burgers equation for the unknown u = u (x, t),


With initial condition 

                                     u(x, t) = 0.25 + 0.5sin( x) 

and periodic boundary conditions. Divide the computational domain (-1  into M equally spaced intervals and let the discrete solution ui be defined at the center of each element xi = -1 + (i- ½) 2/M. Add so-called ghost cells at i=0 and I = M+1 to the vector of unknowns and implement the periodic boundary conditions by setting

                                  u0 = uM      uM+1 = u1

  • Determine u(x, t = 0.15) using a first order TVD scheme for M = 40. Plot the correct weak solution vs x together with the initial solution, and give the solution at t = 0.15 in a table together with xi.
  • Determine the correct weak solution for u(x, t = 20 using a first order scheme for M= 40. Add the solution to the plot and table of a).


  • 1 Clearly annotated plot of u as a function of x at t = 0, 0.15, and 2 using a 1st-order TVD method for M = 40;
  • 1 table containing x and the solution u at t = 0, 0.15 and 2 using a first order TVD method for M = 40;


This question belongs to MATLAB software and discusses about application of MATLAB in mathematics to solve ID Burgers equation with initial and periodic boundary conditions and to determine first order TVD scheme and correct weak solution.

Answer is in MATLAB format


Download Full Solution


  • HWA

    this is a very good website

  • HWA

    I have 50 questions for the same test your page is showing only 28

  • HWA

    hi can you please help or guide me to answer my assignments. thanks

  • HWA

    hi can anyone help or guide me to my assignments. thanks

  • HWA

  • HWA

    This solution is perfect ...thanks

  • HWA

    Hello Allison,I love the 2nd image that you did! I also, had never heard of SumoPaint, is something that I will have to exolpre a bit! I understand completely the 52 (or so) youtube videos that you probably watched. Sometimes they have what you want, sometimes they don't! However, it is always satisfying when you are able to produce something that you have taught yourself. Great job!Debra 0 likes

  • HWA

    Perfect bank of solution. 

  • HWA

    great !

  • HWA
    Paul Brandon-Fritzius

    thanks for the quick response. the solution looks good. :)

  • HWA
    tina Johnson

    thnx for the answer. it was perfect. just the way i wanted it. 

  • HWA

    works fine.