Consider a 3-D wing made from an arbitrary airfoil, say a NACA0012 airfoil. The wing has a trapezoidal shape, with a fixed span, root chord, and tip chord. Also, assume that the wing loading is known as well. I am trying to calculate the speed at minimum drag of this wing (assume that there are no other parts of the aircraft, just the wing!) My thought process is as follows:
We know that, to a reasonable degree of accuracy, that there are two types of drag on the wing in steady, level, flight: parasitic drag and lift-induced drag. This can be shown mathematically as:
$$ C_D = C_{D_0} + C_{D_i} = C_{D_0} + \frac{C_L^2}{\pi e AR}$$
Also, assume that the AR and efficiency factor are known. Now, for minimum drag to occur, there has to me a maximum lift to drag ratio. The formula for drag is
$$ D = \frac{1}{2} \rho V^2 S C_D = \frac{1}{2} \rho V^2 S \Big(C_{D_0} + \frac{C_L^2}{\pi e AR}\Big) = \frac{1}{2} \rho V^2 S C_{D_0} + \frac{\rho V^2 S}{2\pi e AR} C_L^2$$
Lift has a similar formula to drag, and in steady, level flight, is equal to the weight of the aircraft. Lift is related to the lift coefficient as $L = \frac{1}{2} \rho V^2 S C_L$. So we solve for the lift coefficient as follows.
$$ C_L = \frac{2L}{\rho V^2 S} = \frac{2W}{\rho V^2 S}$$.
Plugging into our original formula, we obtain
$$ D = \frac{1}{2} \rho V^2 S C_{D_0} + \frac{\rho V^2 S}{2\pi e AR} \cdot \frac{4W^2}{\rho^2 V^4 S^2} = \frac{1}{2} \rho S C_{D_0} V^2 + \frac{2W^2}{\pi e AR \rho S}\frac{1}{V^2}$$
This is great for us, because now we have a relationship between drag and lift, and to find the speed at minimum drag, all we have to do is take the derivative and set it equal to 0. I've done this and the resulting answer comes out to be
$$V_{md} = \Bigg( \frac{4W^2}{\rho^2 S^2 \pi e AR C_{D_0}} \Bigg)^{1/4},$$ where the 'md' stands for minimum drag. My problem arises because I cannot for the life of me figure out how to analytically calculate $C_{D_0}$. It can also be shown that at minimum drag, $C_{D_0} = C_{D_i}$ so that the total drag coefficient becomes $C_D \equiv C_{D_0} + C_{D_i} = 2C_{D_i} = \frac{2C_L^2}{\pi e AR}$, but then we are back to our starting point, which confuses me again.
My last resort was to read some papers that said that there is a method to finding $C_{D_0}$ using the skin friction coefficient, because at subsonic speeds, a large part of the parasitic drag is due to skin friction (and a little due to pressure drag). Anyways, this led me to the formula $C_{D_0} = C_{fe}\frac{S_{wetted}}{S_{ref}},$ where you use an equivalent skin friction and wetted area. Now I don't understand what a wetted surface area is, since in this example we are only dealing with one wing (would it just be twice the regular area??) As you can see, I am greatly confused. How do you find this zero-lift drag, and subsequently the minimum flight speed.