Reply To: Maths
A Tale of 2 Secrets › Forums › T.E.M.P.E.S.T. › Maths › Reply To: Maths
1st December 2025 at 10:41 pm
#113993
Crackerjack_404
Participant
Something fun I came across today and thought I’d share, for anyone who’s familiar with differentiation and matrix multiplication, turns out you can differentiate polynomials using a matrix!
Say you’ve got a cubic:
f(x) = a + bx + cx^2 + dx^3
Then you can represent the coefficients of x as a column vector
` [ a ]
[ b ]
[ c ]
[ d ]
`
And if them multiply that by the matrix:
` [ 0 1 0 0 ]
[ 0 0 2 0 ]
[ 0 0 0 3 ]
[ 0 0 0 0 ]
`
You get
` [ b ]
[ 2c ]
[ 3d ]
[ 0 ]
`
Which are exactly the coefficients of the derivative!
f^'(x) = b + 2cx + 3dx^2
This is definitely the right way to think about this! Harry