We see that the current due to the majority carrier decreases near the junction as shown above, which means the majority carrier concentration should also decrease since the diffusion current is given by the derivative of the carrier concentration with respect to x.
But when we look at the carrier distribution, the majority carrier distribution increases instead of decreasing. What am I understanding wrong?