Premium Only Content

Nonlinear Differential Equations Using Finite Differences: Can we Use Sparse Matrices?
NOTE: WHEN RECORDING THIS, i ACCIDENTALLY FORGOT TO USE THE SPARSE IDENTITY MATRIX IN MATLAB. THE GITHUB CODE HAS BEEN UPDATED AND IS CORRECT. THE 10000-DIMENSIONAL SYSTEM IS NOW SOLVED IN 0.9 SECONDS INSTEAD OF TWO MINUTES!
In answer to a question, we look at using sparse matrices in the solution of boundary value problems. For nonlinear problems, things become more complicated, but we can still use fsolve to solve the underlying system of equations. The issue with Python is the solver cannot handle sparse Jacobian matrices so this limits the utility of this method to small problems. For solvers that can handle sparse Jaboians such as MATLAB’s, we can still get good performance despite having to use a nonlinear solver.
Wikipedia Article on the Jacobian Matrix: https://en.wikipedia.org/wiki/Jacobian_matrix_and_determinant
Github Python Notebook: https://github.com/kpmooney/numerical_methods_youtube/blob/master/bvp/Nonlinear%20BVP.ipynb
Github MATLAB Code: https://github.com/kpmooney/numerical_methods_youtube/blob/master/bvp/Nonlinear.m
Tip Jar: https://paypal.me/kpmooney
-
LIVE
vivafrei
1 hour agoKash Patel in the Hot Seat! Kirk Assassin Discord Messages Leaked! Ostrich Farm Under Surveillance?
22,528 watching -
The Quartering
2 hours agoCharlie Kirk Revenge! 100s of Woke Teachers Fired, Twitch CEO Called To Testify Over Hasan Pike!
105K19 -
LIVE
Dr Disrespect
4 hours ago🔴LIVE - DR DISRESPECT - ARENA BREAKOUT: INFINITE - ESCAPE OR LOSE EVERYTHING!
1,953 watching -
LIVE
Stephen Gardner
22 minutes agoBiden’s FBI PLOT to Silence Charlie Kirk EXPOSED!
737 watching -
LIVE
Darkhorse Podcast
2 hours agoThe 295th Evolutionary Lens with Bret Weinstein and Heather Heying
571 watching -
1:11:51
Russell Brand
3 hours agoCharlie Kirk Murder Suspect Faces DEATH PENALTY, As Media Creates Love Story Narrative - SF635
180K67 -
LIVE
Jeff Ahern
1 hour agoNever Woke Wednesday with Jeff Ahern
137 watching -
2:00:54
The Charlie Kirk Show
3 hours agoGlenn Beck Commemorates Charlie Kirk | 9.17.2025
254K154 -
29:55
Neil McCoy-Ward
2 hours agoMASSIVE Military Movement (Things Are Heating Up FAST...)
6.75K6 -
40:00
The Kevin Trudeau Show Limitless
5 hours agoYour Wish Is Your Command: The Missing Secrets of Manifesting
8.48K1