Resistance Vs Impedance?

Here's a diagram for impedance:

impedance

Basically impedance consists of two things: reactance and resistance, making the resistance a subset of impedance.

To make the calculations simpler, we use complex numbers to express impedance. This way we can have impedance \$Z=R+jX\$, where \$R\$ is the resistance, \$j\$ is the imaginary number and \$X\$ is the reactance. If we think a bit about complex numbers, we'll see that zero is a valid value for \$X\$. In that case, we only have resistance and no reactance. It's not wrong to say that a purely resistive load has impedance, because impedance consists of resistance and reactance, but it seems that over time the term impedance started to imply that there is some reactance.

Another problem with the term impedance it that it is mostly used for AC circuits and for some reason people usually get exposed to DC circuits first. The reason why impedance isn't used for DC circuits is because of the nature of reactance. Basically for reactance, we have 3 cases: When reactance is zero, when it is positive, and when it is negative.

In cases of positive reactance, we have mostly inductive impedance and the formula for impedance is \$Z=R+j \omega L\$, where \$\omega=2 \pi f\$ is angular frequency and \$L\$ is inductivity of the element. With DC current the frequency is zero and therefore the imaginary part of impedance is zero too, giving us only resistance. Because the resistance is often considerably lower than reactance an ideal coil is considered to have zero resistance and in DC circuits is a short.

In cases of negative reactance, we have mostly capacitive impedance and the formula for impedance is \$Z=R+ \frac{-j}{\omega C}=R-\frac{j}{\omega C}\$. In DC circuits as the frequency approaches zero, the reactance approaches infinity and for that reason ideal capacitors are modeled as open circuit in DC circuits.

enter image description here

There's also the inverse of impedance called admittance. It's basically \$Y=Z^{-1}=G+jB\$, where \$G=\frac{R}{R^2+X^2}\$ is conductance and \$B=\frac{-X}{R^2+X^2}\$ is susceptance.

UPDATE Unfortunately, I'm not that advanced so I can't give you a good answer to the update. Basically each part of the circuit acts as a combination of a resistor, inductor and a capacitor. It is possible to calculate inductance of a piece of wire for example using Biot-Savart law or Gauss's law.

Capacitance among other things may be calculated using Gauss's law for electric field or Coulomb's law. The basic idea is to assume some charge \$Q\$ on the body and using one of the two laws I mentioned to describe an electrical field to get the potential of the body with respect to a point in infinity. After that capacitance can be obtained using formula \$C= \frac{Q}{V}\$.

As far as I know, today there are electronic design programs that are capable of calculating the inductance and capacitance of PCB traces automatically from the PCB layout itself. The laws I provided do work, but to calculate inductance and capacitance of traces on a PCB would be pretty complicated.

UPDATE 2

Reactance can be measured by several types of instruments, depending on the values you expect, the amount of precision you need and what type of instrument is easier to use on a particular circuit.

You can, for example, use a "simple" multimeter to measure capacitance and inductance of a trace. For better results a special type of multimeter called an RLCmeter can be used. It will show exact resistance and reactance at a specified frequency and most better models will be able to display inductance and capacitance. This is handy because in some situations equivalent series resistance of, for example, a capacitor may be important and it cannot be measured with a simple multimeter.

In some cases even an oscilloscope can be used to see the reactance. The reactance will affect signals going through the trace and such effects can be detected with an oscilloscope and then reactance can be determined from effects on the circuit.

As for the intentional part, well the inductance and capacitance are natural phenomena and are unavoidable and will always happen. On some circuits the designer may pay special attention to them, because they can change the way a signal propagates through the trace. This is especially common in modern high frequency digital electronics. On the other hand in some circuits (for example low frequency digital electronics, DC-only systems, etc.) the designer may not need to pay much attention to reactance and can just "let it happen".


Diagram!

enter image description here

This is for a complex impedance:

\$Z = R + \dfrac{1}{j \omega C} \$

Resistance \$R\$ is in phase with the applied voltage, so the vector points in the same X direction. The impedance of a capacitor is almost completely reactive, i.e. its resistive part is much smaller than the \$\dfrac{1}{j \omega C} \$. The \$j\$ causes a \$\theta\$ = 90° rotation, and since the \$j\$ (= \$\sqrt{-1}\$) is in the denominator the angle is negative \$\left( \dfrac{1}{j} = -j \right) \$.
To calculate the current \$ I = \dfrac{U}{Z} \$, we note that when dividing by an impedance with angle \$\theta\$ we subtract the angle from our reference, so that the angle's sign is inverted.
The result shows how for a capacitive load the current leads the voltage by an angle \$ \theta\$, where \$ 0 \le \theta \le 90°\$.
For inductive loads a similar diagram can be drawn, only \$ j \omega L\$ points in the opposite direction of \$\dfrac{1}{j \omega C} \$, and the current will trail the voltage.

edit (after your edit of the question)
So, resistance will cause the current to be in phase with the voltage. If there's an imaginary term (the \$j\$) then that term represents the reactance, either capacitive or inductive, and

Resistance + Reactance = Impedance

In an ideal world, if you don't have capacitors or coils you wouldn't have reactance either. But a circuit may have parasitic impedance: the length of a PCB trace will cause an inductive reactance (it behaves as a coil), and two adjacent traces will have a capacitive reactance (they behave as a capacitor). Parasitic impedances are unintentional, and most of the time a nuisance, though sometimes a designer can make good use of them.
You can measure components impedances with an RLC-meter, which will give you resistance in series or parallel with a reactance (inductive or capacitive).
Reactance will show as a phase shift in voltage or current. This phase shift can be shown on an oscilloscope in X-Y mode; a zero phase shift will show a straight line, a 90° phase shift will show a circle, anything in between will give you an ellipse.