−u′′(x)+u(x)=k.x, x∈(0,1), k∈ u(0) = 0, u(1)= 0
(The numerical value of k is the last three digits of your school number) k=910
Solve the boundary value problem given above by using equal lenght finite elements with 3 finite elements and draw the exact solution and the finite element solution of the problem in the same graph.
in Other Math Topics by

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

1 Answer

Rewrite the DE:


The characteristic equation is found by solving r²-1=0. (r represents u'').

So r=±1, giving us u₁=Ae⁻ˣ+Beˣ, where A and B will be found later from the initial conditions.

The particular equation we can guess has the form u₂=ax+b, where we can work out  constants a and b:

u₂'=a and u₂''=0, so the DE becomes:

0-ax-b=-910x, from which b=0 and a=910, making u₂=910x.

The complete solution is u₁+u₂=u=Ae⁻ˣ+Beˣ+910x.

But u(0)=0=A+B, so B=-A.

u(1)=A/e-Ae+910=0, A-Ae²+910e=0.

From this A=910e/(e²-1)=387.1677 approx.

Therefore u=387.1677e⁻ˣ-387.1677eˣ+910x. In the graph below you only need the “hump” between x=0 and x=1. This will be the region divided into segments of equal length.


Another way if writing this is:



Now, using the finite element method, we get:


Divide (0,1) into n equal segments, so each segment has length=1/n. Call this length ∆x. The division gives rise to nodes numbered 1 to n+1.

If n=3, so ∆x=⅓ and 1≤i≤4, where i is the node number. The value of x at each node is xᵢ₋₁ and the corresponding u value is uᵢ₋₁. This means that the first node is at x=0 and the sixth node is at x=1. 

x₀=0, x₁=⅓, x₂=⅔, x₃=1.

Now consider the series:

(x₀,u₀), (x₁,u₁), (x₂,u₂), (x₃,u₃).

Since xᵢ₊₁-xᵢ=∆x, the first differences (differential or derivative) are:

(u₁-u₀)/∆x, (u₂-u₁)/∆x, (u₃-u₂)/∆x.

The second differences are:



From which we can make the approximation:


The boundary conditions are u₀=0 and u₅=0 (because u(0)=u(1)=0).

The DE can now be written:

(uᵢ₊₁-2uᵢ+uᵢ₋₁)/(∆x)²-uᵢ=-910xᵢ, or 9uᵢ₊₁-19uᵢ+9uᵢ₋₁=-910xᵢ, since (∆x)²=1/9.

Therefore, we arrive at a system of 2 equations:

9u₂-19u₁=-910/3, so u₂=(19u₁-910/3)/9;

-19u₂+9u₁=-1820/3, so -19(19u₁-910/3)/9+9u₁=-1820/3,


Multiplying through by 27:


-840u₁+33670=0, u₁=33670/840=481/12=40.083.


So the points to plot are A(⅓,481/12) and B(⅔,611/12).

These compare with u(⅓)=40.415 and u(⅔)=51.345.



by Top Rated User (840k points)

Related questions

1 answer
asked Feb 18, 2020 in Other Math Topics by anonymous | 68 views
1 answer
1 answer
1 answer
asked Apr 5 in Other Math Topics by Thatsd12 | 74 views
0 answers
asked Nov 29, 2020 in Other Math Topics by Rapht | 178 views
Welcome to MathHomeworkAnswers.org, where students, teachers and math enthusiasts can ask and answer any math question. Get help and answers to any math problem including algebra, trigonometry, geometry, calculus, trigonometry, fractions, solving expression, simplifying expressions and more. Get answers to math questions. Help is always 100% free!
86,310 questions
92,368 answers
23,929 users