Loading…

Rayleigh Quotient Optimizer

Math Linear Algebra • Applications and Advanced Linear Algebra (capstone)

View all topics

Compute the Rayleigh quotient \(R(x)=\dfrac{x^{\mathsf T}Ax}{x^{\mathsf T}x}\), use it for eigenvalue bounds (symmetric case), and run an optimizer that targets the maximum and/or minimum Rayleigh value (i.e., \(\lambda_{\max}\) and \(\lambda_{\min}\)).

Matrix \(A\)
The quadratic form \(x^{\mathsf T}Ax\) depends only on the symmetric part \(A_s=\tfrac12(A+A^{\mathsf T})\). This tool uses \(A_s\) for \(R(x)\), eigenvalue bounds, and optimization when \(A\) is not symmetric.
Inputs accept -3.5, 2e-4, fractions 7/3, and constants pi, e.
Vector \(x\)
Initial vector used to evaluate \(R(x)\) and to start the optimizer.
Tip: \(x\neq 0\). The optimizer normalizes \(x\) at each step.
Ready
Results
Rayleigh quotient \(R(x)\)
Eigenvalue bounds (from \(A_s\))
Maximizer (approx)
Minimizer (approx)
Key objects
Iteration log (truncated)
Graph
2×2 only. Plots \\(R(\\theta)\\) for unit vectors \\(x(\\theta)=[\\cos\\theta,\\sin\\theta]\\) and marks current/iteration points. Zoom with wheel/trackpad, drag to pan, double-click to reset. Play animates the chosen mode.
Step-by-step
Enter inputs and click “Calculate”.

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

Frequently Asked Questions

Why does the calculator use A_s=(A+A^T)/2?

Because x^T A x equals x^T A_s x for all real x. Rayleigh quotient bounds are stated for symmetric matrices, so A_s is the relevant part.

What do the bounds mean?

For symmetric A_s, the Rayleigh quotient always lies between λ_min and λ_max. The extremes occur at eigenvectors.

How does the optimizer relate to the power method?

The update x_{k+1}=normalize(A_s x_k) is the power method. The Rayleigh quotient along iterates tends to the dominant eigenvalue under suitable conditions.

How is the minimum eigenvalue approximated?

By running the same iteration on -A_s. Maximizing the Rayleigh quotient of -A_s corresponds to minimizing the Rayleigh quotient of A_s.