- #1
Carla1985
- 94
- 0
Hi all, I'm doing a project on the finite elements method and am struggling to understand a part of it.
I have defined the hat functions as:
\[
\phi_i(x) =
\begin{cases}
\frac{x-x_{i-1}}{h} & \text{if } x_{i-1}\leq x<x_i \\
\frac{x_{i+1}-x}{h} & \text{if } x_i\leq x<x_{i+1}\\
0 & \text{otherwise}
\end{cases}
\]
I know this means that for each $\phi_i(x_i)$ is 1 when i=j and 0 the rest of the time. The part I'm stuck on is the next step:
\[
u_h(x) = \sum_{j=1}^{n-1}c_j\phi_j(x)
\]
How do I sum these functions in their general form?
Regards
Carla
I have defined the hat functions as:
\[
\phi_i(x) =
\begin{cases}
\frac{x-x_{i-1}}{h} & \text{if } x_{i-1}\leq x<x_i \\
\frac{x_{i+1}-x}{h} & \text{if } x_i\leq x<x_{i+1}\\
0 & \text{otherwise}
\end{cases}
\]
I know this means that for each $\phi_i(x_i)$ is 1 when i=j and 0 the rest of the time. The part I'm stuck on is the next step:
\[
u_h(x) = \sum_{j=1}^{n-1}c_j\phi_j(x)
\]
How do I sum these functions in their general form?
Regards
Carla
Last edited by a moderator: