|
360 | 360 | # ╔═╡ e2ed03ad-f720-4e29-afdc-1c1c6bc233c0 |
361 | 361 | md""" |
362 | 362 | !!! warning "Example: Using differentiation matrices" |
363 | | - In this example we want to test the first-order and second-order differentiation matrices $D_x$ and $D_{xx}$. We consider the following function |
| 363 | + In this example we want to test the differentiation matrices $D_x$ and $D_{xx}$ for first and second derivatives. We consider the following function |
364 | 364 | ```math |
365 | 365 | f_\text{exp} = x + e^{\sin(4x)} |
366 | 366 | ``` |
|
416 | 416 |
|
417 | 417 | # ╔═╡ 78cf3006-47c8-48c2-be3a-2a518ff4731d |
418 | 418 | md""" |
419 | | -Since we took a second-order finite difference formula, we would expect a second-order convergence. Plotting the maximal error of the approximated derivative values `dx_fexp_t` respectively `dx2_fexp_t`, that is |
| 419 | +Since we took second-order finite difference formulas in $\mathbf{D}_x$ and $\mathbf{D}_{xx}$, we would expect a second-order convergence. Plotting the maximal error of the approximated derivative values `dx_fexp_t` respectively `dx2_fexp_t`, that is |
420 | 420 | ```julia |
421 | 421 | maximum(abs.(dx_fexp.(t) - dx_fexp_t)) |
422 | 422 | ``` |
@@ -1010,7 +1010,7 @@ u(a) = γ_a, \quad u(b) &= γ_b, |
1010 | 1010 | \end{aligned} |
1011 | 1011 | \right. |
1012 | 1012 | ``` |
1013 | | -where the function $u : [a, b] \to \mathbb{R}$ is the principle unknown. Our approach relied on discretising this problem and employing finite-fifference differentiation matrices instead of exact derivatives. |
| 1013 | +where the function $u : [a, b] \to \mathbb{R}$ is the principle unknown. Our approach relied on discretising this problem and employing finite-difference differentiation matrices instead of exact derivatives. |
1014 | 1014 |
|
1015 | 1015 | This worked, but the maximal total accuracy was limited due to the increasing condition number of the system matrix $\mathbf{A}$ as we increase the number of subintervals $N$. As a resut it was **impossible to obtain the solution to arbitrary accuracy**. |
1016 | 1016 | """ |
@@ -1433,7 +1433,8 @@ end |
1433 | 1433 |
|
1434 | 1434 | # ╔═╡ 83fdd745-33e1-4e77-80a2-9008b0eb59b8 |
1435 | 1435 | md""" |
1436 | | -### Optional: Finite elements |
| 1436 | +### Finite elements |
| 1437 | +*(We will only discuss this on a high level in this class. You can expect that there will not be any detailed questions on this topic.)* |
1437 | 1438 |
|
1438 | 1439 | A widely employed set of basis functions for Galerkin approximations |
1439 | 1440 | are the hat functions $φ_i = H_i$, |
|
0 commit comments