



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A take-home exam for a partial differential equations and numerical methods course, focusing on computational solutions for mathematical problems. It includes problems on solving systems of linear equations using gauss elimination and gauss-seidel methods, heat conduction analysis, and deflection of an aluminum beam using the bernoulli-euler theory. The exam requires students to provide theoretical bases, flow charts, and programming source code, enhancing their understanding of numerical methods and their applications in engineering problems. The exam also includes an ethical statement to ensure academic integrity.
Typology: Cheat Sheet
1 / 5
This page cannot be seen from the preview
Don't miss anything!




Faculty of Mechanical and Aerospace Engineering
Institut Teknologi Bandung
WF2202 Partial Differential Equation and Numerical Method
Take Home Exam
Given out: THUR 05 JUN 2025 , Due Date WED 20 JUN 2025 ( 17 .00 WIB)
Please write this etical statement on the top of your answer sheet and sign:
“I hereby declare that all answers in the exam are from my independent work. I did not commit or
facilitate any improper conduct during exam. If i am proven to be in violation, I am ready to accept the
consequences in accordance with the applicable regulations”
sign
(Your Name)
The objective of the learning on the numerical method is to educate the students to be able to
solve many mathematical problems computationally such as system of linear equations, partial
differential equations, finite difference, and integral. In this take home exam, the students are
expected to provide theoretical basis, flow chart, and programming source code for the
following problems.
1.Create a flowchard and programming code to solve the system simultaneous linear algebraic
equations, which is defined as the following:
11
1
12
2
1j
j
1(n-1)
(n-1)
1n
n
1
21
1
22
2
2j
j
2(n-1)
(n-1)
2n
n
2
i
1
i
2
ij
j
i(n-1)
(n-1)
in
n
i
a
(n-1)
1
(n-1)
2
(n-1)j
j
(n-1)(n-1)
(n-1)
(n-1)n
n
(n-1)
a
n
1
n
2
nj
j
n(n-1)
(n-1)
nn
n
n
where the a’s are constant coefficients and the b’s are constants, and x are unknown variables.
Create a matlab programming code that can be used to solve the system simultaneous linear
algebraic equations. Please include in your programming solution the following:
a) Create the solve the system simultaneous linear algebraic equations that will have inputs
from the keyboards. Inputs are :
a.1. the number of equations/number of unknown variables =n
a.2. the a’s constant coefficients and
a.3. the b’s constants.
b) There are two choice for the method:
Choice A = Using Gauss Elimination
Choice B = Using Gauss Seidel
c) Print the system simultaneous linear algebraic equations, and validate the code for the
solution given below
Number of equations = 4
10 X1 - 2 X2 - X3 - X4 = 3
The solutions are printed in the format as the following
The answers after 7 iterations are the following (4 digits of accuracy):
(for cases of n= 7 )
d) Use the validated code to solve the following system of equations using both Gauss
Elimination and Gauss-Seidel Methods.
Figure P. 3 .1. Heated Plate
figure P.4.1 can be calculated using the Bernoulli-Euler theory as follows:
𝑀
𝐸𝐼
𝑦′′
[ 1 +(𝑦
′
)
2
]
3 ⁄ 2
Figure P.4.1.
Equation (E.4.1) can be solved numerically by writing it into:
′′
𝑀
𝐸𝐼
′
2
3 ⁄ 2
and then, equation (E.4.2) can be written into two equations:
′
′
𝑀
𝐸𝐼
2
3 ⁄ 2
23
o
C
0
o
C
02
o
C
136
o
C
M
EI
with the boundary condition y (0) = z (0) = 0
Data of beams are : E= Five last numbers of your NIM kg/mm
2
, I=1500 mm
4
, L=200 mm,
M= Four last numbers of your NIM mm kg. For Example: NIM 13621021, E = 21021
kg/mm
2
and M=1021 mm kg.
a) Write the formula of Runge-Kutta with c/p coefficient using Modified Euler for second
order R-K method and sketch the graphic to get y m+
from y m
and z m+
from z m
b) Using the boundary condition y 0
= y(0) = 0 dan z 0
= z(0) = 0 , determine y 1
and z 1
if
h=20 mm. (use the 2
nd
order R-K method).
c) Using the same boundary conditions in b), determine the y and z with the 4
th
order
Runge-Kutta R-K Method
d) Plot your results in b) and c) in the same graph
Good Luck for the exam.