There are many ways to fit linear regression models.
The most common way is to use least squares; that is, to choose the coefficients that minimize the sum of squares of residuals. However, any number of other criteria could be used.
One of the reasons why least squares is popular is that it's solution is of particularly simple form.
If you let $y = [P_i]$ (i.e. let $y$ be the n-vector of $P$ values) and $X = [\mathbf{1},V,T]$ (an $n\times 3$ matrix), then the least squares solution to your first equation corresponds to solving the normal equations $[X^\top X]\,\hat{\alpha}=X^\top y$ for which the algebraic solution is $\hat{\alpha} = [X^\top X]^{-1} X^\top y$. However, in practice you don't ever invert $[X^\top X]$; the solution is obtained in ways that are substantially numerically more stable (most often by performing a QR-decomposition on $X$).
Many programs (including all statistics packages worth the name) offer least squares regression. [As one example, the free software R does this, amongst a host of more sophisticated things; Excel has some very basic ability to do regression, but it's a bit clunky.]
Your second equation can be done the same way by letting $X=[\mathbf{1},V,T,V^2,T^2,VT]$
See Wikipedia, for example its introduction to Linear regression
Also check some of our regression-related tags; the two most popular are regression
and
multiple-regression
If you want something other than least squares, some additional information on your needs may be required.