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
-
UPCOMING
The Quartering
6 minutes agoCandace Owens Assassination Plot, Fat Acceptance Is Over, James Comey Indictment Thrown Out
-
LIVE
DeVory Darkins
1 hour agoBREAKING: Hegseth drops NIGHTMARE NEWS For Mark Kelly with potential court martial
11,258 watching -
LIVE
Dr Disrespect
3 hours ago🔴LIVE - DR DISRESPECT - ARC RAIDERS - BLUEPRINTS OR DEATH
3,380 watching -
LIVE
Sean Unpaved
2 hours agoJalen Hurts & Eagles COLLAPSE In LOSS vs. Cowboys | UNPAVED
264 watching -
2:00:25
Steven Crowder
4 hours agoNo Influencer Safe: New X Update Exposed A Major Psyop
357K212 -
17:38
Professor Nez
1 hour agoTHIS will HAUNT Jasmine Crockett for Years...
7.9K16 -
56:36
The Rubin Report
3 hours agoTense Moment at Trump-Mamdani Meeting That No One Predicted
31.1K38 -
9:34
The White House
3 hours agoFirst Lady Melania Trump Welcomes the Official 2025 White House Christmas Tree
21.2K12 -
LIVE
LFA TV
16 hours agoLIVE & BREAKING NEWS! | MONDAY 11/24/25
2,499 watching -
1:01:32
VINCE
5 hours agoNew Info Blows the Lid Off The Butler Assassination Attempt | Episode 175 - 11/24/25 VINCE
240K208