yego.me
💡 Stop wasting time. Read Youtube instead of watch. Download Chrome Extension

Computing a Jacobian matrix


3m read
·Nov 11, 2024

So just as a reminder of where we are, we've got this very nonlinear transformation. We showed that if you zoom in on a specific point while that transformation is happening, it looks a lot like something linear. We reasoned that you can figure out what linear transformation that looks like by taking the partial derivatives of your given function, the one that I defined up here, and then turning that into a matrix.

What I want to do here is basically just finish up what I was talking about by computing all of those partial derivatives. So first of all, let me just rewrite the function back on the screen so we have it in a convenient place to look at. The first component is X plus s of y, s of Y, and then y plus s of X was the second component.

So what I want to do here is just compute all of those partial derivatives to show what kind of thing this looks like. So let's go ahead and get rid of this word, then I'll go ahead and kind of redraw the matrix here. For that upper left component, we're taking the partial derivative with respect to X of the first component.

So we look up at this first component, and the partial derivative with respect to X is just one since there's 1 * X plus something that has nothing to do with X. Then below that, we take the partial derivative of the second component with respect to X down here, and that guy, the Y, well that looks like a constant, so nothing happens. The derivative of s of X becomes cosine of x.

Then up here, we're taking the partial derivative with respect to Y of the first component, that upper one here, and for that, you know, the partial derivative of x with respect to Y is zero. The partial derivative of s of Y with respect to Y is cosine of Y. Finally, the partial derivative of the second component with respect to Y looks like 1 because it's just 1 * y plus some constant.

This is the general Jacobian as a function of X and Y. But if we want to understand what happens around the specific point that started off at, well I think I recorded it here at -21. We plug that into each one of these values. When we plug in -21, so go ahead and just kind of again rewrite it to remember we're plugging in -21 as our specific point, that matrix as a function, kind of a matrix-valued function, becomes one.

Then next we have cosine, but we're plugging in -2 for x. Cosine of -2, and if you're curious, that is approximately equal to, I calculated this earlier, 0.42 if you just want to think in terms of a number there. Then for the upper right, we have cosine again, but now we're plugging in the value for Y, which is one, and cosine of 1 is approximately equal to 0.54.

Then bottom right, that's just another constant, one. So that is the matrix just as a matrix full of numbers. Just as kind of a gut check, we can take a look at the linear transformation this was supposed to look like and notice how the first basis vector, the thing it got turned into, which is this vector here, does look like it has coordinates 1 and 0.42.

Right, it's got this rightward component that's about as long as the vector itself started, and then this downward component, which I think that's, you know, pretty believable that that's 0.42. Likewise, this second column is telling us what happened to that second basis vector, which is the one that looks like this, and again, its y component is about as long as how it started, right? A length of one, and then the rightward component is around half of that, and we actually see that in the diagram.

But this is something you compute. Again, it's pretty straightforward; you just take all of the possible partial derivatives and you organize them into a grid like this. So with that, I'll see you guys next video.

More Articles

View All
Mistakes when finding inflection points: second derivative undefined | AP Calculus AB | Khan Academy
Robert was asked to find where ( g(x) ), which is equal to the cube root of ( x ), has inflection points. This is his solution, and then later we are asked if Robert’s work is correct. If not, what’s his mistake? So pause this video and try to figure it o…
Should You BUY or RENT a Home in 2021?
Let’s talk about owning your own home. Owning your own home is no doubt a dream for a lot of people. A place to call your own, your home base, you know, a place to raise a family. However, particularly with rising house prices across the past 10 years, th…
What The Recession Will Do To Russians | Meet Kevin
[Music] How do we start? There’s so much going on. I think we have to start with Ukraine. How do you handle this when you’re investing? You try to figure out likely outcomes, and you know, it’s very difficult because obviously, Putin is unpredictable. Ev…
Flying to Cappadocia with my mom 🇹🇷 Trip Vlog 🧑‍✈️
[Music] [Applause] [Music] Suddenly [Music] falling in love, not falling out. I keep on. Each of us [Music] called it. [Music] [Applause] [Music] [Applause] [Music] [Music] Hmm [Music] guys, I want you to look at this view. This is so amazing! This is my …
The Incredible Sounds of the Falcon Heavy Launch (BINAURAL AUDIO IMMERSION) - Smarter Every Day 189
Hey, it’s me, Destin. Welcome back to Smarter Every Day. So, the SpaceX Falcon Heavy test flight just happened; everyone agrees the footage is phenomenal. It was amazing technological wizardry. Everyone loves it, but there’s something that is missing whe…
Why I told one woman to leave her husband & make millions | Ask Mr. Wonderful #17 Kevin O'Leary
[Music] Everybody tell you what I do about music on all my social media. One of the big problems is rights; music rights. So you don’t want to rip anybody’s music off. That’s so uncool and often acquiring rights takes a long time. So if you’re ripping out…