Double Integral unkown limits
Show older comments
Hi
In this problem a=0.5 b=0.1 funa*x.^2 + b*y.^2 0<x<5 0<y<2xk and q=125. I try fo find that What is the value of the k? now I don't know a value but I know q. How can I estimate a value and use random command for a value.
a =0.5;
b = 0.1;
fun = @(x,y) a*x.^2 + b*y.^2;
%0<x<5 0<y<2xk
ymax=2*x*k
q = integral2(fun,0,5,0,ymax)==125 % real value 125
What is the value of the k???
4 Comments
erhan aksu
on 10 Feb 2019
Star Strider
on 10 Feb 2019
The problem is that by definition the double integration completely evaluates ‘x’ in the first integration, so it cannot be considered in the second integration, since ‘x’ is integrated between 0 and 5, not between 0 and a function of ‘y’. The only possible solution for your problem that I see is to reverse the order of integration, evaluating ‘y’ first, then ’x’, or re-defining your problem. However, that may not be appropriate.
Walter Roberson
on 10 Feb 2019
Instead of passing ymax to integral2, pass @(x) ymax(x,k)
Meanwhile, the @(x,y,k)fun(x,y) should just be fun as no third parameter is going to be passed by integral2 and fun does not need k.
erhan aksu
on 11 Feb 2019
Accepted Answer
More Answers (0)
Categories
Find more on Eigenvalue Problems in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!