Solving double Integral with syms variables and matrices
이전 댓글 표시

Can anyone help in solving this double integral using matlab.
psi_1 and psi_3 are one-dimensional column vectors. The answer of the integral is expected to be a scalar.
댓글 수: 6
Dyuman Joshi
2023년 11월 23일
Are psi_1 and psi_3 numerical vectors? If yes, then how do you expect the output to be a scalar?
If no, then share their definitions.
AN
2023년 11월 23일
Dyuman Joshi
2023년 11월 23일
편집: Dyuman Joshi
2023년 11월 23일
"If I use analytical definitions of psi, I get a scalar result."
What is the analytic defintion of psi?
Why do you expect that getting a scalar result with analytic definition will translate into getting the same for numerical values?
If I understand it correctly, as psi_1 and psi_3 are constants, psi_1^2 and psi_3^2 will just come out of the integrations. And the result of the double integrals will be a scalar, which multiplied by a vector will return a vector.
AN
2023년 11월 23일
Dyuman Joshi
2023년 11월 23일
As OP initially stated that the values are column vectors, and provided an array for reference, I'd say it is safe to assume that the first and the third columns of the arrays are the values of psi_1 and psi_3 respectively
답변 (1개)
Walter Roberson
2023년 11월 23일
0 개 추천
The answer is "NO", no-one can help you solve that integral to get a scalar result. Given column vectors, the result of the integral will be non-scalar.
The results of the integral are infinite except for locations where the ψ are zero.
consider the inner integral. ψ1 is constant so its square is constant. Integral of constant times x² is constant times 1/3 x³ evaluated over the limits which is is constant times 1/3 y³.
Multiply the y³ by the outer y and the constant ψ2² there to get constant times y⁴. Integrate to get 1/5 times some constant times y to the 5th. Evaluate over the infinite limits to get infinities except where the constants are zero
The results have the potential to be different if the two vectors are different orientations, but you specified that they are column vectors.
댓글 수: 1
Walter Roberson
2023년 11월 23일
The whole thing does not make sense to me unless the ψare functions of x or y -- but if so then you cannot hope for a closed-form integral without knowing the formulaes for the ψ
카테고리
도움말 센터 및 File Exchange에서 Mathematics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!