ArticleslgStudy

mathematics

MacCormack method

MacCormack method is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand MacCormack method rather than just read about it. In short: In computational fluid dynamics, the MacCormack method (/məˈkɔːrmæk ˈmɛθəd/) is a widely used discretization scheme for the numerical solution of hyperbolic partial differential equations. This second-order finite difference method was introduced by Robert W.

Key takeaways

  • MacCormack method belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect MacCormack method to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of MacCormack method from memory before moving on to harder problems.

Reference excerpt

In computational fluid dynamics, the MacCormack method (/məˈkɔːrmæk ˈmɛθəd/) is a widely used discretization scheme for the numerical solution of hyperbolic partial differential equations. This second-order finite difference method was introduced by Robert W. MacCormack in 1969. The MacCormack method is elegant and easy to understand and program.

The algorithm The MacCormack method is designed to solve hyperbolic partial differential equations of the form

∂u∂t+∂f(u)∂x=0 To update this equation one timestep Δt on a grid with spacing Δx at grid cell i, the MacCormack method uses a "predictor step" and a "corrector step", given below

uip=uin−ΔtΔx(fi+1n−fin)uin+1=12(uin+uip)−Δt2Δx(fip−fi−1p)

Linear Example To illustrate the algorithm, consider the following first order hyperbolic equation

∂u∂t+a∂u∂x=0. The application of MacCormack method to the above equation proceeds in two steps; a predictor step which is followed by a corrector step. Predictor step: In the predictor step, a "provisional" value of u at time level n+1 (denoted by uip) is estimated as follows

uip=uin−aΔtΔx(ui+1n−uin) The above equation is obtained by replacing the spatial and temporal derivatives in the previous first order hyperbolic equation using forward differences. Corrector step: In the corrector step, the predicted value uip is corrected according to the equation

uin+1=uin+1/2−aΔt2Δx(uip−ui−1p) Note that the corrector step uses backward finite difference approximations for spatial derivative. The time-step used in the corrector step is Δt/2 in contrast to the Δt used in the predictor step. Replacing the uin+1/2 term by the temporal average

uin+1/2=uin+uip2 to obtain the corrector step as

uin+1=uin+uip2−aΔt2Δx(uip−ui−1p)

Some remarks The MacCormack method is well suited for nonlinear equations (Inviscid Burgers' equation, Euler equations, etc.) The order of differencing can be reversed for the time step (i.e., forward/backward followed by backward/forward). For nonlinear equations, this procedure provides the best results. For linear equations, the MacCormack scheme is equivalent to the Lax–Wendroff method. Unlike first-order upwind scheme, the MacCormack does not introduce diffusive errors in the solution. However, it is known to introduce dispersive errors (Gibbs phenomenon) in the region where the gradient is high.

See also Lax–Wendroff method Upwind scheme Hyperbolic partial differential equations

References

Worked examples

Example 1 — a first encounter with MacCormack method

Start with the simplest possible case. Write down what MacCormack method claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to MacCormack method before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about MacCormack method ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of MacCormack method

In research
MacCormack method appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses MacCormack method in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
MacCormack method is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computational fluid dynamics, Numerical differential equations, so understanding it makes those chapters shorter.
In everyday life
Look for MacCormack method outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “MacCormack method” →

How to study MacCormack method in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what MacCormack method means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain MacCormack method out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is MacCormack method in simple terms?

In computational fluid dynamics, the MacCormack method (/məˈkɔːrmæk ˈmɛθəd/) is a widely used discretization scheme for the numerical solution of hyperbolic partial differential equations. This second-order finite difference method was introduced by Robert W.

Why does MacCormack method matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study MacCormack method?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on MacCormack method.

Tags

  • Computational fluid dynamics
  • Numerical differential equations

Keep exploring