You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: _posts/2018-01-01-geometry-lagrange-multiplier.md
+8-6
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,8 @@ mathjax: true
17
17
p {
18
18
text-align: justify;
19
19
}
20
+
21
+
20
22
</style>
21
23
22
24
The Lagrangian Multipliers is an important strategy in mathematical optimization to find the local maxima or minima of a function subject to equality constraints.
@@ -68,7 +70,7 @@ The point of intersection of the ellipse and the riverbed curve $f(x,y)$. They h
68
70
69
71
A lot of interesting stuff happens here at the interection point. First, you can easily verify that both the curves have a common tangent equations. Nice. Next, the point has two normals acting on it, in the opposite directions. This is what we care about.
70
72
71
-
<fontcolor="blue">Normals.</font>
73
+
<fontcolor="red">Normals.</font>
72
74
73
75
Let's focus on normals. As we know the normal is given by the gradient of the curve, (since the gradient of a function is perpendicular to the contour lines)
74
76
@@ -78,14 +80,14 @@ and,
78
80
79
81
$$ \nabla_{x,y} f = \Bigl( \frac{\partial{f}}{\partial{x}}, \frac{\partial{f}}{\partial{y}} \Bigr) $$
80
82
81
-
So, we never know whether these normal are balanced. It depends on the curve and elipse equations. Thus we introduce a scalar, non-zero constant, <fontcolor='blue'> $\lambda$ </font> (to balance the point of interection, where the maxima or minima lies).
83
+
So, we never know whether these normal are balanced. It depends on the curve and elipse equations. Thus we introduce a scalar, non-zero constant, <fontcolor='red'> $\lambda$ </font> (to balance the point of interection, where the maxima or minima lies).
82
84
<center>
83
85
<divclass="boxx">
84
86
$$ \nabla_{x,y} f = \lambda \nabla_{x,y} g $$
85
87
</div>
86
88
</center>
87
89
88
-
This constant is called the <fontcolor='blue'>Lagrange multiplier.</font>
90
+
This constant is called the <fontcolor='red'>Lagrange multiplier.</font>
89
91
90
92
We continue solving this equation,
91
93
@@ -97,7 +99,7 @@ $$ \nabla_{x,y} f - \lambda \nabla_{x,y} g = 0$$
97
99
98
100
Note, setting $\lambda = 0$ is a solution if $f(x,y)$ is at the level (horizontal) regardless of $g(x,y)$.
99
101
100
-
Let us define another function $\mathscr{L}(x,y,\lambda) \equiv f(x,y) + \lambda g(x,y)$ to include all the conditions into one equation and solve for $\nabla_{x,y,\lambda}\mathscr{L}(x,y,\lambda) = 0.$ [ this function is also called the <fontcolor="blue">Lagrangian Function</font>, also note that $\lambda$ can be positive or negative ]
102
+
Let us define another function $\mathscr{L}(x,y,\lambda) \equiv f(x,y) + \lambda g(x,y)$ to include all the conditions into one equation and solve for $\nabla_{x,y,\lambda}\mathscr{L}(x,y,\lambda) = 0.$ [ this function is also called the <fontcolor="red">Lagrangian Function</font>, also note that $\lambda$ can be positive or negative ]
101
103
102
104
As there are three unknowns, $x,y$ and $\lambda$, would need to solve three equations.
References include <fontcolor="blue">my father's lecture notes on numerical methods and FEM at NITC (riverbed) </font>, <ahref="https://en.wikipedia.org/wiki/Lagrange_multiplier">Wikipedia</a>, <ahref="https://math.stackexchange.com">math.stackexchange</a>, <ahref="https://www.microsoft.com/en-us/research/people/cmbishop/">Pattern Recognition and Machine Learning, Bishop</a> and <ahref="https://ocw.mit.edu/courses/mathematics/18-02-multivariable-calculus-fall-2007/video-lectures/lecture-13-lagrange-multipliers/">MIT OWC Multivariable Calculus. (necklace intuition)</a>
219
+
References include my father's lecture notes on numerical methods and FEM at NITC (riverbed), <ahref="https://en.wikipedia.org/wiki/Lagrange_multiplier">Wikipedia</a>, <ahref="https://math.stackexchange.com">math.stackexchange</a>, <ahref="https://www.microsoft.com/en-us/research/people/cmbishop/">Pattern Recognition and Machine Learning, Bishop</a> and <ahref="https://ocw.mit.edu/courses/mathematics/18-02-multivariable-calculus-fall-2007/video-lectures/lecture-13-lagrange-multipliers/">MIT OWC Multivariable Calculus. (necklace intuition)</a>
218
220
219
-
All images are mine and are licensed under CC-BY-4.0. Softwares used include MATLAB, OSX Grapher, Preview.app and Adobe illustrator.
221
+
All images are mine and are licensed under CC-BY-4.0. Softwares used include MATLAB, OSX Grapherand Adobe Illustrator.
220
222
<hr>
221
223
222
224
I hope you had as much fun reading than I had writing this up!
Copy file name to clipboardexpand all lines: _posts/2018-03-09-school-resolution.md
+1-42
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ I needed to try and create some intuition of genetic engineering. I went with CR
50
50
My CRISPR slide.</div>
51
51
</div>
52
52
53
-
**Observations:** Visualizing protein structure using AR would be pretty cool. <sup><ahref="#first">1</a></sup>
53
+
**Observations:** Visualizing protein structure using AR would be pretty cool.
54
54
55
55
---
56
56
@@ -130,48 +130,7 @@ Enter the SpaceX Slide which brielfy taught about
130
130
Explaining this kids a simple contraint problem! Copyrights: (NAE Bridge/Lars Blackmore/SpaceX) </div>
131
131
</div>
132
132
133
-
### Sorcery.
134
133
---
135
-
<divclass="imgcap">
136
-
<imgsrc="/assets/school/me.png"width="50%">
137
-
<divclass="thecap"style="text-align:center">
138
-
When you allow kids to draw on your photo. Sorcery!</div>
139
-
</div>
140
-
141
-
haha, someone started writing the formular for angular velocity!!?, someone drew horns, someone a hat, someone gave me muscles!, I have no clue what that red thing is on the chair!
142
-
143
-
The best feeling I got is when someone wrote "come again!".
144
-
145
-
146
-
I will!
147
-
148
-
<hr>
149
-
150
-
151
-
#### EDITS + UPDATES
152
-
<divid="first">
153
-
154
-
<b>1:</b>
155
-
156
-
I tried to visualize a DNA strand using Vuforia and Unity and results are great! The only bad review from kids was the 3D model which I had freely downloaded. :(
157
-
158
-
I hope I'll try to make my own blender, perhaps model and open source this!
Copy file name to clipboardexpand all lines: _posts/2019-09-10-Visions.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ p {
14
14
15
15
</style>
16
16
17
-
**Note:** This is [a comment I wrote on Reddit](https://www.reddit.com/r/Indian_Academia/comments/cqttnh/best_skillset_to_invest_in_now/ewzmozd/). As I'm right now going extremely slow on an original, quality post -- I hope this will suffice the need reading something new in my blog.
17
+
**Note:** This is [a comment I wrote on Reddit](https://www.reddit.com/r/Indian_Academia/comments/cqttnh/best_skillset_to_invest_in_now/ewzmozd/) as right now I'm going extremely slow on an original, quality post -- I hope this will suffice the need to read something new in my blog. I expect the new post to be out around December last week.
0 commit comments