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
VINCE
1 hour agoThe Left's Lawfare Onslaught REVEALED | Episode 127 - 09/17/25
19,232 watching -
LIVE
Dear America
1 hour agoCharlie’s Assassin In Court!! DEATH PENALTY!! + Evil Media Defends The Killer?!
21,636 watching -
LIVE
Badlands Media
6 hours agoBadlands Daily: September 17, 2025
869 watching -
LIVE
Wendy Bell Radio
5 hours agoDerangement Is A Bad Look
7,886 watching -
LIVE
Matt Kohrs
10 hours agoStock Market Open: HAPPY FOMC DAY!!! || Live Trading Futures & Options
894 watching -
LIVE
Crypto Power Hour
1 hour ago $0.09 earnedWEB 3, Reclaiming The Internet
114 watching -
LIVE
Total Horse Channel
1 hour ago2025 WDAA Western Dressage World Championship Show | Day Two | Arena Four
177 watching -
LIVE
LFA TV
4 hours agoLFA TV ALL DAY STREAM - WEDNESDAY 9/17/25
4,675 watching -
1:15:33
JULIE GREEN MINISTRIES
3 hours agoLIVE WITH JULIE
78.8K161 -
The Bubba Army
23 hours agoState of Utah Wants Tyler Robinson DEAD! - Bubba the Love Sponge® Show | 9/17/25
62.3K6