Lite / Independent Engineering Research / Term 1 worksheet
Worksheet: Independent Engineering Research, term 1
Name: Date:
Week 1: Vectors, combinations and span
1. a₁ = (1, 0.5) and a₂ = (2, 1). What is their span?
- The whole plane
- The line through the origin in direction (2, 1)
- Just the two points
2. Which statement about A·x is always true?
- A·x is a combination of the rows of A
- A·x is a combination of the columns of A with weights x
- A·x has as many entries as x
3. Find x₂ so that x₁(1, 1) + x₂(1, −1) = (5, 1).
Answer:
4. Which set is linearly dependent?
- (1, 0), (0, 1)
- (1, 2), (3, 6)
- (1, 1), (1, −1)
5. u(t) and w(t) both solve the linear ODE x″ + 4x = 0. Which also solves it?
- u + w only if u = w
- 3u − 2w
- u·w
Week 1: Writing engineering problems as Ax = b
1. For the circuit in the lesson (3I₁ − I₂ = 2, −I₁ + 2I₂ = 3), what is I₂ in amperes?
Answer: A
2. A frame has 3 unknown member forces at a planar joint. How many independent force-balance equations does that joint give?
- 1
- 2
- 3
3. Solve −x₁ + x₂ = -3 and 2x₁ + x₂ = -6. What is x1?
Answer:
4. Solve A·x = b with A = [[0, 2, 3], [4, 0, 1], [1, -3, 1]] and b = (-8, 4, 13). What is x1?
Answer:
5. Your solver returns x with residual ‖b − Ax‖ ≈ 10⁻¹⁴. What have you shown?
- That the physical model is correct
- That x solves the equations you wrote, to rounding error
- That the answer has 14 correct digits
Week 1: Rank: one, none or infinitely many
1. After elimination a 3×3 system ends with the row (0 0 0 | 0). Rank A = 2. What can you say?
- No solution
- Exactly one solution
- Infinitely many solutions (one free variable)
2. Elimination ends with the row (0 0 0 | 4). What does this mean?
- No solution
- x₃ = 4
- Infinitely many solutions
3. A 4×6 matrix has rank 3. What is the dimension of its null space?
Answer:
4. Find det A for A = [[3, 4], [6, 0]].
Answer:
5. A square matrix has det A = 0. Which is true?
- Ax = b has a unique solution for every b
- Ax = b has either no solution or infinitely many
- A has rank n
6. Solve A·x = b with A = [[3, 2, 2], [-1, 1, -2], [1, 0, -1]] and b = (6, 4, 4). What is x1?
Answer:
Week 2: Gaussian elimination, back substitution and LU
1. In A = [[2, 1, −1], [−3, −1, 2], [−2, 1, 2]], what multiplier ℓ₂₁ clears the (2, 1) entry?
Answer:
2. Solve A·x = b with A = [[-2, 3, -2], [-2, 3, 4], [-3, 4, -3]] and b = (-11, 7, -15). What is x3?
Answer:
3. Why does partial pivoting help?
- It makes the matrix symmetric
- It keeps multipliers at most 1 in size, limiting round-off growth
- It reduces the operation count from n³ to n²
4. You have A = LU. A new right-hand side b′ arrives. What do you do?
- Factorise again
- Forward-substitute Ly = b′, then back-substitute Ux = y
- Compute A⁻¹ first
5. Factorising costs about (2/3)n³ operations. Roughly how many times longer does n = 2000 take than n = 1000?
Answer:
Week 2: Matrix multiplication as composition
1. A = [[-4, 1], [5, 5]] and B = [[-2, 2], [3, 0]]. What is the entry in row 2, column 1 of the product AB?
Answer:
2. To apply A first and then B to a vector x, you compute…
- ABx
- BAx
- Either: they are equal
3. A is 3×2 and B is 2×4. What size is AB?
- 2×2
- 3×4
- It is undefined
4. Which equals (AB)ᵀ?
- AᵀBᵀ
- BᵀAᵀ
- BA
5. A = [[0, -4, 2], [1, 0, 0], [-3, -3, -3]] and B = [[0, -4, -2], [3, 4, 1], [5, -4, 0]]. What is the entry in row 3, column 1 of the product AB?
Answer:
Week 2: Inverses: undoing a linear map
1. A = [[2, -5], [1, 6]]. What is the entry in row 2, column 1 of A⁻¹? (Give a decimal.)
Answer:
2. Which matrix has no inverse?
- [[1, 2], [3, 4]]
- [[2, 6], [1, 3]]
- [[0, 1], [1, 0]]
3. What is (AB)⁻¹?
- A⁻¹B⁻¹
- B⁻¹A⁻¹
- (BA)⁻¹
4. A = [[-1, 3], [4, 6]]. What is the entry in row 1, column 2 of A⁻¹? (Give a decimal.)
Answer:
5. A colleague computes x = inv(A) * b for a 5000×5000 system. Best advice?
- Fine: that is the standard method
- Use solve(A, b) (LU): cheaper and more accurate
- Use Cramer's rule
Week 3: Rotation, shear, stretch and projection
1. A sends î to (2, 0) and ĵ to (0, 3). What is A?
- [[2, 0], [0, 3]]
- [[2, 3], [0, 0]]
- [[0, 2], [3, 0]]
2. [[1, 0], [0, −1]] is a…
- Rotation by 180°
- Reflection in the x-axis
- Projection
3. For the rotation by 60°, what is the (2, 1) entry (sin 60°)?
Answer:
4. P projects onto a line. What is P³?
- 0
- P
- I
5. A = [[0, -4, 2], [1, 0, 0], [-3, -3, -3]] and B = [[0, -4, -2], [3, 4, 1], [5, -4, 0]]. What is the entry in row 3, column 1 of the product AB?
Answer:
Week 3: The determinant as area scaling
1. Find det A for A = [[-4, 1, 6], [6, -1, 2], [3, 0, 6]].
Answer:
2. A maps the unit square to the parallelogram with sides (3, 1) and (1, 2). What is its area?
Answer:
3. det A = 4 and det B = −0.5. What is det(AB)?
Answer:
4. Swapping two rows of A does what to det A?
- Nothing
- Flips its sign
- Sets it to zero
5. A two-link planar arm has det J = L₁L₂ sin θ₂. When is it singular?
- When θ₁ = 0
- When θ₂ = 0° or 180°
- Never, if the links are long enough
Week 3: Module check: the Jacobian as a linear map
1. L₁ = 0.5 m, L₂ = 0.4 m, θ₂ = 30°. What is det J (in m²)?
Answer: m²
2. A = [[-3, 4], [-3, -3]]. What is the entry in row 2, column 2 of A⁻¹? (Give a decimal.)
Answer:
3. Solve −x₁ + x₂ = -3 and 2x₁ + x₂ = -6. What is x1?
Answer:
4. At θ₂ = 180° (folded back), the rank of J is…
- 2
- 1
- 0
5. Why do controllers avoid poses where det J is small but not zero?
- The arm becomes heavier
- J⁻¹ has huge entries, so small hand moves need huge joint speeds
- The forward kinematics stops working
6. Find det A for A = [[3, 3, -1], [1, -3, 1], [0, -2, 4]].
Answer:
Week 4: Eigenvectors: the directions that survive
1. Is (1, 1) an eigenvector of [[3, 1], [1, 3]]?
- Yes, with λ = 4
- Yes, with λ = 3
- No
2. Why does a 90° rotation have no real eigenvectors?
- Its determinant is zero
- It turns every non-zero vector by 90°, so none stays on its line
- It is not a linear map
3. A has an eigenvalue 0. What follows?
- A is the zero matrix
- A is singular (det A = 0)
- A is symmetric
4. Find the smaller eigenvalue of the symmetric matrix A = [[0, 2], [2, 3]].
Answer:
5. v is an eigenvector of A with λ = 0.5. What is the length of A⁴v if ‖v‖ = 16?
Answer:
Week 4: 2×2 eigenvalues by hand
1. A = [[2, 0], [6, -4]]. Find its smaller eigenvalue.
Answer:
2. Find the larger eigenvalue of the symmetric matrix A = [[-3, -3], [-3, 5]].
Answer:
3. A = [[-1, 0], [0, 1]]. Find its larger eigenvalue.
Answer:
4. A 2×2 matrix has tr = 2 and det = 5. Its eigenvalues are…
- Two distinct real numbers
- A repeated real number
- A complex-conjugate pair
5. What is the larger eigenvalue of [[3, 7], [0, −1]]?
Answer:
6. You computed eigenvalues 4 and −1 for [[1, 2], [3, 2]]. Quick check?
- Sum 3 = tr ✓, product −4 = det ✓
- Sum 3 ≠ tr, so wrong
- There is no quick check
Week 4: Stability of x[k+1] = A·x[k]
1. Eigenvalues 0.5 and 0.99. Stable?
- Yes, but the 0.99 mode decays slowly
- No
- Only if the start is along the 0.5 eigenvector
2. A = [[-11, -8], [16, 13]]. Find its smaller eigenvalue.
Answer:
3. A mode has λ = 0.9. About how many steps until it falls to half its size? (Round to the nearest step.)
Answer:
4. Eigenvalues 0.6 ± 0.9i. Stable?
- Yes: the real part 0.6 is below 1
- No: |λ| = √(0.36 + 0.81) ≈ 1.08 > 1
- Cannot tell without eigenvectors
5. x′ = Ax has eigenvalues −2 and −0.1. Is it stable?
- Yes: both real parts are negative
- No: |−2| > 1
- Only if the sampling is fast
Week 5: Conditioning: when small errors become big ones
1. What is κ of the diagonal matrix diag(10, 0.1) in the 2-norm?
Answer:
2. κ = 500, relative error in b is 0.002 (0.2%). What is the worst-case relative error in x?
Answer:
3. Which matrix is closest to singular in the sense that matters numerically?
- 0.001·I (2×2)
- [[1, 1], [1, 1.001]]
- [[2, 0], [0, 3]]
4. Working with about 16 significant digits and κ = 10⁹, roughly how many digits of x can you trust?
Answer:
5. A calibration matrix has κ = 10⁷. What actually helps?
- Use a more accurate solver
- Redesign the measurements so the columns are less alike
- Round the answer to fewer digits
Week 5: Power iteration: eigenvalues by repetition
1. Run 3 steps of power iteration on A = [[4, 2], [2, 0]] from x₀ = (1, 0), normalising each time. What is the Rayleigh-quotient estimate xᵀAx / xᵀx of the dominant eigenvalue after step 3?
Answer:
2. Run 1 step of power iteration on A = [[1, 1], [1, 4]] from x₀ = (1, 0), normalising each time. What is the Rayleigh-quotient estimate xᵀAx / xᵀx of the dominant eigenvalue after step 1?
Answer:
3. With |λ₂/λ₁| = 0.5, about how many steps reduce the unwanted component by a factor of 10⁶? (Nearest whole step.)
Answer:
4. Power iteration on [[0, 1], [1, 0]] from (1, 0) does what?
- Converges to (1, 1)/√2
- Flips between (1, 0) and (0, 1) for ever
- Converges to zero
5. To find the smallest-magnitude eigenvalue, you…
- Run power iteration on A for longer
- Run power iteration on A⁻¹ (solving with LU each step)
- Use the trace
Week 5: Least squares and the normal equations
1. Fit y = m·x + c by least squares to the points (0, 1.3), (1, 1.8), (2, 1.8), (3, 2.6), (4, 3.2). What is the slope m?
Answer:
2. Fit y = m·x + c by least squares to the points (0, 0.3), (1, -0.3), (2, -1.2), (3, -2.8). What is the intercept c?
Answer:
3. At the least-squares solution, the residual vector r satisfies…
- r = 0
- Aᵀr = 0
- ‖r‖ = 1
4. Which model can be fitted by linear least squares directly?
- y = a·sin(ωt) with unknown ω
- y = a + b·t + c·t²
- y = a·e^{bt} without taking logs
5. One reading is wildly wrong. What happens to the least-squares line?
- Nothing: one point cannot matter
- It is pulled noticeably towards the outlier
- The fit fails to compute
Week 6: Linear ODEs you can solve by hand
1. A mass–spring–damper has m = 2 kg, k = 8 N/m, c = 4 N·s/m. What is its damping ratio ζ?
Answer:
2. A sensor obeys dx/dt = −4x (t in seconds). What is its time constant?
Answer: s
3. A mass–spring–damper has m = 1 kg, k = 32 N/m, c = 4 N·s/m. What is its damping ratio ζ?
Answer:
4. m = 0.5 kg, k = 200 N/m. What is ω_n in rad/s?
Answer: rad/s
5. For m = 1 kg and k = 9 N/m, what damping gives critical damping?
- c = 3
- c = 6
- c = 9
Week 6: Mass–spring systems in state space
1. For m x″ + c x′ + k x = F(t), which state vector works?
- (x, F)
- (x, x′)
- (x′, x″)
2. tr A = −1, det A = 2. The origin is a…
- Stable node
- Stable spiral
- Saddle
3. A = [[-1, 0], [0, 1]]. Find its larger eigenvalue.
Answer:
4. In state space, m = 2 kg and c = 3 N·s/m. What is tr A?
Answer:
5. A linearised model has a saddle at its equilibrium. Practically, this means…
- It is stable
- Almost every small disturbance grows: unstable
- It oscillates for ever
Week 6: Module check: modal analysis of two masses
1. Two equal masses m = 2 kg sit between walls: wall–k–m–k_c–m–k–wall with k = 2 N/m and coupling k_c = 4 N/m. What is the lower natural frequency ω, in rad/s?
Answer: rad/s
2. Two equal masses m = 0.5 kg sit between walls: wall–k–m–k_c–m–k–wall with k = 16 N/m and coupling k_c = 1 N/m. What is the higher natural frequency ω, in rad/s?
Answer: rad/s
3. In the higher-frequency mode of two equal masses, the masses…
- Move together
- Move in opposition
- Do not move
4. ω₁ = 1.00 rad/s and ω₂ = 1.10 rad/s. What is the beat period 2π/(ω₂ − ω₁) in seconds?
Answer: s
5. Find the smaller eigenvalue of the symmetric matrix A = [[5, -4], [-4, 0]].
Answer:
6. A motor runs at 9.5 rad/s. The structure's modes are at 3 and 10 rad/s. What is the concern?
- None: 9.5 is not exactly 10
- Near-resonance with the 10 rad/s mode, especially if lightly damped
- The 3 rad/s mode, because it is lower
Week 7: Euler, semi-implicit Euler and RK4
1. For dy/dt = -0.5y + 2 with y(0) = 1, take one explicit Euler step of size h = 0.2. What is y₁?
Answer:
2. For dy/dt = -2y with y(0) = 3, take one classical RK4 step with h = 0.1. What is y₁? (4 decimal places.)
Answer:
3. Explicit Euler on x″ = −x with h = 0.05: by what factor does the energy grow per step?
Answer:
4. Why might a long satellite-orbit simulation use a symplectic method instead of RK4?
- It is more accurate per step
- Its energy error stays bounded over very long times
- It needs no step size
5. For dy/dt = 0.5y + 1 with y(0) = 2, take one explicit Euler step of size h = 0.05. What is y₁?
Answer:
6. With the same number of function evaluations, which is usually more accurate on smooth problems?
- Euler with step h
- RK4 with step 4h
- They are always equal
Week 7: Local and global error, and the convergence study
1. With step h, the midpoint method (global order 2) gives a global error of 0.0032. Predict the error with step h/2.
Answer:
2. Explicit Euler has global error order 1. By what factor should the global error shrink when h is reduced to h/4?
Answer:
3. E(h) = 0.032 and E(h/2) = 0.0021. What is the observed order p = log₂(E(h)/E(h/2))? (2 d.p.)
Answer:
4. A method's local error is O(h³). Its global error is…
- O(h³)
- O(h²)
- O(h⁴)
5. Your 'RK4' shows observed order 1.0 on a smooth test. Most likely?
- RK4 is first order
- A bug in the stages, e.g. a wrong time or state in k₂–k₄
- The step is too small
Week 7: Stability regions and stiffness
1. Explicit Euler is applied to dy/dt = −50y. What is the largest step h for which the numerical solution does not grow (|1 + hλ| ≤ 1)?
Answer: s
2. Explicit Euler is applied to dy/dt = −5y. What is the largest step h for which the numerical solution does not grow (|1 + hλ| ≤ 1)?
Answer: s
3. Euler on y′ = −50y with h = 0.05. What is R = 1 + hλ?
Answer:
4. Which system is stiff (if we care about the slow behaviour)?
- Eigenvalues −1 and −2
- Eigenvalues −0.1 and −10⁴
- Eigenvalues ±i
5. Why can backward Euler take large steps on y′ = −1000y?
- It is fourth order
- R(z) = 1/(1 − z) has |R| < 1 for all z < 0
- It skips the fast mode
6. For dy/dt = 1y with y(0) = 2, take one classical RK4 step with h = 0.5. What is y₁? (4 decimal places.)
Answer:
Week 8: Models from first principles, and non-dimensionalising
1. A mass–spring–damper has m = 2 kg, k = 8 N/m, c = 4 N·s/m. What is its damping ratio ζ?
Answer:
2. Which equation is dimensionally consistent (x in m, t in s, k in N/m, m in kg)?
- m x″ + k x = 0
- m x″ + k x′ = 0
- x″ + k x = 0
3. Your damped oscillator code with c = 0 shows energy slowly falling. What should you suspect first?
- The physics: springs lose energy
- The integrator or a sign/term error, since c = 0 must conserve energy
- Nothing: that is expected
4. A model has 6 variables involving 3 independent dimensions (mass, length, time). How many dimensionless groups?
Answer:
5. Two equal masses m = 4 kg sit between walls: wall–k–m–k_c–m–k–wall with k = 4 N/m and coupling k_c = 1 N/m. What is the lower natural frequency ω, in rad/s?
Answer: rad/s
Week 8: Fitting and validating a model against data
1. Fit y = m·x + c by least squares to the points (0, 1.3), (1, 1.8), (2, 1.8), (3, 2.6), (4, 3.2). What is the slope m?
Answer:
2. A ln(peak) fit gives slope −0.5 s⁻¹ and ω_n = 10 rad/s. What is ζ?
Answer:
3. Which is the best evidence that your fitted model is useful?
- Tiny residuals on the fitting data
- Small prediction error on a separate recording
- A very complicated model
4. ln(peak) residuals curve upwards at late times. A plausible explanation?
- Perfect linear damping
- Damping that is not proportional to speed (for example dry friction or amplitude-dependent losses)
- Random noise only
5. Fit y = m·x + c by least squares to the points (0, 0.1), (1, 2), (2, 4), (3, 6), (4, 7.8), (5, 9.7). What is the slope m?
Answer:
Week 8: Linearising nonlinear models
1. Hanging pendulum, linearised: J = [[0, 1], [−9, −0.6]]. Classify.
- Stable spiral
- Saddle
- Unstable node
2. A = [[-11, -8], [16, 13]]. Find its smaller eigenvalue.
Answer:
3. Upright pendulum, undamped, g/L = 9 s⁻². What is the positive eigenvalue of J = [[0, 1], [9, 0]]?
Answer:
4. For which angle is sin θ ≈ θ least trustworthy?
- 5°
- 10°
- 45°
5. Linearisation gives a centre. What can you conclude about the nonlinear system?
- It definitely oscillates for ever
- Nothing definite: nonlinear terms decide
- It is unstable
Week 9: Designing a modal and numerical investigation
1. Two equal masses m = 2 kg sit between walls: wall–k–m–k_c–m–k–wall with k = 2 N/m and coupling k_c = 4 N/m. What is the lower natural frequency ω, in rad/s?
Answer: rad/s
2. Which metric is most directly comparable with the analytic modal solution?
- How smooth the plot looks
- Relative error in the measured beat period or natural frequency
- Run time on your laptop
3. Why fix the decision rule before running the simulations?
- It is a formality
- It prevents choosing the metric that flatters a preferred method after seeing results
- It makes the code faster
4. With step h, the midpoint method (global order 2) gives a global error of 0.4. Predict the error with step h/4.
Answer:
5. Which is an assumption of the two-mass model, not a result?
- ω₂ > ω₁
- The springs obey Hooke's law exactly
- The mode shapes are (1, 1) and (1, −1) for equal masses
Week 9: Convergence and sensitivity studies
1. With step h, the midpoint method (global order 2) gives a global error of 0.0032. Predict the error with step h/2.
Answer:
2. Equal masses m = 1 kg, k = 1 N/m, k_c = 0.1 N/m. What is the relative sensitivity k_c/(k + 2k_c) of ω₂ to k_c? (3 d.p.)
Answer:
3. Two equal masses m = 1 kg sit between walls: wall–k–m–k_c–m–k–wall with k = 8 N/m and coupling k_c = 4 N/m. What is the lower natural frequency ω, in rad/s?
Answer: rad/s
4. Which should you do first?
- Sensitivity study, then convergence
- Convergence study, then sensitivity
- Either: they measure the same thing
5. A convergence study shows the frequency is converged to 0.01%. What does that NOT tell you?
- That the step size is adequate
- That the springs in the real device are linear
- That the integrator works on this problem
Week 9: Term assessment: reporting a computational study
1. Which sentence over-claims?
- Our model predicts a beat period of 65.8 s for k_c = 0.1 N/m
- This proves real two-mass machines beat every 65.8 s
- The beat period was converged to 0.1% at h = 0.05 s
2. What must a good figure caption include?
- Only the title
- What is plotted, key parameters and the take-away
- A paragraph of background theory
3. With step h, the midpoint method (global order 2) gives a global error of 0.0032. Predict the error with step h/4.
Answer:
4. Two equal masses m = 1 kg sit between walls: wall–k–m–k_c–m–k–wall with k = 8 N/m and coupling k_c = 6 N/m. What is the lower natural frequency ω, in rad/s?
Answer: rad/s
5. Which practice best supports reproducibility?
- Editing numbers in the final table by hand
- One script per figure, with parameters and versions recorded
- Keeping only the final plots
6. For dy/dt = 1y with y(0) = 2, take one classical RK4 step with h = 0.5. What is y₁? (4 decimal places.)
Answer: