P1 = Integrate[(Abs[\[Psi]s1])^2, {x, 0,b}]
When I integrate the above function, I am getting an answer as below. I am not sure what's going on. 1/3 a A Conjugate[A]
Psi]s1 is same as the following piecewise function. ie, [Psi]s1= [Psi][x, 0] I am expecting,
Then only further calculations can be performed.
Also while integrating the modulus square of the above piece wise functions , it is showing an error.
\[Psi][x_, 0] :=
Piecewise[{{(A*x)/a, 0 <= x <= a}, {A*(b - x)/(b - a), a <= x <= b}}]
Integrate[(Abs[\[Psi][x, 0]])^2, {x, a, b}]
The original answer is:
\[Psi]s1
? $\endgroup$