In the fall semester of [redacted], my professor for a course on ordinary differential equations said, “There are two groups of people in the world: those who can solve first-order linear ordinary differential equations and those who can’t. By the end of this lecture, you will be in the first group.”
I clearly remember appreciating the cleverness of the integrating factor that we learned that day. I also recall the professor exhorting us not to memorize the final formula but to remember the approach.
Write a function to solve an equation of the form
with the condition
. The function should return the values of y at the specified values of x.
Although MATLAB ODE functions are allowed, I would like someone to demonstrate how to implement the analytical approach using an integrating factor in MATLAB. Those who can will received the coveted unscored bonus points.
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers7
Suggested Problems
-
Make the vector [1 2 3 4 5 6 7 8 9 10]
52818 Solvers
-
6438 Solvers
-
Rotate input square matrix 90 degrees CCW without rot90
682 Solvers
-
Set the array elements whose value is 13 to 0
1438 Solvers
-
Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock.
956 Solvers
More from this Author321
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!