Solving a Boundary Value Problem: Non-Uniform vs. Uniform Partitioning

In summary, the conversation discusses a boundary value problem with a given constant, $\epsilon$, and the need for a finite difference method for its numerical solution. The question of whether a non-uniform or uniform partition is better is raised, with the suggestion to experiment and compare with the exact solution obtained through substitution and integration.
  • #1
evinda
Gold Member
MHB
3,836
0
Hello! (Wave)Consider the boundary value problem
$\left\{\begin{matrix}
- \epsilon u''+u'=1 &, x \in [0,1] \\
u(0)=u(1)=0 &
\end{matrix}\right.$
where $\epsilon$ is a positive given constant.
I have to express a finite difference method for its numerical solution.
How can we know whether it is better to use non-uniform partition or uniform partition?
 
Mathematics news on Phys.org
  • #2
Well, you can always do the experiment and see. This BVP has an exact answer that's not too difficult to obtain. If you do the substitution $v=u'$, you get a first-order linear DE, $v'-v/\varepsilon=-1/\varepsilon$, with solution
$$v=1+C_1 e^{x/\varepsilon}.$$
Integrating once yields
$$u=x+\varepsilon C_1 e^{x/\varepsilon}+C_2.$$
Applying the boundary conditions yields the system
\begin{align*}
\varepsilon C_1+C_2&=0 \\
\varepsilon C_1 e^{1/\varepsilon}+C_2&=-1,
\end{align*}
with solution
\begin{align*}
C_1&=\frac{1}{\varepsilon(1-e^{1/\varepsilon})} \\
C_2&=\frac{1}{e^{1/\varepsilon}-1}.
\end{align*}
Hence, the exact solution is
$$u(x)=x+\frac{e^{x/\varepsilon}-1}{1-e^{1/\varepsilon}}.$$
You can use this to compare how good the two numerical solutions are.
 

Related to Solving a Boundary Value Problem: Non-Uniform vs. Uniform Partitioning

What is a boundary value problem?

A boundary value problem is a mathematical problem that involves finding a solution to a differential equation that satisfies certain conditions at the boundary points of the domain. These conditions are typically given as values or functions.

How is non-uniform partitioning different from uniform partitioning in solving a boundary value problem?

Non-uniform partitioning involves dividing the domain into unequal intervals, while uniform partitioning divides the domain into equal intervals. Non-uniform partitioning can be more efficient in certain cases where the solution varies significantly over the domain, but it can also be more complex to implement.

What are the advantages of using non-uniform partitioning?

Non-uniform partitioning can lead to more accurate solutions in cases where the solution varies significantly over the domain. It can also reduce the computational effort required to solve the problem, as fewer intervals may be needed to achieve a desired level of accuracy.

Are there any disadvantages to using non-uniform partitioning?

Non-uniform partitioning can be more complex to implement and may require a deeper understanding of the problem at hand. It may also be more difficult to visualize and interpret the results, as the intervals are not necessarily evenly spaced.

How can I determine whether to use non-uniform or uniform partitioning for a specific boundary value problem?

The decision to use non-uniform or uniform partitioning depends on the specific characteristics of the problem, such as the behavior of the solution over the domain and the desired level of accuracy. It may be helpful to consult with a mathematician or use numerical methods to compare the results of both approaches.

Similar threads

Replies
1
Views
2K
Replies
20
Views
3K
Replies
4
Views
1K
  • General Math
Replies
3
Views
2K
Replies
0
Views
505
  • Differential Equations
Replies
16
Views
2K
Replies
1
Views
2K
  • Quantum Physics
Replies
9
Views
884
  • Differential Equations
Replies
1
Views
805
  • General Math
2
Replies
38
Views
10K
Back
Top