Ignoring the integral sign (which is for findign the area, not plotting the function) when you set x=a (which is the max of the graph) you end up with y = A, so the max of the graph is A.
The graph's flatness is dependent on lambda, I just suggested doing it flatter to illustrate you know what's going on.
Working out <x> and <x2> is to work out the standard derivation yes.