MATLAB: Looking for good example of where numerical integration beats symbolic integration

cumtrapznumerical integrationsymbolic

Hi,
I'm looking for a good example of where numerical integration beats symbolic integration to show a group of students why they should match their method to the problem. Aside from 'real world' lab data which can't be approximated by an equation, are there equations for which Matlab can't produce a nice integral solution using the Symbolic Math Toolbox, but can be well approximated using cumtrapz?

Best Answer

voxynn,
how about a RLC circuit? You could start with the linear DE, show that the DE can be solved symbolically and numerically, and then add a small non-linearity to the DE. Let me know if you need code and I can point you to it.