Paper: Kenya National Examinations Council (KNEC), Diploma in Electrical and Electronic Engineering, Module III — Engineering Mathematics III, June/July 2023 (paper codes 2521/303, 2601/303, 2602/303 and 2603/303).
This revision lesson presents all eight questions from the supplied four-page paper with independently prepared worked solutions. The examination asks candidates to answer any five. These explanations are study notes, not an official KNEC marking scheme; use the source scan to check notation where needed.
Question 1: Complex variables
1(a) Exponential function and Cauchy–Riemann equations
Question. Given f(z)=ez+1, where z=x+jy, express f(z) as u+jv and show that u and v satisfy the Cauchy–Riemann equations.
Worked answer.
Both Cauchy–Riemann equations hold.
1(b) Harmonic function and conjugate
Question. For u(x,y)=xy³−x³y, show that u is harmonic and find a conjugate harmonic function v(x,y) such that f(z)=u+jv is analytic.
Worked answer.
v(x,y)=x⁴/4−(3/2)x²y²+y⁴/4+C. Equivalently, f(z)=jz⁴/4 plus an arbitrary complex constant.
1(c) Image of a circle under w=1/z
Question. Under the transformation w=1/z, determine the centre and radius of the image of |z−1/2|=1.
Worked answer.
The image circle has centre (−2/3,0) and radius 4/3.
Question 2: Matrices and state-transition matrices
2(a) Eigenvalues and eigenvectors
Question. For A=[[-4,2],[2,−4]], find its eigenvalues and corresponding eigenvectors.
Worked answer.
Nonzero scalar multiples are also valid.
2(b) Linear system and transition matrix
Question. The system is di₁/dt=2i₁ and di₂/dt=−3i₂. Write it as dI/dt=CI for I=[i₁,i₂]ᵀ, then determine the state-transition matrix φ(t).
Worked answer.
Question 3: Vector calculus
3(a) Work along a space curve
Question. For F=3x²i+2xzj+zk and the curve x=2t², y=t, z=4t²−t, 0≤t≤1, find the work done.
Worked answer.
3(b) Conservative field and potential
Question. Show that F=y²cos(x)i+2y sin(x)j is conservative and find its scalar potential φ(x,y).
Worked answer.
3(c) Green’s theorem
Question. Use Green’s theorem to evaluate ∮C(−y³dx+x³dy), where C bounds the region between the x-axis and the upper half of x²+y²=1.
Worked answer.
Therefore the line integral is 3π/4.
Question 4: Newton–Raphson and interpolation
4(a) Newton–Raphson method
Question. For x³+5x²−28=0, show that xn+1=(2xn³+5xn²+28)/(3xn²+10xn). Starting with x₀=1, find the root to four decimal places.
Worked answer.
4(b) Newton–Gregory interpolation
Question. For x=0,1,2,3,4,5 and f(x)=4,9,32,85,180,329, use Newton–Gregory interpolation to find f(0.5) and f(4.5), correct to three decimal places.
| x | 0 | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|---|
| f(x) | 4 | 9 | 32 | 85 | 180 | 329 |
| Δf | 5 | 23 | 53 | 95 | 149 | |
| Δ²f | 18 | 30 | 42 | 54 | ||
| Δ³f | 12 | 12 | 12 |
For x=0.5, use the forward formula with u=0.5: f=4+5u+18u(u−1)/2+12u(u−1)(u−2)/6=5.000. For x=4.5, the backward formula with u=−0.5 gives f=329+149u+54u(u+1)/2+12u(u+1)(u+2)/6=247.000.
Question 5: Multiple integration
5(a) Integral over an elliptical region
Question. Evaluate ∬Rxy dy dx, where R is the first-quadrant region enclosed by 9x²+4y²=36.
Worked answer.
5(b) Area between two curves
Question. Sketch the region bounded by y=3x−x² and y=x, then determine its area using double integration.
Worked answer.
Between them the parabola is above the line.
5(c) Volume in the first octant
Question. Find the volume bounded by x=4−y² and the planes z=y, x=0 and z=0 in the first octant.
Worked answer.
Question 6: Fourier series
6(a) Fourier sine series of a triangular voltage
Question. The graph of v(t) rises linearly from (0,0) to (π/2,π), then falls to (π,0). Give an analytical description, sketch its odd extension and find its Fourier sine series on 0<t<π.
Worked answer.
Extend oddly to −π<t<0 and then periodically with period 2π.
v(t)=(8/π)∑k=0∞(−1)ᵏ sin((2k+1)t)/(2k+1)².
6(b) Fourier series of a periodic piecewise function
Question. For the period-4 function h(x)=−1 on −2≤x≤0 and h(x)=x on 0≤x≤2, determine its Fourier series.
Worked answer.
The average is a₀=0.
h(x)=∑n=1∞[2((−1)ⁿ−1)/(n²π²) cos(nπx/2)+(1−3(−1)ⁿ)/(nπ) sin(nπx/2)].
At jump points, the Fourier series converges to the midpoint of the left and right limits.
Question 7: Surface integrals and Stokes’ theorem
7(a) Flux across a plane
Question. Evaluate ∬SA·n ds for A=xyi−y²j+zk, where S is the part of x+y+z=1 in the first octant.
Worked answer.
For the outward orientation, the vector area element is (1,1,1)dxdy. The integrand is xy−y²+z.
7(b) Verify Stokes’ theorem
Question. Verify Stokes’ theorem for A=2yi+3xj−z²k on the upper hemisphere x²+y²+z²=9, whose boundary is C.
Worked answer.
Its flux through the upper hemisphere equals the area of its projection onto the radius-3 disk: 9π.
Both sides are 9π.
Question 8: Eigenvalues and Fourier cosine series
8(a) Construct a matrix from eigenpairs
Question. A 2×2 matrix M has eigenvalues λ₁=−2 and λ₂=7 with eigenvectors v₁=(1,−1)ᵀ and v₂=(4,5)ᵀ. Determine M.
Worked answer.
8(b) Half-range cosine series and odd-square identity
Question. Sketch the even extension of f(t)=1+t on 0<t<1 and find its Fourier cosine series. By setting t=0, show that π²/8=∑n=1∞1/(2n−1)².
Worked answer.
f(t)=3/2−(4/π²)∑k=0∞cos((2k+1)πt)/(2k+1)². At t=0, 1=3/2−(4/π²)∑k=0∞1/(2k+1)², which gives the required identity.
Revision note
Use the question numbers to compare these solutions with the June/July 2023 KNEC Engineering Mathematics III paper. The answers are independently prepared learning notes and are not an official KNEC marking scheme.