For the small QR decomposition, each of the Givens rotations eliminates one subdiagonal entry of the upper Hessenberg matrix. At column , apply the rotation to two rows in columns , costing arithmetic operations. Summing gives , and applying the rotations to the right-hand side costs . Backward substitution in a triangular system costs .
Computing costs and the final dense matrix multiplication costs . Thus the total, with the Arnoldi decomposition already supplied, is
Here , since has orthonormal columns in . In the standard dense arithmetic model, forming the general matrix–vector product gives the sharp cost. The pair above records that two-parameter bound; looser bounds such as are also possible because . Treating as an unstructured dense matrix would unnecessarily replace its factorization by an computation.
Under the permitted singular value bounds, gives
For the symmetric positive-definite matrix in part (iii), its eigenvalues are the squared singular values of , so
Apply the supplied conjugate gradient convergence bound to . For and nonzero , the function increases with , giving
Thus the error in this weighted norm contracts at a guaranteed exponential factor of at most per iteration, up to the prefactor . Here . The Pythagorean identity in part (iii) also identifies with the excess squared linear least-squares problem objective, which consequently decreases by a bound proportional to . For the Euclidean norm, the same eigenvalue bounds give .
For relative accuracy in the -weighted norm, it is sufficient to take
Compute once in operations. Each iteration applies with two dense matrix multiplications and uses further arithmetic operations; when this costs . Hence the total cost is
Using finite termination of the conjugate gradient method in exact arithmetic refines this to . Explicitly constructing first would add setup work and is unnecessary. These accuracy estimates concern relative error; an absolute tolerance replaces by when . If , the initial guess already solves the problem.
As in part 2(b)(v), the Gaussian assumption alone does not make the printed singular value interval a certainty. For example, the event that every entry of has absolute value below a sufficiently small positive number has positive probability and forces , contradicting the asserted lower endpoint. The displayed rate is therefore conditional on the singular-value bounds authorized by the paper. The cost and convergence derivation are exact under that condition; an unconditional probabilistic statement would need an additional failure-probability estimate.
Write and . Since the supplied rotation matrix is real and orthogonal, . Direct matrix multiplication gives the flavor-basis Hamiltonian
The common term produces only an overall quantum phase. The off-diagonal elements couple the two interaction eigenstates in the Schrödinger equation. Flavor change requires both and . For ultrarelativistic neutrinos in vacuum, , so a nonzero squared-mass difference is needed. Observable neutrino oscillation also requires coherent production and propagation of the two components and a resolvable nonzero relative phase; special propagation times can return the initial flavor even when these Hamiltonian conditions hold.
A useful distinction for the next part is that is an energy, not a time-dependent survival probability amplitude. The latter is the element of .
Direct matrix multiplication gives
The normalized eigenvectors are , and the eigenvectors are , with eigenvalues in each case.
For , allowing for a possibly unnormalized input pair of coefficients,
For a normalized state . The second result follows because each squared Spin operator matrix equals .
The tilted component is . Its eigenvalues remain , with one real phase convention for the normalized eigenvectors
Projecting the initial onto them gives and . Thus
A smaller expectation does not imply a smaller individual spin eigenvalue; it describes the probabilities of the same two measurement outcomes.
Figure 1.
Rotating the measurement axis changes spin-half outcome probabilities rather than the outcome magnitudes
. Source. Details.
For an active clockwise rotation of column vectors in the usual oriented plane, take
Direct matrix multiplication gives
Thus the rotation matrix is an orthogonal matrix, preserving the Euclidean inner product, with determinant .
For a passive one-dimensional Lorentz boost, use rapidity , :
This is not unless . Hence a nontrivial Lorentz boost is not an orthogonal matrix for the Euclidean inner product. Instead it preserves the Minkowski metric:
by . Thus it is pseudo-orthogonal. The zero-rapidity identity is the explicit exception to the assertion that a Lorentz boost is not orthogonal.
The supplied matrix obeys
Separate the even and odd powers in the matrix exponential to obtain
It fixes the component and is a counterclockwise active rotation viewed from . This sign differs from the clockwise convention in b, because the source fixes the sign of both and the exponential. Replacing by yields the clockwise rotation.
With , the generators of rotations obey
The commutator measures the leading difference between performing two infinitesimal rotations in opposite orders. For example, with and ,
The failure to commute is itself an infinitesimal rotation about the perpendicular axis; the Lie algebra closes on the same three generators of rotations.
To pass from this local statement to the full group property, put . These are real antisymmetric matrices, with . The Baker--Campbell--Hausdorff formula shows locally that the logarithm of a product of their exponentials remains a linear combination of the , because all nested commutators do. Globally, each exponential has and . If have these properties, then
Every real three-dimensional orthogonal matrix of determinant has an eigenvector with eigenvalue : its nonreal eigenvalues come in conjugate pairs, and the product of all three is . On the perpendicular plane it acts as a two-dimensional rotation. It therefore has axis-angle form and can be written . Thus the product is again a rotation. The identity is , the inverse reverses , and associativity comes from matrix multiplication. This proves that all these rotations form the special orthogonal group . The commutator supplies local closure, while the orthogonality and axis-angle argument supplies the necessary global step.
With these matrices obey and , identifying the group as SU(1,1). Products preserve the displayed conjugate-entry pattern and determinant; the identity belongs, and
also belongs. Multiplication and inversion are smooth. The real constraint has nonzero gradient on its level set, so the matrices form a smooth real three-dimensional manifold. Associativity is inherited from matrix multiplication. These facts establish a Lie group, which is noncompact because is unbounded.
Let and use the two spin values as row and column labels. Define the spin-chain transfer matrix
It is a real symmetric matrix because ; every entry is strictly positive for finite bond energies at . The Boltzmann factor of a spin configuration factorizes into the product . Summing the intermediate spin labels is exactly matrix multiplication, and the final closure imposes periodic boundary conditions. Thus
Writing , its eigenvalues are
A positive-entry matrix need not have two positive eigenvalues; can be negative. The Perron–Frobenius theorem ensures here. Therefore the Helmholtz free energy is , and its value per spin in the thermodynamic limit is .
Group the nonzero modes into independent pairs . For one pair set , and introduce the Nambu spinor . Normal ordering using gives
This exactly contains both kinetic terms and the pairing terms once; there is no additional factor of one half because only is summed.
Insert , where and is the Bogoliubov transformation matrix. Direct matrix multiplication yields
Choose the diagonalizing branch
Then the off-diagonal terms vanish and the upper diagonal entry is . Extend the angle to negative momenta as in part b; the sine relation just written applies to the positive representative of each pair. The BCS coherence factors can be chosen as
Here denotes , and denotes ; these expressions are nonsingular because and . The minus sign of for positive is fixed by the pairing phase in this Hamiltonian.
A second use of the canonical anticommutation relations gives
The zero-momentum term was never paired and is simply . Hence
with
The constant is the ground-state energy. At fixed , its ultraviolet tail converges: in one dimension. Replacing by would incorrectly pair a spinless mode with itself.
Apply the transition matrix once and then again:
Therefore, in USA, Europe, Rest of World order and in trillions of dollars,
Each total remains ten, giving a quick check on the matrix multiplication.
The factor proves that one is an eigenvalue. To find its normalized eigenvector, solve . The second and third rows give
so . The normalization now gives
Its entries are nonnegative and sum to one, and direct matrix multiplication verifies . As a probability vector it is the stationary distribution; as resource shares it assigns half to the USA and a quarter to each other region.
Split a graph path of length at most into two consecutive parts of length at most , allowing a zero-length part. Conversely, concatenating two such parts gives a walk of length at most and hence the same reachability. Therefore
Start at , then square to obtain . Stop at equality of successive matrices, or after the length bound reaches . The invariant is now after squarings. Equality implies closure under composition, and the included identity matrix ensures reflexivity.
For the same elementary dense Boolean matrix multiplication and equality stopping test, the cost is
The additive constant covers the final stability check and the cases . Thus, with , the number of cubic passes falls from to . In terms of alone the worst-case bound improves from to for these implementations. A directed chain also requires logarithmically many squarings. This comparison uses ordinary triple-loop multiplication, rather than a faster matrix multiplication method.
Write the columns of as and the coordinates of the vector as . By the definition of matrix multiplication,
Indeed, its th coordinate is , exactly the th coordinate of this linear combination. Since the column space contains every linear combination of the columns, the claim holds for every vector .
Use and , followed by . These elementary row operations give
The elimination multipliers are , , . Record them in the unit lower triangular matrix :
To see the elementary matrix relation directly, let , and , where has a single 1 in position . Then , and reversing and inverting these operations gives . Direct matrix multiplication also verifies the stated LU decomposition.
For each source row, use a temporary dense array to accumulate contributions from nonzero pairs. For every stored , traverse stored entries in row of the other sparse matrix.
def mult(that: SparseMatrix): SparseMatrix = {
  require(N == that.N)
  val out = new SparseMatrix(N)
  for (i <- 0 until N) {
    val acc = Array.fill[Double](N)(0.0)
    for ((k, x) <- rows(i)) {
      for ((j, y) <- that.rows(k)) {
        acc(j) += x * y
      }
    }
    var j = N - 1
    var result: Row = Nil
    while (j >= 0) {
      if (acc(j) != 0.0) result = (j, acc(j)) :: result
      j -= 1
    }
    out.rows(i) = result
  }
  out
}
During accumulation, acc(j) is the sum of the already processed terms contributing to position . Missing entries multiply to zero, so ignoring them loses no contribution under the finite arithmetic convention of part (e). At completion,
Descending j and prepending produce strictly increasing stored indices. Omitting zero also handles cancellation. The temporary array uses auxiliary space beyond the output. The time complexity is
at worst , but potentially much smaller when the matrices are sparse. The term covers clearing and scanning the row accumulators. Finite-precision rounding can affect the numerical result, as in any Double matrix multiplication.
Use matrix multiplication to evolve the probability vector by . With ,
Hence, in Central, Headington, Botley order,
Both probability vectors have nonnegative entries summing to one.
Let be upper triangular matrices. For an entry below the diagonal, , matrix multiplication gives
If , then . If , then , so . Every summand is zero, giving
Thus is an upper triangular matrix. Equivalently, a potentially nonzero summand would require , impossible below the diagonal.
Let be standard coordinate columns. The required elementary matrix is
It is the identity matrix with the extra entry in position . Left matrix multiplication implements the row operation: all other rows are unchanged. Since , is a lower triangular matrix with every diagonal entry one. Part (a) therefore gives and
Hence adding a multiple of one row to another leaves the determinant unchanged, even if is singular.
Reuse dimensions and either transpose definition above:
multMat :: Num a => Matrix a -> Matrix a -> Matrix a
multMat a b
  | colsA /= rowsB = error "multMat: incompatible sizes"
  | otherwise = [[sum (zipWith (*) row col) | col <- columnsB]
                                           | row <- a]
  where
    (_,colsA) = dimensions a
    (rowsB,_) = dimensions b
    columnsB = transpose b
For of size and of size , every selected row and column has length . Their dot product is
The two list comprehensions place this entry in row , column of an result. The dimension guard checks exactly the compatibility condition for matrix multiplication. The shared columnsB avoids recomputing the transpose for each row; the arithmetic cost is in the unit-cost model.
Generate successive matrix powers and take cumulative sums using matrix addition:
seriesMat :: Num a => Matrix a -> [Matrix a]
seriesMat m = scanl1 addMat (iterate (multMat m) m)
For the stipulated square matrix, iterate (multMat m) m produces m, m*m, m*(m*m), and so on. Associativity of exact matrix multiplication identifies these as . The left scan scanl1 addMat then returns
All dimensions remain compatible. The infinite outer list is available a finite prefix at a time under lazy evaluation; no convergence of the matrix geometric series is needed. With floating-point entries, the expression specifies this particular multiplication and addition order, since machine arithmetic need not obey the exact algebraic laws.