Interactive Demo
Nonlinear Least Squares Interactive
Nonlinear Least Squares Interactive is a free, interactive learning demo from the Applied Linear Algebra and Least Squares course on Lykke. It helps you build intuition for Gauss-Newton algorithm, Levenberg-Marquardt algorithm, Augmented Lagrangian, Penalty algorithm. Play with it directly in your browser — it features 2 sliders, 3 buttons, direct drag interaction and a live visual canvas. This demo lives in the “Nonlinear Least Squares” section of the course.

How to use this demo
- Drag the sliders to change the inputs and watch the visualization update in real time.
- Click and drag directly on the canvas to manipulate the scene.
- Use the “Gauss-Newton Step”, “Levenberg-Marquardt Step”, “Reset” buttons to trigger actions or reset the demo.
- Experiment freely — there's nothing to break, and every change is reversible.
What you'll explore
- Gauss-Newton algorithm
- Levenberg-Marquardt algorithm
- Augmented Lagrangian
- Penalty algorithm
Frequently asked questions
What does the Nonlinear Least Squares Interactive demo do?
Introduces iterative algorithms for solving least squares problems where the model is nonlinear. Nonlinear Least Squares Interactive turns that idea into something you can manipulate directly and watch respond.
What Applied Linear Algebra and Least Squares concept does Nonlinear Least Squares Interactive teach?
Introduces iterative algorithms for solving least squares problems where the model is nonlinear. It focuses on Gauss-Newton algorithm, Levenberg-Marquardt algorithm, Augmented Lagrangian, Penalty algorithm from the “Nonlinear Least Squares” section.
What can I control in Nonlinear Least Squares Interactive?
The sliders change the key inputs; you can drag elements directly on the canvas; the “Gauss-Newton Step”, “Levenberg-Marquardt Step”, “Reset” buttons run actions or reset the demo. Every change updates the visualization in real time, so you can see exactly how each variable affects the outcome.
How does Nonlinear Least Squares Interactive fit into the Applied Linear Algebra and Least Squares course?
This course provides a practical introduction to linear algebra, focusing on the core concepts of vectors, matrices, and least squares methods. It emphasizes real-world applications such as machine learning, control sys… This demo is the interactive piece for the “Nonlinear Least Squares” section. Open the full Applied Linear Algebra and Least Squares course wiki at https://www.getlykke.com/explore/public/applied-linear-algebra-and-least-squares-f2e383ce-d1e8-4a0a-af8a-f21feb45dad0 for notes, flashcards, quizzes and the other demos.
What will I understand better after using Nonlinear Least Squares Interactive?
You'll build intuition for Gauss-Newton algorithm, Levenberg-Marquardt algorithm, Augmented Lagrangian, Penalty algorithm — and, crucially, see how they behave when you change the inputs, which is hard to get from a textbook or lecture on Applied Linear Algebra and Least Squares alone.
From the Applied Linear Algebra and Least Squares course
This interactive demo is part of the Nonlinear Least Squares section. Explore the full Applied Linear Algebra and Least Squares course wiki on Lykke — with notes, flashcards, quizzes and more interactive demos.
Open the Applied Linear Algebra and Least Squares course →