1. Not finding help here? Sign up for a free 30min tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Derivate of this function of matrix

  1. Jul 3, 2008 #1
    Hi ,

    I am stuck with the problem of finding derivative wrt. A of following function:

    y - column vector of size mx1
    A - matrix of size m x n
    b - column vector of size n x 1
    K - matrix of size n x n
    y' - denotes the transpose
    K^-1 - denotes inverse

    f(A) = (y - Ab)' (AKA')^-1 (y-Ab)

    Can anyone please help me?

  2. jcsd
  3. Jul 3, 2008 #2


    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    It looks like a straightforward application of differentiation rules -- where are you having trouble?
  4. Jul 3, 2008 #3
    I am not able to differentiate it. If I expand the terms and apply chain rule, there are terms which involve differentiation of matrix wrt. a matrix, which will result in some kronecker product terms, while the size of final derivative has to be m x n.

    Probably I am missing something.
  5. Jul 3, 2008 #4
    hi Hurkyl,

    can you help me in this?

    thanks ,
  6. Jul 3, 2008 #5


    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    Where specifically do you run into the problem? Some expressions seem like there can't possibly be any difficulty. For example, the derivative of (y-Ab) is surely -(dA)b, where I've used dA to denote whatever the heck the derivative of A with respect to A is supposed to be. These sorts of derivative rules tend to be correct no matter what you're differentiating with respect to. (In fact, if they weren't, we usually wouldn't call the operation a derivative!)

    Incidentally, out of curiousity, just what is the definition you're using for 'derivative with respect to A'?
  7. Jul 3, 2008 #6
    Here it goes:

    d{(y-Ab)' (AKA')^-1 (y-Ab)}
    = d{(y-Ab)'(AKA')^-1} (y-Ab) + (y-Ab)' (AKA')^-1 d{(y-Ab)}
    = [d{(y-Ab)'} (AKA')^-1 + (y-Ab)' d{(AKA')^-1}] (y-Ab) - (y-Ab)' (AKA')^-1 (dA) b
    = -[b' (dA)' (AKA')^-1 + (y-Ab)' d{(AKA')^-1}] (y-Ab) - (y-Ab)' (AKA')^-1 (dA) b

    After this, how to evaluate d{(AKA')^-1} ? Further, how to get the closed form expression for d{f(A)}/dA ?

  8. Jul 3, 2008 #7


    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    Ah, so you don't have a rule for differentiating an inverse?

    In that case, you can try implicit differentiation to work it out -- let B be a matrix function of A. Can you think of any good equations involving [itex]B^{-1}[/itex] in which you know how to differentiate everything else?

    Given the symmetry under transpose of the original expression, you might be able to simplify some things. e.g. that final term is the transpose of one of the terms you get if you distribute that product. I expect those terms to actually be equal, but that does depend upon precisely what dA means.
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?

Similar Discussions: Derivate of this function of matrix
  1. Matrix Derivatives (Replies: 3)

  2. Matrix Derivative (Replies: 5)

  3. Functional Derivatives (Replies: 27)