# Question on uniform semiconductor doping

So my question is shown above. For sample A , I tried to substitute the value of NA into the equation for law of mass action , but I was unable to get the answer. I had to use the equation for charge neutrality to get the answer. Why is this so? Shouldn't NA and ND obey the principle of law of mass action as well?

Thanks for the help!

$N_A$ and $N_D$ depend what dopants you apply to the sample. They don't have to obey any particular laws.
$$n_0p_0=n_i^2$$
Once you've worked out the $p_0$ boxes in your table, you then can figure out the unspecified dopant concentrations by knowing that the dominant dopant is providing all of the majority carriers, plus it's providing or capturing enough electrons to ionize the other dopant (because of the assumption of all dopants being 100% ionized).
• You cannot assume that. For an n type, for moderate doping you usually assume $n_0 = N_D - N_A$. If $N_A \lt\lt N_D$ then it comes to the same thing, but your problem is not making that assumption. – The Photon Mar 10 '15 at 17:44