If you define F
with F[x_] := CDF[NormalDistribution[0, 1], x];
then F
can never appear in any subsequent evaluated expression since the definition will have been applied.
Clear[f, F]
f[x_] := PDF[NormalDistribution[0, 1], x];
Use a Rule
to express Erf
in terms of F
rule = Erf[x_] -> 2 F[x Sqrt[2]] - 1;
inte1 = (Integrate[f[x]*x^2, {x, -∞, k}] // FullSimplify) /. rule
(* -((E^(-(k^2/2)) k)/Sqrt[2 π]) + F[k] *)
To evaluate F
replace it with CDF
FullSimplify[inte1 /. F -> (CDF[NormalDistribution[0, 1], #] &)]
(* -((E^(-(k^2/2)) k)/Sqrt[2 π]) + 1/2 (1 + Erf[k/Sqrt[2]]) *)