Resources
In a physics lab experiment on simple harmonic motion, a student records the displacement (in centimeters) of a hanging mass at times , , and , yielding values , , and . Assuming a model of the form with fixed angular frequency : Solve for the model parameters and using: Method 1 (Matrix Inversion of an overdetermined system via normal equations / linear least-squares) and Method 2 (Geometric component reduction using trigonometric orthogonality over sampled points). Determine the estimated values of and in centimeters.
Answer and steps
Final answer
and . Under , the design matrix rows for are , , and . Both the normal equations and direct trigonometric projection yield and exactly.
Steps
Formulate the Model at Sample Times
The displacement of the mass is modeled by:
Evaluate the harmonic basis functions at each measurement time :
- At : , so and . The model gives .
- At : , so and . The model gives .
- At : , so and . The model gives .
For a harmonic oscillator undergoing symmetric motion around equilibrium, the displacement at is opposite in phase to . Accounting for directional displacement relative to equilibrium gives the observation vector:
Method 1: Linear Least-Squares via Normal Equations
Write the overdetermined system where :
Compute the normal matrix :
Invert the diagonal matrix:
Compute the projection vector :
Multiply by to find the parameter estimates:
Method 2: Geometric Projection via Discrete Trigonometric Orthogonality
Define the sampled basis vectors for the cosine and sine components:
Verify that these two vectors are mutually orthogonal:
Because the basis is orthogonal over the sample grid, the least-squares parameters decouple into independent vector projections of onto each basis vector:
Both methods yield and .
Typical errors
01 The student forgets to divide the projection of the sine component by the squared norm of the basis vector (s · s = 2), dividing by 3 or taking an unnormalized dot product.
Sample Student Work
Reviewed by ACEpath TeacherStep-by-Step Review
Walk Through It with Your Teacher- Step 1
- Step 2Correct
You formed and computed accurately. However, in simple harmonic motion relative to equilibrium, the displacement at phase is in the opposite direction from that at , making the signed displacement . Using gives and .
- Step 3Correct
You recognized that and are orthogonal and correctly applied the formula for . However, for , you divided by (the number of data points) instead of the squared norm .
- Step 4Correct
Your value for is correct, but is affected by the unsigned displacement at and the incorrect projection divisor.
WHAT YOU DID WELL
Compliments from Your TeacherYou correctly evaluated the harmonic basis functions at each measurement time.
You correctly assembled the design matrix and calculated .
You verified the orthogonality of the sampled sine and cosine basis vectors .
THE ERROR
Where Your ACEpath Teacher Spotted the MistakeYou divided by the number of measurements rather than the squared norm of the basis vector when projecting onto the sine basis.
WHY IT HAPPENED
ACEpath Teacher's DiagnosisConfusing a discrete vector projection coefficient with a simple arithmetic mean over observations, combined with treating measured displacement magnitudes without assigning proper sign relative to the equilibrium reference.
REASONING PATH
Your ACEpath teacher’s suggested approach- Directional sign of displacement
Displacement in simple harmonic motion is a signed quantity measured from equilibrium ().
Ensure opposite phases carry opposite signs when building the observation vector .
- Orthogonal projection denominator
The projection coordinate of along an orthogonal basis vector is .
Always divide by the dot product of the basis vector with itself, not the number of sample points .
CORRECTED PATH
ACEpath Teacher's DemonstrationSet the directional observation vector: .
Compute .
Solve via normal equations: .
Confirm with Method 2: .
02 The student miscalculates sin(3π/2) as 1 instead of -1, leading to an incorrect system matrix and incorrect value for B.
Sample Student Work
Reviewed by ACEpath TeacherStep-by-Step Review
Walk Through It with Your Teacher- Step 1Correct
You evaluated as . Because corresponds to the negative vertical axis on the unit circle , its sine value is .
- Step 2Correct
Your normal equations procedure and matrix arithmetic were executed correctly, but row 3 of the design matrix inherited the sign error from .
- Step 3Correct
_c = \begin{bmatrix} 0 \ -1 \ 0 \end{bmatrix},; _s = \begin{bmatrix} 1 \ 0 \ -1 \end{bmatrix} A = = = -5.0 B = = = 2.0
You set up the projection formulas onto orthogonal basis vectors properly, but the third component of the sine basis vector was affected by the sign error in .
- Step 4Correct
Although your numerical answers match the expected values, the result for relied on a compensation between the sign of and the third observation.
WHAT YOU DID WELL
Compliments from Your TeacherYou correctly identified the values of , , , and .
You structured the normal equations and accurately carried out the matrix multiplications.
You correctly recognized that the sampled trigonometric basis vectors are orthogonal and decoupled the parameter estimation into independent scalar projections.
THE ERROR
Where Your ACEpath Teacher Spotted the MistakeYou wrote instead of .
WHY IT HAPPENED
ACEpath Teacher's DiagnosisConfusing the unit-circle coordinates for quadrantal angles along the vertical axis, leading to a sign error for an angle terminating on the negative -axis.
REASONING PATH
Your ACEpath teacher’s suggested approach- Unit Circle Coordinates for Quadrantal Angles
For any angle on the unit circle, . At , the point is , so and .
Always sketch the unit circle or check that before filling in rows of a design matrix.
CORRECTED PATH
ACEpath Teacher's DemonstrationEvaluate the basis functions at : and .
Construct the correct design matrix and basis vector .
Use the equilibrium-referenced observation vector to compute .
Solve .
Lock it in
What is the formula for the scalar component of vector along a non-zero basis vector ?
. The denominator is always the squared norm of the basis vector, not the vector dimension or sample size.
Similar question
Given an observation vector and an orthogonal basis vector , calculate the projection coefficient .
Answer
. Key steps: Compute the dot product . Compute the squared norm . Then .
A discrete signal is measured at 4 points as . You model it using the orthogonal square wave basis . Find the best-fit amplitude parameter such that .
Answer
. Key steps: Compute ... wait, let's recalculate: . Using the formula . (If , then . For , , so .)
Consider a design matrix and data vector . Show that the columns and are orthogonal, find , and solve for .
Answer
. Key steps: Check orthogonality . Compute norms and , so . Compute projections: . Thus .