How do I use NIntegrate solutions to Differential Equations?
IntegratedDifferenceFunction[I_, O_] :=
NIntegrate[I[U] - O[U], {U, 0, 2*Pi}]
m = DSolve[y''[x] + y[x] == 0, y[x], x]
n = DSolve[y''[x] + y'[x] == 0, y[x], x]
IntegratedDifferenceFunction[m, n]
I want to compute the difference between two Ordinary Differential Equation Solutions from 0 to 2*Pi, It can be any ODE's. Is there also a way to apply the function for Numerical Solutions that were solved using NDSolve?
m = NDSolve[y''[x] + y[x] == 0, y[x], {x,0,2*Pi}]
n = NDSolve[y''[x] + y'[x] == 0, y[x], {x,0,2*Pi}]