Making a short test for self-adjointness

  • Context: MATLAB 
  • Thread starter Thread starter SemM
  • Start date Start date
  • Tags Tags
    Matlab Short Test
Click For Summary

Discussion Overview

The discussion revolves around testing for self-adjointness of an operator using MATLAB. Participants explore the validity of a specific MATLAB command and the implications of the results obtained from testing with square integrable functions.

Discussion Character

  • Technical explanation, Debate/contested, Mathematical reasoning

Main Points Raised

  • One participant presents a MATLAB command intended to test the self-adjointness of an operator defined by an inner product.
  • Another participant argues that validating the test for a specific pair of functions does not guarantee it holds for all functions.
  • A suggestion is made that if the result of the test (O) is not equal to zero, then the operator cannot be self-adjoint.
  • Concerns are raised regarding the use of indefinite integrals in the MATLAB command, suggesting that definite integrals should be used for the inner product.
  • A participant shares their own results from testing the operator on two functions within a specific interval, questioning the admissibility of the functions or the self-adjointness of the operator.
  • There is a request for examples of function pairs that should work for the self-adjointness test.

Areas of Agreement / Disagreement

Participants express disagreement regarding the validity of the MATLAB command for all functions and the implications of the results. Multiple competing views remain on the correct approach to testing self-adjointness.

Contextual Notes

There are unresolved issues regarding the assumptions made about the functions used in the tests and the appropriateness of the integral types (indefinite vs. definite) in the context of the inner product.

SemM
Gold Member
Messages
194
Reaction score
13
Hi, I made the following command in MATLAB to test for the following:

\begin{equation}
\langle T\psi,\phi\rangle=\langle \psi, T\phi\rangle
\end{equation}

%Self-adjoint test
syms x
a = (diff(exp(-x^2)))*exp(-2*x^2)
b = (diff(exp(-2*x^2)))*exp(-x^2)
W = int(a, x)
P = int(b, x)
O=W-P

and it is tested on two square integrable functions. Can someone validate that this is OK?
 
Physics news on Phys.org
No. Just because it is valid for a specific pair of functions doesn't mean that it will be true for all functions.
 
So one needs to add that if ##O \ne 0## then the operator is not self-adjoint.
 
SemM said:
So one needs to add that if ##O \ne 0## then the operator is not self-adjoint.
Yes, you can use it for counterproofs.

I am not very familiar with symbolic manipulations in Matlab, but the way you use int appears to be for indefinite integrals, not a definite integral as it should be for the inner product.
 
DrClaude said:
Yes, you can use it for counterproofs.

I am not very familiar with symbolic manipulations in Matlab, but the way you use int appears to be for indefinite integrals, not a definite integral as it should be for the inner product.

Sure. trying the following function on the differential operator (d/dx) on the two given functions in the space 0-2pi:

%Self-adjoint test
syms x
a = (diff(exp(-x^2)))*exp(-2*x^2)
b = (diff(exp(-2*x^2)))*exp(-x^2)
W = int(a, 0, 2*pi)
P = int(b, 0, 2*pi)
O = W-PGives:

1/3 - exp(-12*pi^2)/3

So these two functions are either inadmissible, or the operator is not self adjoint. Of course the latter is ridiculous, but in order to try, can you give me a pair of functions that should work?
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 9 ·
Replies
9
Views
5K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 59 ·
2
Replies
59
Views
13K
  • · Replies 12 ·
Replies
12
Views
4K