I want to find the symfun N(a), whose integral from "b" to "c" is known to be "- b^3/3 – 2*b + c^3/3 + 2*c".
Here is the code I thought it would be a good option:
syms a b c N(a)integral=int(N(a),a,b,c)solution=-b^3/3-2*b+c^3/3+2*c %that's the solution of the integral IF N(a) was a^2+2;
solve(integral==solution,N(a))% I was hoping the answer was N(a)=a^2+2;
Instead of N(a)=a^2+2 – the solution I'm looking for, I get:
Warning: Unable to find explicit solution. For options, see help.ans = b: [0×1 sym] c: [0×1 sym]
Can someone tell what is wrong with this code??
Thanks!!
Best Answer