Explain why the local discretization error of the finite difference method is proportional to the square of the step size. Also explain why the global discretization error is proportional to the step size itself.

Short Answer

Expert verified
Answer: The local discretization error is proportional to the square of the step size because it is essentially the truncation error introduced by approximating the derivative using the finite difference method, which is shown by comparing it to the second-order term of the Taylor series expansion. On the other hand, the global discretization error is proportional to the step size since it involves the accumulation of local errors across the entire computation range, and when taking into account the number of intervals N, the global error reduces to being proportional to the step size.

Step by step solution

01

Understanding the Finite Difference Method

Finite difference methods are techniques used to approximate differential equations with difference equations that can be solved numerically. A crucial aspect of these methods is choosing an appropriate step size, which dictates the granularity of the approximation. The local discretization error refers to the error introduced during a single step or iteration, while the global discretization error refers to the cumulative errors over all steps or iterations.
02

Taylor Series Expansion

In order to analyze the local discretization error, we consider the Taylor series expansion of a function f(x) around a point x0: f(x) = f(x_0) + f'(x_0)(x - x_0) + 1/2f''(x_0)(x - x_0)^2 + 1/3!f'''(x_0)(x - x_0)^3 + ... The finite difference method approximates the derivative of a function using the differences at adjacent points. Consider the forward finite difference approximation of the first derivative: f'(x_0) ≈ (f(x_0 + h) - f(x_0))/h, where h is the step size.
03

Local Discretization Error

The local discretization error is essentially the truncation error introduced by approximating the derivative using the finite difference method. By comparing the forward finite difference approximation to the Taylor series expansion, we see that the error is proportional to the second-order term of the Taylor series: Local Error = 1/2f''(x_0)h, which shows that the local discretization error is proportional to the square of the step size, h^2. Hence, the local error decreases quadratically with the reduction in step size.
04

Global Discretization Error

The global discretization error is the accumulation of local errors throughout the entire computation. As we move from one iteration to another, we introduce new local errors that propagate through the computation. Suppose we have N intervals such that the entire computation range is covered: N = (b - a)/h, where a and b are the lower and upper bounds of the computation range. Since the local error is proportional to h^2 and there are N intervals, the global error is roughly proportional to Nh^2: Global Error ≈ Nh^2 = ((b - a)/h)h^2 = (b - a)h. As illustrated, the global discretization error is proportional to the step size h. Thus, the global error decreases linearly with the reduction in step size. In summary, the finite difference method introduces errors that are proportional to the square of the step size for local discretization and proportional to the step size for global discretization. By choosing an appropriate step size, we can control the trade-off between the accuracy of the approximation and the computational efficiency.

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

Key Concepts

These are the key concepts you need to understand to accurately answer the question.

Understanding Local Discretization Error
Local discretization error in the finite difference method is like a snapshot of the inaccuracies at a specific step in the numerical approximation process. It stems from the fact that we're using a finite step size, denoted as 'h', to approximate a derivative, which in reality is defined as the limit when this step size approaches zero.

When we try to estimate the derivative of a function at a point using finite differences, we're essentially cutting off the Taylor series expansion of the function after a few terms. For instance, using a forward difference formula, we neglect higher-order derivatives beyond the first. Mathematically speaking, the local error is derived from the remainder of the Taylor series after truncation and, for a first-order approximation, it's proportional to the value of the second derivative of the function times the square of the step size, or \(\frac{1}{2}f''(x_0)h^2\).

Imagine you're taking small steps along a curve trying to follow its shape. If your steps are large, each stride will land a bit farther from the curve because you're cutting corners. Similarly, in finite differences, large step sizes mean we're missing out more on the true shape of the function, causing more significant local errors. The smaller the steps, the closer we can stick to the real path of the curve, and hence, local errors due to discretization shrink proportionally to the square of the step size, \(h^2\).
Global Discretization Error Explained
While local discretization error is like a close-up on the inaccuracy at each step, global discretization error is the 'big-picture' error after we've completed all steps in our numerical estimation. It accumulates all the local errors together to provide a measure of total error across the entire interval we're studying.

Considering a series of steps from an initial point 'a' to an ending point 'b', if we divide this interval into 'N' steps of equal size, the global error is a sum of all the local errors. If each local error is roughly \(\frac{1}{2}f''(x_0)h^2\), and we have N such errors, the combined effect is \(\frac{1}{2}f''(x_0)N h^2\). But since \N = \frac{b-a}{h}\, the h^2 in the local error and the division by h in the expression for N combine to leave us with a single h. So, unlike the quadratic decrease seen in local error with reducing step size, the global error diminishes linearly as \(h\) is reduced.

Picture a marathon runner tracking the route on a map while taking shortcuts. Each shortcut represents a local error, and even though each is small, their total effect (global error) is significant enough to misjudge the distance covered. By making the steps (shortcuts) smaller, the runner's path becomes more accurate, just as the global error decreases with a smaller step size in the finite difference method.
Taylor Series Expansion in Finite Differences
The Taylor series expansion is a powerful mathematical tool that lets us express any differentiable function as an infinite sum of its derivatives at a certain point, each multiplied by a power of the displacement from that point.

Here's how the Taylor series expansion looks for a function \(f(x)\) around a point \(x_0\):
\[f(x) = f(x_0) + f'(x_0)(x - x_0) + \frac{1}{2}f''(x_0)(x - x_0)^2 + \frac{1}{3!}f'''(x_0)(x - x_0)^3 + ...\]
It's like unfolding the function into a linear combination of its slopes, curvatures, and higher-order shapes at \(x_0\), weighted by how far away \(x\) is from \(x_0\). For the finite difference method, this series allows us to approximate derivatives by considering only the first few terms and dropping the rest, which results in a discretization error.

Essentially, the finite difference method uses the Taylor series to create a formula that approximates derivatives by linear combinations of function values at adjacent points. It's like approximating a curved path with straight line segments—the more segments (higher-order terms) you use, the closer the approximation to the curve.
Numerical Approximation of Derivatives
In the world of calculus, derivatives capture the rate at which a function changes. Numerically approximating derivatives is essential in computational science because we often require these rates of change but lack an analytical expression for the function or the derivative is too complex to work with directly.

The finite difference method provides a way to approximate derivatives by using function values at discrete points. For example, the forward difference formula \(f'(x_0) \approx \frac{f(x_0 + h) - f(x_0)}{h}\) approximates the slope of \(f\) at \(x_0\) by considering how \(f\) changes over a small 'h' interval.

However, approximating derivatives numerically comes with a trade-off. Smaller step sizes lead to more accurate results but can increase computational cost and are more prone to rounding errors. Bigger step sizes reduce the number of computations and rounding-related problems but can give a less accurate result. This trade-off is a key aspect of numerical analysis, requiring careful balancing based on the context and the desired accuracy of the problem at hand.

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

Consider steady one dimensional heat conduction in a plane wall with variable heat generation and constant thermal conductivity. The nodal network of the medium consists of nodes \(0,1,2,3,4\), and 5 with a uniform nodal spacing of \(\Delta x\). Using the energy balance approach, obtain the finite difference formulation of the boundary nodes for the case of insulation at the left boundary (node 0 ) and radiation at the right boundary (node 5) with an emissivity of \(\varepsilon\) and surrounding temperature of \(T_{\text {surr }}\)

Starting with an energy balance on a disk volume element, derive the one- dimensional transient implicit finite difference equation for a general interior node for \(T(z, t)\) in a cylinder whose side surface is subjected to convection with a convection coefficient of \(h\) and an ambient temperature of \(T_{\infty}\) for the case of constant thermal conductivity with uniform heat generation.

For a one dimensional steady state variable thermal conductivity heat conduction with uniform internal heat generation, develop a generalized finite difference formulation for the interior nodes, with left surface boundary node exposed to constant heat flux and right surface boundary node exposed to convective environment. The variable conductivity is modeled such that the thermal conductivity varies linearly with the temperature as \(k(T)=k_{o}(1+\beta T)\) where \(T\) is the average temperature between the two nodes.

Two 3-m-long and 0.4-cm-thick cast iron \((k=\) \(52 \mathrm{~W} / \mathrm{m} \cdot \mathrm{K}, \varepsilon=0.8)\) steam pipes of outer diameter \(10 \mathrm{~cm}\) are connected to each other through two \(1-\mathrm{cm}\)-thick flanges of outer diameter \(20 \mathrm{~cm}\). The steam flows inside the pipe at an average temperature of \(200^{\circ} \mathrm{C}\) with a heat transfer coefficient of \(180 \mathrm{~W} / \mathrm{m}^{2} \cdot \mathrm{K}\). The outer surface of the pipe is exposed to convection with ambient air at \(8^{\circ} \mathrm{C}\) with a heat transfer coefficient of \(25 \mathrm{~W} / \mathrm{m}^{2} \cdot \mathrm{K}\) as well as radiation with the surrounding surfaces at an average temperature of \(T_{\text {surr }}=290 \mathrm{~K}\). Assuming steady one-dimensional heat conduction along the flanges and taking the nodal spacing to be \(1 \mathrm{~cm}\) along the flange \((a)\) obtain the finite difference formulation for all nodes, \((b)\) determine the temperature at the tip of the flange by solving those equations, and \((c)\) determine the rate of heat transfer from the exposed surfaces of the flange.

Consider a house whose windows are made of \(0.375\)-in-thick glass \(\left(k=0.48 \mathrm{Btu} / \mathrm{h} \cdot \mathrm{ft} \cdot{ }^{\circ} \mathrm{F}\right.\) and \(\alpha=\) \(4.2 \times 10^{-6} \mathrm{ft}^{2} / \mathrm{s}\) ). Initially, the entire house, including the walls and the windows, is at the outdoor temperature of \(T_{o}=35^{\circ} \mathrm{F}\). It is observed that the windows are fogged because the indoor temperature is below the dew-point temperature of \(54^{\circ} \mathrm{F}\). Now the heater is turned on and the air temperature in the house is raised to \(T_{i}=72^{\circ} \mathrm{F}\) at a rate of \(2^{\circ} \mathrm{F}\) rise per minute. The heat transfer coefficients at the inner and outer surfaces of the wall can be taken to be \(h_{i}=1.2\) and \(h_{o}=2.6 \mathrm{Btu} / \mathrm{h} \cdot \mathrm{ft}^{2} \cdot{ }^{\circ} \mathrm{F}\), respectively, and the outdoor temperature can be assumed to remain constant. Using the explicit finite difference method with a mesh size of \(\Delta x=0.125\) in, determine how long it will take for the fog on the windows to clear up (i.e., for the inner surface temperature of the window glass to reach \(54^{\circ} \mathrm{F}\) ).

See all solutions

Recommended explanations on Physics Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free