Clarificaiton on barycentric coordinates This is related to ray tracing (which I learnt and then forgot).
Given a triangle in 3D $\widehat{ABC}$, where $A,B,C$ are the points of the triangle 
And a parametric line described by $(O,\vec v)$ (origin and direction vector)
We find the point $P$ as the intersection of the line and the plane described by the triangle.
From here I become confused. The barycentric coordinates are basically the "normalized" areas of the triangles formed by taking $P$ and 2 of the vertices of the triangle. However this definition only makes sense when $P$ is inside of the triangle, when it's outside it stands that at least one of the coordinates must be negative.
My confusion comes when trying to understand how and why one of the 3 coordinates becomes negative when calculating the barycentric coordinates.
The formal definition tells us that $P=u*A+v*B+w*C$
Or that $P$ is a weighted sum of the vertices of the triangle such that $u+v+w=1$
When $P$ is inside the triangle each weight can be simply described as 
$\frac{\widehat{PXY}}{XYZ}$ where $(X,Y,Z)$ represents any permutation of $(A,B,C)$ 
But off course this cannot be the case when $P$ is outside the triagle as at least one of the areas must be negative.
How are $u,v,w$ calculated exactly? I am not looking so much for a formal answer, but rather I want to understand the intuition behind the weight calculation.

The intuition depends on the method you use to perform the computation. If you're comfortable with algebraic areas, I'm pretty sure you can still interpret negative coefficients as (algebraic) areas of the appropriate triangles. Note that in that case, you have to be careful with the permutation you use, since $\text{area}(ABC)=-\text{area}(ACB)$.
Technically, the sign of the coefficient mostly indicates if the specific point ($A,B$ or $C$) attracts or repulses $P$. If you are doing the computation manually, you can then easily deduce the appropriate sign. Since you tagged algorithms I guess you'd rather have a systematic interpretation though.

Another way to look at barycentric coordinates is to notice that any two sides of triangle $ABC$ defines a (most likely non-orthonormal) basis. This interpretation however breaks symmetry between the three points.
For instance you can take $A$ as origin with basis vectors $\vec{AB}$ and $\vec{AC}$.
\begin{align}
\vec{AP} &= P-A=uA+vB+wC-(u+v+w)A\\
&=v\vec{AB}+w\vec{AC}
\end{align}
Then coefficients $v$ and $w$ are simply the coordinates of $P$ in the coordinate system $\left(A,\vec{AB},\vec{AC}\right)$. You can retrieve $u$ with $u=1-v-w$.
With this, it's not too difficult to see when a given coefficient will be negative. For instance take $v$, it will be :


*

*zero when $P$ is on line $AC$

*positive when $P$ and $B$ are on the same side of line $AC$

*negative when $P$ and $B$ are on distinct sides of line $AC$


This also nicely ties in with the repulsion/attraction interpretation of barycentric coefficients. When $v$ is zero, you don't need $B$ to express $P$. When $v$ is positive, it pulls $P$ away from line $AC$, towards point $B$. When $v$ is negative, it pushes $P$ away from both line $AC$ and $B$.
