0% found this document useful (0 votes)
6 views6 pages

Numerical Methods Problem Set for PDEs

The document is a problem set for a course on Numerical Methods for Engineering Computation, detailing various mathematical problems related to partial differential equations, ordinary differential equations, interpolation, and numerical integration. Each problem requires the development of MATLAB codes to solve specific equations or scenarios. The problems range from classifying PDEs to applying numerical methods for integration and solving differential equations with given boundary and initial conditions.

Uploaded by

b23077
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views6 pages

Numerical Methods Problem Set for PDEs

The document is a problem set for a course on Numerical Methods for Engineering Computation, detailing various mathematical problems related to partial differential equations, ordinary differential equations, interpolation, and numerical integration. Each problem requires the development of MATLAB codes to solve specific equations or scenarios. The problems range from classifying PDEs to applying numerical methods for integration and solving differential equations with given boundary and initial conditions.

Uploaded by

b23077
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

CE562: Numerical Methods for Engineering Computation

Problem Set-2 (Aug-Dec: 2025)

Dr. Dhanya J

21/10/2025

Note: Develop MATLAB codes for each problem.

Part 1: Partial Differential Equations


Question 1: Classify the following PDE’s as elliptic,parabolic or hyperbolic.
∂2u ∂2u ∂ 2 u ∂u ∂u
1. 2
+4 +4 2 − +2 =0
∂x ∂x∂y ∂y ∂x ∂y
∂2u ∂2u
2. x2 2
+ (1 − y 2 ) 2 = 0, −∞ < x < ∞, −y < 1
∂x ∂y
∂2u 2
2 ∂ u
2
2 ∂ u
3. (1 + x2 ) + (5 + 2x ) + (4 + x ) = 0.
∂x2 ∂x∂t ∂t2

Question 2: Solve the Laplace equation uxx + uyy = 0 given that

Fig. 1.

Question 3: Solve the Poisson equation uxx + uyy = −81xy, 0 < x < 1, 0 < y < 1 given that
u(0, y) = 0, u(1, y) = 100, u(x, 1) = 100 and h = 1/3.

1
Fig. 2.

2
Question 4: Find the values of u(x, t) satisfying the parabolic equation ∂u ∂ u
∂t = 4 ∂x2 and the boundary
1 2
conditions u(0, t) = 0 = u(8, t) and u(x, 0) = 4x − 2 x at the points x = i : i = 0, 1, 2, . . . , 7 and
t = 18 j; j = 0, 1, 2, . . . , 5.

Question 5:The transverse displacement u of a point at a distance x from one end and at any time t of
2 2
a vibrating string satisfies the equation ∂∂t2u = 4 ∂∂xu2 , with boundary conditions u = 0 at x = 0, t > 0 and
u = 0 at x = 4, t > 0, and initial conditions u = x(4 − x) and ∂u ∂t = 0, 0 ≤ x ≤ 4. Solve this equation
numerically for one-half period of vibration, taking h = 1 and k = 12 .

Question 6: Evaluate the pivotal values of the equation

utt = 16uxx ,

taking ∆x ≡ 1 up to t = 1.25. The boundary conditions are given as

u(0, t) = u(5, t) = 0, ut (x, 0) = 0, and u(x, 0) = x2 (5 − x).

Question 7: The transverse displacement u of a point at a distance x from one end and at any time t
of a vibrating string satisfies the equation

∂2u ∂2u
= 4 ,
∂t2 ∂x2
with boundary conditions

u = 0 at x = 0, t > 0 and u = 0 at x = 4, t > 0,

and initial conditions


∂u
u = x(4 − x) and = 0, 0 ≤ x ≤ 4.
∂t
Solve this equation numerically for one-half period of vibration, taking h = 1 and k = 12 .

Question 8: Solve the equation


∂u ∂2u ∂2u
= + 2,
∂t ∂x2 ∂y

2
subject to the initial conditions

u(x, y, 0) = sin 2πx sin 2πy, 0 ≤ x, y ≤ 1,

and the boundary conditions

u(x, y, t) = 0, t > 0 on the boundaries,

using the ADE method with h = 1/3 and α = 1/8. Calculate the results for one time level.

Part 2: Ordinary Differential Equation


Question 1: Use forward and backward difference approximations of O(h) and a centered difference
approximation of O(h2 ) to estimate the first derivative of

f (x) = −0.1x4 − 0.15x3 − 0.5x2 − 0.25x + 1.2

at x = 0.5 using a step size h = 0.5. Repeat the computation using h = 0.25.
Note that the derivative can be calculated directly as

f ′ (x) = −0.4x3 − 0.45x2 − 1.0x − 0.25

and can be used to compute the true value as f ′ (0.5) = −0.9125.


Question 2: Using the Runge–Kutta method of fourth order, solve

dy y 2 − x2
=
dx y+x

with the initial condition y(0) = 1, and determine the values of y at x = 0.2 and x = 0.4.

Question 3: Find an approximate series solution of the simultaneous differential equations


dx dy
= xy + 2t, = 2ty + x,
dt dt
subject to the initial conditions
x(0) = 1, y(0) = −1.

Question 4: Find the values of y(1.1) and y(1.2) using the Taylor series method for the differential
equation
y ′′ + y 2 y ′ = x3 ,
subject to the initial conditions
y(1) = 1, y ′ (1) = 1.

Question 5: Using the finite difference method, find y(0.25), y(0.5) and y(0.75) satisfying the differential
equation
d2 y
+ y = x2 ,
dx2
subject to the boundary conditions
y(0) = 0, y(1) = 2.

3
Table 1: Values of φ(x) along the beam.
1 2
x 3 3 1
φ(x) 81 162 243

Question 6: The deflection of a beam is governed by the equation

d4 y
+ 81 y(x) = φ(x),
dx4
where φ(x) is given in the table below (with x measured along the beam):
The boundary conditions are

y(0) = 0, y ′ (0) = 0, y ′′ (1) = 0, y ′′′ (1) = 0.

Evaluate the deflection at the pivotal points of beam using three sub intervals.

Question 7: Using Picard’s method, find approximate values of y and z corresponding to x = 0.1 for
the system of differential equations
dy dz
= x + z, = x − y2 ,
dx dx
with the initial conditions
y(0) = 2, z(0) = 1.

Question 8: Determine the values of y at the pivotal points of the interval (0, 1) if y satisfies the
boundary-value problem
y (iv) + 81 y = 81 x2 ,
with boundary conditions

y(0) = 0, y(1) = 0, y ′′ (0) = 0, y ′′ (1) = 0.

Take n = 3.

Question 9: Using the shooting method, solve the boundary-value problem

y ′′ (x) = y(x), y(0) = 0, y(1) = 1.17.

Determine the solution y(x) that satisfies the given boundary conditions.

Question 10: Solve the system of differential equations


dy dz
= 1 + xz, = −xy
dx dx
For x=0.3 using the fourth order Runge-Kuta method. Initial values are

x = 0, y = 0, z = 1.

4
Part 3: Interpolation
Question 1: Find the missing term in the following table using Lagrange’s interpolation:

x 0 1 2 3 4
y 1 3 9 ? 81

Question 2: Find the distance moved by a particle and its acceleration at the end of 4 seconds, if the
time versus velocity data is as follows:

t (s) 0 1 3 4
v (m/s) 21 15 12 10

Question 3: Using Newton’s backward difference formula, construct an interpolating polynomial of


degree 3 for the data

x −0.75 −0.50 −0.25 0


f (x) −0.0718125 −0.02475 0.3349375 1.10100

Hence find f − 13 .


n  2
X
3 n(n + 1)
Question 4: Show that k = using Newton’s forward formula
2
k=1

Question 5: Find the cubic polynomial which takes the following values:

x 0 1 2 3
f (x) 1 2 1 10

Hence (or otherwise) evaluate f (4).


Question 6: The table gives the distance in nautical miles of the visible horizon for the given heights
in feet above the earth’s surface:

x (ft) 100 150 200 250 300 350


400
y (n.m.) 10.63 13.03 15.04 16.81 18.42 19.90
21.27

Find the values of y when


(i) x = 160 ft,
(ii) x = 410 ft.
Question 7: From the following table, estimate the number of students who obtained marks between
40 and 45:

Marks (interval) 30−40 40−50 50−60 60−70 70−80


No. of students (frequency) 31 42 51 35 31

Question 8: Using Newton’s forward interpolation formula find the value of cos 52◦ from the following
data and estimate the error:
x 45◦ 50◦ 55◦ 60◦
y = cos x 0.7071 0.6428 0.5736 0.5000

From the table the forward differences (starting at x0 = 45◦ ) are ∆y0 = −0.0643, ∆2 y0 = −0.0049, ∆3 y0 =
0.0005.

5
Part 4: Numerical Integration
Question 1: Evaluate the integral
2
x2
Z
dx
1 1 + x3
using Simpson’s 1/3 rule. Compare the approximate result with the exact value of the integral and
calculate the error.
Question 2: Compute the value of the integral
Z 1.4
sin x − log x + ex dx

0.2

using Simpson’s 3/8 rule.

Question 3: The velocity v of a particle at a distance s from a point on its linear path is given by the
following table:

Table 2: Velocity of a particle at different distances


s (m) 0 2.5 5.0 7.5 10.0 12.5 15.0 17.5 20.0
v (m/s) 16 19 21 22 20 17 13 11 9

Estimate the time taken by the particle to traverse a distance of 20 m using Boole’s rule.
Question 4: A solid of revolution is formed by rotating about the x-axis the area between the x-axis,
the lines x = 0 and x = 1, and a curve through the points with the following co-ordinates:

x 0.00 0.25 0.50 0.75 1.00


y 1.0000 0.9896 0.9589 0.9089 0.8415

Estimate the volume of the solid formed using Simpson’s rule.


Question 5: Use Romberg’s method to compute
Z 1
1
I= dx
0 1+x

correct to three decimal places using the Trapezoidal rule.

Question 6:
Z 1.2
Evaluation of ex dx using Simpson’s 1
3 Rule and trapezoidal rule and discuss on the error based on
0
number of data points and scheme

Question 7
Z 6
1
Evaluation of log10 x dx using Simpson’s 3 Rule and trapezoidal rule
2

Common questions

Powered by AI

The shooting method transforms a boundary-value problem into an initial-value problem, where solutions are guessed, and iteratively adjusted to meet boundary conditions. Key considerations for ensuring convergence and accuracy include selecting appropriate initial guesses for the derivatives or boundary values, as poor guesses can lead to divergence . The choice of numerical integrator, such as Runge-Kutta, affects stability and precision, with higher-order methods typically improving accuracy . Control of numerical errors through adaptive step-size adjustments is crucial, especially near boundary conditions, to avoid instabilities and inaccurate solutions . Additionally, considering sensitivity analysis on the initial conditions and regular validation against known solutions or benchmarks can enhance solution reliability .

In the Taylor series method for solving differential equations, the choice of computational step size significantly affects both numerical stability and accuracy. A smaller step size generally increases accuracy by reducing truncation errors inherent in series expansion approximations. However, using excessively small steps can amplify round-off errors and increase computational costs . Numerical stability is also primarily influenced by step size, as larger steps can cause instability, especially in stiff equations or when higher-order derivatives grow large. Stability constraints must be assessed to ensure that the approximated series converges and accurately represents the solution over large intervals . Thus, an optimal step size ensures balanced computation between reducing errors and improving stability while maintaining feasible computational loads .

The classification of partial differential equations (PDEs) into elliptic, parabolic, and hyperbolic types significantly influences the choice of numerical methods because each class has characteristic mathematical properties that dictate stability and appropriate boundary conditions. For elliptic PDEs, such as the Laplace or Poisson equations, one often uses iterative solvers like Gauss-Seidel or direct solvers like LU decomposition, paying attention to boundary conditions and ensuring the method's convergence in a bounded domain . Parabolic PDEs, like the heat equation, may require implicit or explicit finite difference schemes, where stability is often governed by the Courant-Friedrichs-Lewy (CFL) condition . Hyperbolic PDEs, characterized by wave equations, require attention to capturing wave propagation accurately, often needing methods like finite volume for conservation and stability. The method selection impacts computational efficiency, accuracy, and stability .

The alternating direction explicit (ADE) method boosts computational efficiency in solving multi-dimensional PDEs by splitting the problem along coordinate axes, solving one dimension at a time in an explicit manner, which reduces the complexity of multi-dimensional problems into simpler sequential one-dimensional problems . This approach mitigates computational loads by enabling parallel computation and reduces round-off errors by minimizing complex matrix operations otherwise required in full multi-dimensional discretizations . In accuracy terms, the ADE method allows for larger time steps in some contexts by effectively managing stability constraints specific to explicit methods, offering significant improvements over traditional explicit schemes prone to stricter stability criteria . By managing discretization errors that come from handling multi-dimensional interactions incrementally, the ADE method enhances the convergence and alignment of time-step constraints along different axes, improving the solution's robustness and precision in diverse physical simulations .

Calculating a particle's trajectory using numerical integration methods, such as Simpson's rule or Boole's rule, is significant in experimental settings where analytic solutions may not be feasible due to complex forces or non-linear dynamics. These methods help in interpolating data points with minimal error and estimate cumulative values such as displacement and velocity over time . The accurate prediction of trajectory informs design and control systems in aerospace and automotive engineering, where trajectory analysis affects guidance systems, navigation, and safety protocols . Challenges include managing numerical errors from discretization, choosing appropriate integration intervals for accuracy, and ensuring the stability of solutions, especially in long-term applications or where data is sparse .

The Runge-Kutta methods, particularly the fourth-order version, offer significant advantages in solving ordinary differential equations (ODEs), namely high accuracy with relatively simple implementation since these methods do not require the calculation of higher derivatives or the solving of complex matrix equations inherent in implicit methods . Compared to forward Euler's method, Runge-Kutta proves more accurate for larger step sizes and possesses better stability characteristics in terms of global error minimization . Challenges include potentially higher computational costs due to multiple function evaluations per step, which can be problematic for systems with expensive function evaluations or when solving stiff equations where explicit solvers struggle with stability unless very small step sizes are used . Integrators like implicit methods (e.g., backward differentiation formulas) may be preferred for stiff problems despite their complexity and additional cost per step .

The finite difference method is often preferred for approximating solutions to differential equations in boundary-value problems because it provides a straightforward discretization strategy that transforms differential equations into linear algebra problems solvable by established matrix techniques . This method effectively handles a wide range of boundary conditions, is relatively easy to program, and requires less computational overhead compared to some alternatives like spectral methods, which may need more complex foundational assumptions about function smoothness . Furthermore, the finite difference method allows flexibility in mesh design, accommodating complex geometries by adapting grid sizing to balance between stability, convergence, and computational cost, making it suitable for engineering applications that often require dealing with irregular domains .

Numerically solving the wave equation for vibrating strings is critical in understanding resonant frequencies, mode shapes, and dynamic responses of mechanical systems—a core component of mechanical and civil engineering for structures like bridges, cables, or guitar strings. The implications involve accurately simulating boundary conditions and initial states, as these direct the system's natural frequencies and how energy propagates and dissipates through the string . Numerical methods such as finite difference schemes must address stability (CFL conditions) and accurately approximate these propagation dynamics, considering material properties and tension that influence the wave speed . Discretization errors and time-stepping strategies must be managed to ensure convergence and avoid numerical artifacts, which can misrepresent vibrational characteristics . These analyses inform engineering designs to avoid resonance, ensure safety, and optimize performance under varied operating conditions .

Newton's interpolation, through both forward and backward formulations, provides powerful techniques for constructing polynomials that approximate functions based on discrete data points. This is valuable in practical engineering problems where data might be obtained from experiments or simulations, and an exact function is unknown . It enables engineers to predict values between measured points, construct control curves, or estimate derivatives and integrals (e.g., in finite element analysis or control system design where system responses are needed between measured operating points). The approach effectively handles unequally spaced data and allows incremental addition of new data without a complete recomputation, which enhances flexibility and computational efficiency .

When numerically solving Laplace's equation, uxx + uyy = 0, which is homogeneous, the primary focus is on employing techniques like finite difference methods or relaxation methods that involve boundary conditions without source terms . The iterative approaches (e.g., Jacobi or Gauss-Seidel) often utilize a uniform grid and rely heavily on the convergence dictated by boundary conditions . Conversely, Poisson's equation, uxx + uyy = −81xy, includes a non-homogeneous term, which necessitates accommodating an additional source term in computation. Handling these source terms usually requires alterations to the system of equations, affecting the convergence and stability properties of iterative solvers . Consequently, the choice of discretization strategy for the source term can have a substantial impact on the numerical accuracy and efficiency for each equation type .

You might also like