I would like to compute the following expression in Wolfram alpha: $$\mathbb{E}[X-max(aX+b,0)] $$ where $X\sim N(\mu,\sigma^2)$ and $a,b$ are some constants.
Without constants, I can get the result with
expectation of (x-max(x,0)), x normal distributed
However, the following doesn't seem to work:
expectation of (x-max(ax+b,0)), x normal distributed
Do you know how I can get the general result with some arbitrary constants ?
Thanks in advance !