#help-36
1 messages · Page 269 of 1
when u say things like 2*3 u mean 2³
yep so times the numerator by 3 as well
so x/2 = 3x/6
and the same for 2x/3
to get 4x/6
now you can add them to 7x/6 = 21
times both sides by 6
so 7x = 126
divide by 7
x= 18
question asks for half the value, so 18 / 2 is 9
ngl this one was kinda confusing
yeah thats fair its just some algebra
eh ill understand
but ngl in these math questions im just knocking off big or small numbers
to be left with 50/50 chance
And my exam is tomorrow too
yea
feel free
lets start with this
so lets solve each inequality
an inequality is when two terms are compared using >, <, <= or >=
so the first one
What does that weird E mean
Ypsilon?
so like x is a part of which set
variables
yea
so to solve the inequality
cross multiplication 7(x-2) < 2(x+3)
7x-14 < 2x+6
7x - 2x < 6 + 14
5x < 20
x < 4
so x has to be smaller than 4, not including 4
second one 5(2x-4) <= 4(3x-2)
so 10x - 20 <= 12x-8
So u add the upper stuff with the ones down or
so 8 - 20 <= 12x - 10x
so -12 <= 2x
-6 <=x
so x can be greater than or equal to -6, butless than 4
so its [-6, 4)
which is B
so 30 is what he recieved, but there was 25% tax
meaning his original income was 40, since 40 * 0.75 = 30
so since its 8%, 0.08 * x = 40
x = 40 / 0.08
,calc 40/0.08
Result:
500
so its D
i wont have the oppurtunity to calculator
thats fine also
yea
5 divided by that is 500
alr do 22 and this is gonna be the last one
2/7 2/5 3/1
not quite
its tricky here because it says 2/5 of the REMAINDER
but adding ×
yea
if he spends 2/5 he has 3/5
so 3/5 of 5/7 is 3/7
and he spends 1/3 so he has 2/3 left
2/3 of 3/7 is 2/7
since 2x/7 = 26
2x = 182
and x = 91
so D
Dam that wasnt hard
yes its confusing because the remainder
Thanks for spending 30 minutes helping me on math tho
no prob
its . close
it's .close.
.close
Closed by @north bison
Use .reopen if this was a mistake.
thx
Send your question here to claim the channel.
Remember:
• Ask your math question in a clear, concise manner.
• Show your work, and if possible, explain where you are stuck.
• Do not immediately ping people or roles. After 15 minutes, feel free to ping <@&286206848099549185> once.
• Type the command .close to free the channel when you're done.
• Be polite and have a nice day!
Read #❓how-to-get-help for further information on how to ask a good question, and about conduct in the question channels.
So I wanna find the first lagrange polynomial here
the formula for first degree Lagrange polynomial is $P_1(x) = f(x_1) L_1(x) + f(x_2) L_2(x)$
MxRgD
yea, was about to type that
cool , so that verifies what I wanted to verify
thanks
.close
Closed by @warm python
Use .reopen if this was a mistake.
Send your question here to claim the channel.
Remember:
• Ask your math question in a clear, concise manner.
• Show your work, and if possible, explain where you are stuck.
• Do not immediately ping people or roles. After 15 minutes, feel free to ping <@&286206848099549185> once.
• Type the command .close to free the channel when you're done.
• Be polite and have a nice day!
Read #❓how-to-get-help for further information on how to ask a good question, and about conduct in the question channels.
hi guys could you help me with this sequences and series question please
Yes, but tell us what you tried and know about logs
Oh okay cool so let me quickly draw what i did already
and then a = log3/2
r = 8/9
but idk wht they want from me 😭
hehe
yess
You used that log(a)+log(b)=log(a+b) which is not always true.
Try to write some terms out and see what happens using that
logs of products, not logs of sums
ok let me see
You can use this formula
$$ \sum \log(a_{i}) = \log\left(\prod a_{i}\right) $$
William James Moriarty
i did this
the bottom expression is not the same as the sum; it's actually [\sum_{n=1}^{48}\log_5\left(\frac{n+2}{n+1}\right)=\log_5\left(\frac32\right)+\log_5\left(\frac43\right)+\ldots+\log_5\left(\frac{50}{49}\right)]
yeah sorry thats way too complex for me
Flip
but with multiplication in place of addition, all is well
okkk nicee thank u i did that but where do i go from there
The result not true
But 3, 4, 5, ..., 49 cancels out so you should get 50/2.
cancels out what
the 3 in the numerator of the first fraction cancels with the 3 in the denominator of the second fraction. the 4 in the numerator of the second cancels with the 4 in the denominator of the third so on so forth
yeah thats where im struggling
Okay let me try that thank you so much guys
so do i have to write out more terms
You do not. You can cross out 5 and 49.
why though
No
is that just a rule or something
Just try observing the sequence!
okay so eventually all the denominators will cancel then?
yup!!
except 2 ofc
Along with all numerators asw!
with any question like that?
I mean yeah?
this is crazy
-# As long as its following the basic rules of multiplication
🔭
ok u lot are smart tysmmm guyss 🥰
Yup!
Its called a telescopic sequence
really? wow new terminology
Yep they cancel one by one all the way along the chain. only things that have nothing to cancel w are 2 on the bottom and 50 on the top no fraction before and after
niceeeee
this is y i love this server man
ok tysm guys i get it now
Welp then lets us know your final ans!
Ok yea i got 2
YAYY
nahhh some prove questions r crazy
ty again guys, i'll be back for more 😭
Sure anytime!
Your wlcm!
Have a nice day!
Closed by @mint forum
Use .reopen if this was a mistake.
Send your question here to claim the channel.
Remember:
• Ask your math question in a clear, concise manner.
• Show your work, and if possible, explain where you are stuck.
• Do not immediately ping people or roles. After 15 minutes, feel free to ping <@&286206848099549185> once.
• Type the command .close to free the channel when you're done.
• Be polite and have a nice day!
Read #❓how-to-get-help for further information on how to ask a good question, and about conduct in the question channels.
Let f : N → N be a bijective function, and define another function g : N → N
by g(x) = xf(x) . We say that g is golden if g is non-decreasing . Determine the number of functions
f : N → N for which g is golden. Take N = {1, 2, 3, . . . , 2026}.
Have you tried anything?
If you don't know where to start, I'd start by trying to construct some examples
for example what can f(1) be?
quite interesting question btw, stealing it
f(1) can be anytg from 1 to 2026
Really?
keep in mind that f is bijective
there will have to be something that'll eventually map to 1
and you need the g to be non-decreasing
yea if f(1) is 2026, f(2) = 2025 is perfectly fine and i assume it works out like that
oh nvm
f(2026) goes to 1
then g(x) is also 2026
but g(2) is 4050
ahhh
ok so the highest valaue in this case wud be g(1013) = 1013*1012
f(x) = 2027 - x
hm now i realized that i was maybe a bit too strict
yeah, this doesnt work
i actually dont think this can work
yea yea that is when f(x) = 2027-x
so it wont work
but the thing i cannot always define f(x) as x or 2027-x or smtg in that form
it can also be jumbled
and i dont know how to work it out then
I think that f(1) can only be 1 or 2, but i forgot how / if i even proved proved it
oh
interesting
hmm, suppose f(1) = n
then we have some m for which f(m) = 1
g(1) = n
g(m) = m
so n <= m
We can use the fuct that 2026=2×1013
And 1013 is a prime number
g(2) can be 2026
And f(2)=1013 for example
what would the other values be?
I think we can assume that f is a linear function
nope, i have non-linear sols
i think I know what the solution class is
but i cant prove it
what do u think it is
so that i can also think abt proving it
uhh
this is very tempting
y wud u send it tho 😭
for @timber pilot
you can open it if you wanna see it
im not even sure whether its correct
it's virtual bubble wrap
fr
you probably would've been better off dming it
g is non decreasing?
yeah, thats in the question
xf(x)≤(x+1)f(x+1)
<=
if you dont know what to do now, just try constructing some sols
i did that for smaller sets
ill try to find a way to prove that my solution class is correct in the meantime
ok
very roughly, my idea is that f can never grow too quickly
most solutions will be very close to f(x) = x
hmm
f(1) = 2
f(2) = 1
f(x) = x
this would be one sol e.g.
f(2025) = 2026
f(2026) = 2025 also is fine
basically u can switch any 2 adjacent numbers
ig
but thats not an exhaustive set
see if you can
i dont think u can put f(1) = 3
yeah
and I also dont think you can put e.g. f(3) = 5
or f(2) = 4
but can u put f(2024) = 2026
...
f(2024) = 2026
f(2025) = 2025
f(2026) = 2024
doesnt work because 2025 * 2025 != 2024 * 2025
yea this doesnt work
so the only case is when u swtich 2 adjacent numbers??
damn
is that true
the missing part in this argument is that maybeee 2024,2025,2026 could appear somewhere before 2024
I think I get an idea
but i dont think that can happen, because intuitively, that just makes the problem bigger (more difference between f(x) = x and the function) and delays it
so yeah, this is my solution class
swapping some adjacent numbers
<@&268886789983436800>
but is there a way to prove it
maybe william has an idea
but honestly idk yet
maybee some kind of minimal counterexample thing could work
oh maybe considering the loop
f(1) = n
f(n) = m
f(m) = p
...
f(q) = 1
this creates kind of a loop
maybe there could be a way to prove that the loop cant be big
if you can prove that the loop is 1 or 2 in length, then youre done
<@&268886789983436800>
wth
g is non decreasing function
So g(x)≤ g(x+1)
xf(x)≤(x+1)f(x+1)
If we assume that f is decreasing f(x)>f(x+1)
That mean f(x)≥f(x+1)+1
f(x)/f(x+1)≥1+1/f(x+1)
And f(x)/f(x+1)≤1+1/x
So
f(1+x)≥x
wait take the loop to be of size 3
We can say that f(i)≥i+1
that sounds wrong
That's contradiction
I assume tht f is decreasing
And i get this result
Yes
for k<m<l
f(k) = m
f(m) = l
f(l) = k
g(k) = mk
g(m) = ml
g(l) = lk
so lk>=ml>=mk
but the first part of the inequality, lk>=ml gives k>=m, but we know m>k
f can't be constant
Because f is bijective
this deals with loops of size 3, induction can get it to arbitrary size i believe
but there is still sth missing i think
what if you had l < k < m
or some other arrangement
yeah, but
f(1) = 2
f(2) = 1
f(3) = 3
f(4) = 4
...
works but isnt increasing
in that case wudnt they be part of a bigger loop or smtg like that?
f(k) = m
f(m) = l
f(l) = k
WLOG suppose that k is the lowest number
Now there are 2 cases:
k < m < l
k < l < m
you need to deal with both the cases
you did the first one
whats WLOG
without loss of generality
oh k
we dont lose anything by that assumption, because we could just rotate the values and get k to be the lowest one
yea so it works for the other case also right?
yeah
so loop size 3 isnt possible
now we just need induction for bigger loops i think
and im assuming a bigger loop is not possible either
there must be a more elegant argument tho
wait so r u sure bigger loops are impossible?
not yet
but we can try
suppose that loops of size < n are impossible, we will try to prove that loops of size n are impossible as well
my idea is that if we get some loop of size n, then we could maybee extract some element safely without breaking the loop-ness
and then we would have loop of a smaller size
contradiction
but it might not work
so ig there is a diff more elegant mehtod to thiis
idk, the safest element of the loop to remove is the largest one prolly
also i didnt really understand this
can u explain it a bit more
Are you familiar with proofs by minimal counterexample?
no
Its basically just contradiction
suppose that there is a loop with size > 3
take the smallest such loop
if we can find a way to make that loop even smaller by extracting some element and rejoining the loop in a way that keeps it working, then thats a contradiction
wdym by smallest such loop?
because we have found a smaller loop
hm ill just check if it even works and then explain it in more depth if it does
or maybe ill find something more elegant
yeah im typing out my proofs in here
they dont work very well
Wud u mind dming the proofs tho
well, nothing really worked so far
i tried contradiction on f(i) >= i+2
then f(1), f(2), ..., f(i) have at most i-1 elements from {1,2,3,...i+1}
ohhh
that means that 2 elements of {1,2,3,...i+1} will not be mapped to
@lofty spade Has your question been resolved?
\begin{tcolorbox}
Assume that for some $k \in {1, \dots, n}$, the values
$${f(1), f(2), \dots, f(k-1)}=[k-1].$$
Then, either $f(k)=k$ or $f(k)=k+1$ and $f(k+1)=k$.
\end{tcolorbox}
\vspace{0.3cm}
Did ygs establish this yet
Civil Service Pigeon
I can't really tell if this was mentioned
because I see some loop ideas but idk if this is what y'all ere thinking of
oh nvm I think you got the consequence of this anyway (every valid permutation is a product of disjoint consecutive blocks of size 1 and 2, where the blocks of size 2 are adjacent transpositions)
Closed due to timeout
Use .reopen if this was a mistake.
.reopen
✅ Original question: #help-36 message
\begin{tcolorbox}
Assume that for some $k \in {1, \dots, n}$, the values
$${f(1), f(2), \dots, f(k-1)}=[k-1].$$
Then, either $f(k)=k$ or $f(k)=k+1$ and $f(k+1)=k$.
\end{tcolorbox}
\vspace{0.3cm}
Since ${f(1), \dots, f(k-1)}=[k-1]$, none of $1$, $\dots$, $k-1$ are available at position $k$. If $f(k)=k$, then we are done. \
From now on, we assume that $f(k) \neq k$. Then, $f(k) \geq k+1$. Let $t$ be such that $f(t)=k$. Then, $t>k$. Consider any $i \in [k, t-1]$. It is easy to see that $f(i) \geq k+1$ for every such $i$, so
$$g(t-1)=(t-1)f(t-1) \geq (t-1)(k+1).$$
And since $g$ is nondecreasing with $g(t)=tf(t)=kt$,
$$(t-1)(k+1) \leq sk \implies s \leq k+1$$
and so $f(k+1)=k$. \
Snce $g$ is nondecreasing,
$$g(k) \leq g(k+1) \implies kf(k) \leq (k+1)k \implies f(k) \leq k+1.$$
But we also have $f(k) \geq k+1$, so $f(k)=k+1$ (and $f(k+1)=k$.) \ \
So, either $f(1)=1$ or $f(1)=2$ and $f(2)=1$. Proceeding inductively, the following is trivial:
\begin{tcolorbox}
Every valid permutation is a product of disjoint consecutive blocks of size $1$ and $2$. All blocks of size $1$ are fixed points and all blocks of size $2$ are adjacent transpositions.
\end{tcolorbox}
Civil Service Pigeon
Ok enjoy my yap
I'd want to guess that all such block decompositions produce a valid f
is there anything in here about that
idt there's anything
Well a block of size $1$ at position $i$ would have $g(i)=i^2$
Civil Service Pigeon
For a block of size $2$ at positions $i$ and $i+1$, we have $f(i)=i+1$ and $f(i+1)=i$
Civil Service Pigeon
oh wait $g(i)=g(i+1)$ from this then
Civil Service Pigeon
ok so g is constant on any block of size 2
g is non decreasing
so we just need to show that g does not decrease between blocks
wait that's obvious
oh shoot this is really nice
ok I see wym
yeah it's just recursion now
damn unexpected connection

or maybe it is and I'm just dense lol
@lofty spade @onyx peak enjoy my stream of consciousness ig
<@&268886789983436800>
@lofty spade Has your question been resolved?
Closed due to timeout
Use .reopen if this was a mistake.
Send your question here to claim the channel.
Remember:
• Ask your math question in a clear, concise manner.
• Show your work, and if possible, explain where you are stuck.
• Do not immediately ping people or roles. After 15 minutes, feel free to ping <@&286206848099549185> once.
• Type the command .close to free the channel when you're done.
• Be polite and have a nice day!
Read #❓how-to-get-help for further information on how to ask a good question, and about conduct in the question channels.
For 31 I think our lower bound step function is 1/floor(x+1) and our upper bound step function is 1/floor(x). I don't see how they can equal a_k and a_k-1 though
We know that for a step function s(x) we have $\int_a^b s(x)dx=\sum_k=1^n s(x_k) (x_k-x_{k-1})$
BigBen
I see that we have the $a_k-a_{k-1}$ in both sums for 31 and they represent each sub interval which leaves us with $\frac{1}{a_k}=\frac{1}{\floor{x+1}}$ and likewise for the other sum
BigBen
But how could $a_k=\floor{x+1}$
BigBen
@left trail Has your question been resolved?
<@&286206848099549185>
@left trail Has your question been resolved?
well
both fractions have the same numerator
so it has the same denominator
It isn't the same a though
elaborate
@left trail Has your question been resolved?
Closed due to timeout
Use .reopen if this was a mistake.
Send your question here to claim the channel.
Remember:
• Ask your math question in a clear, concise manner.
• Show your work, and if possible, explain where you are stuck.
• Do not immediately ping people or roles. After 15 minutes, feel free to ping <@&286206848099549185> once.
• Type the command .close to free the channel when you're done.
• Be polite and have a nice day!
Read #❓how-to-get-help for further information on how to ask a good question, and about conduct in the question channels.
whats the difference conceptually?
What do you mean conceptually?
One holds for all, one holds just for sone
like in concept
i see
right right
∃x means "there exists an x" - implicitly "there exists at least one x"
∀x means "for all x"
can we say that
Universal is also existential, but existential isn't universal
does that make sense 😭
if its universal it must be existential, but it cannot be vice versa
there
hmmmm well technically no
there's an idea of "vacuous truth" which is where you say like
∀x: P(x) is true if there are no x's to begin with
but.... i see what you mean. Assuming you have at least one thing in your set,
∀x: P(x) ==> ∃x: P(x)
because if it's true for all of them then it's true for at least one of them
Closed by @ivory lynx
Use .reopen if this was a mistake.
Send your question here to claim the channel.
Remember:
• Ask your math question in a clear, concise manner.
• Show your work, and if possible, explain where you are stuck.
• Do not immediately ping people or roles. After 15 minutes, feel free to ping <@&286206848099549185> once.
• Type the command .close to free the channel when you're done.
• Be polite and have a nice day!
Read #❓how-to-get-help for further information on how to ask a good question, and about conduct in the question channels.
Channel closed due to the original message being deleted.
If you did not intend to do this, please open a new help channel,
as this action is irreversible, and this channel may abruptly lock.
Send your question here to claim the channel.
Remember:
• Ask your math question in a clear, concise manner.
• Show your work, and if possible, explain where you are stuck.
• Do not immediately ping people or roles. After 15 minutes, feel free to ping <@&286206848099549185> once.
• Type the command .close to free the channel when you're done.
• Be polite and have a nice day!
Read #❓how-to-get-help for further information on how to ask a good question, and about conduct in the question channels.
if for a 2x2 matrix, A^3 - 3A^2 + 2A = 0, then can i say that A^2 - 3A + 2 is its characteristic eqn??
no
why not
take the zero matrix
from your information you can only conclude that your char poly is one of six different options
@lofty spade Has your question been resolved?
Closed due to timeout
Use .reopen if this was a mistake.
Send your question here to claim the channel.
Remember:
• Ask your math question in a clear, concise manner.
• Show your work, and if possible, explain where you are stuck.
• Do not immediately ping people or roles. After 15 minutes, feel free to ping <@&286206848099549185> once.
• Type the command .close to free the channel when you're done.
• Be polite and have a nice day!
Read #❓how-to-get-help for further information on how to ask a good question, and about conduct in the question channels.
Question?
How do you get to the formula on the right with that constructed cube?
And how was it constructed?
watch the video ig
Take a cube of length x, add 3 cuboids of lengths (x,x,1), add 3 cuboids of lengths (x,1,1), and finall add a cube of length 1
it isnt a video
why
maybe
start with a cube of side 1
add x to every side
the equation is just shwoing a relation between the volume of 1st cube , volume of 2nd cube and x
do you understand till here ?
no
what course are you studying in uni
(so that i can explain with some reference to it)
mathematical methods for engineering
?
(x+1)^3 is the volume of the whole thing, a cube with side length x+1
The pic shows that it's equal to x³+3x²+3x+1
The blue cube is of side length x, so its volume is x³
The 3 green cuboids are (x,x,1) so their total volume is 3x²
The 3 orange ones are (x,1,1) so their total volume is 3x
And lastly the pink cube is of side length 1, so its volume is 1
I was actually interested in knowing how to factor a polynomial in general using that cube, not this particular example.
Then you'd need higher dimensions
(for higher degree polynomials)
But uhm... This is only nice here because it's a cube
there is no general "method" for factoring a polynomial instead of finding its roots
Closed by @twin pivot
Use .reopen if this was a mistake.
Send your question here to claim the channel.
Remember:
• Ask your math question in a clear, concise manner.
• Show your work, and if possible, explain where you are stuck.
• Do not immediately ping people or roles. After 15 minutes, feel free to ping <@&286206848099549185> once.
• Type the command .close to free the channel when you're done.
• Be polite and have a nice day!
Read #❓how-to-get-help for further information on how to ask a good question, and about conduct in the question channels.
do u remember the question i asked that day
its part of that only
the one with AB and BA?
have you thought in the mean time about tr(AB) and tr(BA) ?
see the msg in help 23
.close
Closed by @lofty spade
Use .reopen if this was a mistake.
Send your question here to claim the channel.
Remember:
• Ask your math question in a clear, concise manner.
• Show your work, and if possible, explain where you are stuck.
• Do not immediately ping people or roles. After 15 minutes, feel free to ping <@&286206848099549185> once.
• Type the command .close to free the channel when you're done.
• Be polite and have a nice day!
Read #❓how-to-get-help for further information on how to ask a good question, and about conduct in the question channels.
Channel closed due to the original message being deleted.
If you did not intend to do this, please open a new help channel,
as this action is irreversible, and this channel may abruptly lock.
Send your question here to claim the channel.
Remember:
• Ask your math question in a clear, concise manner.
• Show your work, and if possible, explain where you are stuck.
• Do not immediately ping people or roles. After 15 minutes, feel free to ping <@&286206848099549185> once.
• Type the command .close to free the channel when you're done.
• Be polite and have a nice day!
Read #❓how-to-get-help for further information on how to ask a good question, and about conduct in the question channels.
Yooo
Need help understanding Lagrange multipliers
What do you know so far?
One thing I know though is that Lagrange multipliers are just another method of doing the same exact critical point optimization problems right
They give a more systematic way of solving for the critical points on a boundary, yes
Or on a contraint like the ones you're given.
Could you use Lagrange multipliers for the problems we did yesterday as well?
Wait can we do it on the box problem
Yes, you would find the critical points of the function in the inside of the region first like you did in the beginning, and then instead of having to parameterize the boundary and all that stuff you can just use Lagrange multipliers to find critical points on the boundary.
And yes that would work on the box
Yes, that's our constraint now.
Yeah so our volume needs to be in such a way that doesn’t pass that girth
Yeah. The volume is V(W,H,L) = W*H*L and the constraint is L + 2W + 2H - 108 = 0.
Yes
So first for Lagrange multipliers you would compute the gradients of the functions V(W,H,L) and g(W,H,L) = L + 2W + 2H - 108.
Why’s that?
https://www.youtube.com/watch?v=5A39Ht9Wcu0 maybe this helps, maybe not
If you have an objective function $f(x,y,z)$ along with a constraint $g(x,y,z) = 0$, then the Lagrange multipliers method says that the extrema on the constraint will occur when $\nabla f (x,y,z) = \lambda \nabla g(x,y,z).$
Azyrashacorki
So here your objective function is $V(W,H,L)$ and the constraint is $g(W,H,L) = L + 2W + 2H - 108 = 0$
Azyrashacorki
May I ask for the intuition behind that? Like I’m seeing one gradient vector which is the one of the constraint function being scaled by some value to then become the gradient of the objective function
I think it's better imaged in functions of 2-variables, but it still works for more.
Were you gonna say something after this
I didn’t wanna interrupt
Yes, but it's not easy to understand what's going on in writing.
I'm trying to think of a picture.
I think we've discussed the fact that the gradient vector is perpendicular to a level set right?
No not really
Thing is I’m also trying to intuitively understand the gradient vector ngl to you
Like if f(x,y) = k is a level set (the set of (x,y) such that f(x,y) = k, so on this set f(x,y) is a constant k), then grad(f) points orthogonally to the level set since the steepest ascent is orthogonal to direction of no ascent at all, aka orthogonal to the level set.
Could you please explain to me how the gradient vector behaves in general
I know it’s the components in 2D of the x partial derivative and the y partial derivative
But idk what’s that exactly supposed to mean or look like
The general idea is that the gradient points in the direction where the function increases the fastest.
wouldn't it be better to just tell him how to solve lagrange multiples
They asked for an explanation.
ohhh are they doing the theory part
makes sense
If you remember the directional derivative of $f(x,y)$ in the direction of a unit vector $\vec{u}$ being $D_{\vec{u}} = (\nabla f) \cdot \vec{u} = ||\nabla f|| \cos(\theta)$ where $\theta$ is the angle made between $\vec{u}$ and $\nabla f$.
Azyrashacorki
Yeah I remember we did directional derivatives but not necessarily the cos interpretation but yeah I did the dot product before
And in particular, since $\cos(\theta)$ attains its maximal value when $\cos(\theta) = 1$, aka when $\theta = 0$, this suggests that $D_{\vec{u}}$ is greatest when $\vec{u}$ is in the same direction as $\nabla f$.
Azyrashacorki
aka. $\nabla f$ points in the direction where the directional derivative is the largest : in the direction of fastest increase ("steepest ascent").
Azyrashacorki
Wait so where did |(gradient)f| · cos(θ) come from
That's how you can interpet the dot product.
$\vec{a} \cdot \vec{b} = ||\vec{a}|| \cdot ||\vec{b}|| \cos(\theta)$
Azyrashacorki
Here u is a unit vector, so ||u|| = 1
I think I got lost here
Where you’re talking about cos being at max value and how that correlates to the gradient
Well this dot product |grad(f)| cos(theta) is the directional derivative.
|grad(f)| is a positive number, and -1 <= cos(theta) <= 1.
So the number you get from this dot product is greatest when cos(theta) = 1, which means the angle between the direction you're computing the derivative in and the direction in which grad(f) points is 0.
Which means you compute the biggest directional derivative when the direction you're using is the same direction as grad(f).
Which means that grad(f) always gives the direction in which f is increasing the fastest.
Oh okay yes I agree
Yes
Lost 
At a point you can compute the directional derivative in any direction.
Yes
You agreed that you compute the biggest directional derivative when the direction you're computing in is the same direction as grad(f).
Yeah
So grad(f) points in the direction in which the directional derivative is the largest
So grad(f) points in the direction in which the function has the greatest rate of change
I mean I guess I don’t get it because of the following:
you said “points” which suggests a direction
All I know is that the dot product of the gradient vector and the unit directional vector can decrease and increase depending on the angle, but that’s that the scalar value you’d get from the dot product increases/decreases and I don’t really know how that indicates some sort of direction
And lastly I don’t really know what partial of f = <f_y,f_x> are really supposed to represent or look like
grad(f) and u are both vectors. They point in some direction.
So there's an angle between them, theta.
If you compute the directional derivative in the direction of u, you end up finding that it depends on this angle theta, and that it's maximal when theta = 0.
So this angle between grad(f) and u needs to be 0.
This means that as vectors, they point in the same direction.
And in particular, amongst all the directions you could've chosen to compute your derivative in, the one which is in the same direction as the vector grad(f) yields the largest rate of change.
I think my problem may be in not understanding the gradient vector in and of itself
Well you'll agree it's a vector I suppose
Yes it’s a vector I agree
But I don’t get the components,
Like this first component is the derivative wrt x and the second component the derivative wrt y
But those are just tangent lines
They aren't tangent lines. They're slopes of tangent lines in the x and y direction, respectively.
Oh
Wait
Is the gradient vector the component of all possible instantaneous velocities of both partials
If you want, the gradient vector contains the information about the tangent plane. It tells you the slopes of the tangent plane at a point in the x and y direction.
This is why you can use the gradient to find an equation to the tangent plane.
So if the gradient vector is (1,2) at a point, you know the tangent plane will have the form 2x + 1y - z = d for some constant d.
I mean tbh with you I never use the gradient to find the tangent plane I just do it the vector interpretation way 😂
Which is very complicated
But that’s how I learned it
Btw you taught me that the other day Lolol
But yeah
The point is the gradient vector is linked to the best linear approximation (a plane) of f(x,y) the same way the usual derivative is linked to the best linear approximation (a line) of f(x) in the 1-variable sense.
I guess for now I can just accept the fact that the gradient points to the where the function increases the most
Right
Okay!
So where were we
Right so the gradient points in the direction of fastest increase.
Now say you consider the points on the level set f(x,y) = 1 for a constant 1.
Those are specifically those points (x,y) such that f(x,y) = 1.
If you've ever seen a topographic map of a mountain or something, those are the lines where the height is a certain constant in this case 1, i.e. when f(x,y) = 1
yeah
yes
so
are you trying to scale the gradient of the level curve to be the same of that of the objective curve
Well first I wanted to explain why the gradient is always perpendicular to a level set.
So this level set comprises of points (x,y) for which f(x,y) = 1.
Therefore on this level set, the function f(x,y) is constant.
yes
Since f(x,y) is constant on the level set, it means that f(x,y) doesn't increase at all on it, yes?
i mean if it was horizontal
the level curve
Yes the level curve is "horizontal" since it lives in the plane z=1 in this case.
is that always the case
Yes, since you're requiring that z = f(x,y) = constant
So all the points satisfying f(x,y) = constant will be mapped to points on the plane z=constant.
Right
So now the thing is that grad(f) points in the direction of greatest increase
This direction has to be perpendicular to the direction in which f doesn't change.
And specifically, on the level set, f doesn't change.
So grad(f) must point perpendicularly to the level set.
wdym by this
Intuitively, if you're on a mountain and you make sure to always face the steepest ascent wall to the peak, if you go right or left you shouldn't be going neither up or down.
true
But in terms of directional derivatives it makes sense as well, since if $D_{\vec{u}}) = ||\nabla f|| \cos(\theta) = 0$ and we assume that $\nabla f \ne (0,0)$, then we need $\cos(\theta) = 0$, which means $\theta =90^{\circ}$.
Azyrashacorki
wait but where did directional derivatives come from
we were discussing gradients on the level curve right
Yes, and the above shows that if you're at a point on a level set and you keep going around this level set, since f doesn't change, you must be going exactly perpendicularly to the direction of greatest increase.
oh i see yeah
i think
Good. So we've established that the gradient always points perpendicular to a given level curve.
ill accept that
for the sake of time since i have a test tmrw 💀
Right, so before we go back to the exercise, the mechanism behind Lagrange multipliers is that you have f(x,y) and a constraint g(x,y) = 0 (which you can think of as a level curve of g(x,y)).
What we want is to find the maximum value f(x,y) can attain on this curve, so in particular we want to find a level curve f(x,y) = k which intersects the level curve g(x,y) = 0 (this means that the points we find are actually on the constraint we set) with the biggest value for k.
You can imagine taking a level curve f(x,y) = k which intersects the level curve g(x,y) = 0, probably at multiple points and slowly increasing k up until the level curve you get just kissed the level curve g(x,y) = 0. After this point, the level curve f(x,y) = k won't intersect g(x,y) = 0, so this suggests that this specific k where the two level curves just kiss corresponds to our maximum!
Now this means that if f(x,y) = k is this maximal level curve, it must be tangent to the level curve g(x,y) = 0 at a point! Now remember that the gradient of a function is perpendicular to its level curves. This means in particular that at this point where the level curves are tangent, the gradient vectors of f and g will have to be pointing in the same direction!
But what does this mean? It means specifically that $\nabla f(x,y)$ is a multiple of $\nabla g(x,y)$, i.e. $\nabla f(x,y) = \lambda \nabla g(x,y)$ for some $\lambda$.
Azyrashacorki
So the takeaway is that along a constraint, you only need to check those points where this happens
@dim flume Has your question been resolved?
can we work on the excercise maybe itll make a bit more sense?
Yes.
So we have a function $V(W,H,L) = WHL$ and a constraint given by the function $g(W,H,L) = L + 2W + 2H - 108 = 0$.
Azyrashacorki
Now you have to compute the gradients of those functions
how should i express the constraint function
in terms of 3 variables?
Like I said your constraint function is g(H,W,L) = L + 2W + 2H - 108
And your objective function is V(H,W,L) = WHL
Its gradient is not 0.
Yes. We're not super interested in the actual value of lambda. You can use those equations to figure out stuff about W, H, and L.
wdym? like solve for each of the three instead?
Well say from the first two equations you get that WL = 2lambda = HL.
Since L>0, what can you say about W and H?
greater than 0?
yeah idk
<@&286206848099549185>
Sorry I'm back.
You have WL = HL
If L is nonzero.
What can you do
Specifically what can you do on both sides of the equation
divide by L
so W = H?
Yes
So now we know that any point of extremums on the constraint satisfy W=H
Now from say the first and third equations you know WL = 2lambda = 2WH
Considering W > 0 what do you get ?
what are doing here though with these equations
i dont get where and why were coming up with them
You need to find W,H and L that render this system of equations possible.
From the first two equations you've already found that you need W=H.
From this one you should get something else
And this will give you essentially all the information you need about the side lengths that respect the constraint which give extremums.
howd you get 2wh
The first equation gives WL = 2lambda.
The third equation says that WH = lambda, so 2WH = 2lambda, so 2WH = WL.
oh sure
2H = L?
Yes.
So now you know that you need W=H, and L = 2H.
This is a lot of information, because remember we have our constraint which says that
L + 2H + 2W = 108
Using the two equations then can you solve for H in here?
H = 108/6?
=18
L = 36, W = 18?
i was watching you people type this out and this is correct...👍
thanks
wait so thats it
yep
wait so i just wanna know something
yes?
for the sake of time cuz i have a test tmrw i just wanna know if theres like one way into doing this problem that i can just "memorize" the steps of, such as how we did it here for the box problem, and if that method also applies for all optimization problems in 3D
i believe you just do this:
- Compute ∇f
- Compute ∇g
- Set: ∇f = λ∇g
- Add the constraint equation
- Solve the system
- Check boundaries if needed
Mind you this one was a bit more complicated because you need to translate the whole word problem thing, and it's an objective function in 3-variables, so not exactly easy to deal with at first.
It's still the same process, but you may find it's a bit easier to deal with the exercises you had at the start with just 2 variables first.
@dim flume Has your question been resolved?
do you think you could help me with this
Of course.
What do you think your objective function is here?
Hint : ||closest to the origin||
the plane?
Well what are you trying to minimize?
I give you a point in R^3 and you need to tell me how close it is to the origin
How do you quantify that?
i dont know tbh theyre just asking for a point closes to the origin idk how that relates to optimization like past problems
Okay. Say I give you a point (x,y,z), what's the length of the vector from the origin to (x,y,z)?
sqrt(x^2+y^2+z^2)
Good. Now you can work with this, but it's much simpler to consider the square of the distance to the point (x,y,z), since if you minimize the square of the distance, you minimize the distance itself.
So you should really be considering x^2 + y^2 + z^2.
Now this is the quantity you want to minimize, so this is your objective function.
The equation of the plane is a constraint.
wait wdym
We can work with sqrt(x^2 + y^2 + z^2) it doesn't matter.
So let's take the objective function f(x,y,z) = sqrt(x^2 + y^2 + z^2).
What is your constraint function in the form g(x,y,z) = 0?
why is that our objective function
the objective function is that which is bounded by the constraint function right
The objective function is the quantity you want to find the extremes of
but we want to find some point on the plane right
In this case "closest to the origin" suggests we want the point with the minimum distance to the origin.
The fact that this point has to be on a given plane is a constraint.
Ohhh
Because you need to minimize it.
The objective function (you probably have seen it also in calc 1) is the function you need to optimise, in other words either minimise or maximise
So like is our objective function literally the entire space
Yes, you can compute the distance to the origin of any point in R^3.
Ohh yeah that’s makes sense
We're restricting to points on the plane
First answer this
Wait so shouldn’t our constraint function be = C
Or am I conflicting two things
It's just standard to write it = 0. Notice that in any case we'll be taking its derivatives, so it doesn't matter.
I thought were taking it’s gradient
For Lagrange multipliers you take the gradient of two functions
An objective function
A constraint function which represents your constraint as a level set.
We are indeed
Gradient = vector containing partial derivatives with respect to x and y
Okay our constraint function is the plane correct
Yes can you write it down? g(x,y,z) = ?
2x -y +2z = 16 = g(x,y,z)
Okay so let's work with that. g(x,y,z) = 2x - y + 2z.
Wait why is it in terms of 3 variables
This should be in space right
Why did represent it like that
R4
Your objective function is a function from R^3 to R.
Your constraint will also be a function from R^3 to R, its level sets are surfaces in R^2.
3 variables to optimize => 3 variables in the constraint.
If you had an objective function from R^2 to R, you would haave a constraint which is a function from R^2 to R as well, whose level sets are curves in R^2.
Oh
So now compute $\nabla f (x,y,z)$ and $\nabla g (x,y,z).$
Azyrashacorki
the square root here is kinda ugly 😂 i saw you remove the sqrt earlier why were you able to do that
It's not that ugly to be honest
And it's symmetric you can do it once and then it'll be the same for y and z
ur right im trippin
Those partials aren't correct
isnt it just the power rule
Azyrashacorki
It is just like that.
Because you have a function inside. It's x^2 + a
But yes then it's the same as the other.
You set grad(f) = lambda grad(g) and get three equations.
Along with your constraint equation
And you try to deduce stuff about x,y and z from those.
Okay say equation 1 and 3 what do they tell you?
Ohhh
I was looking at 1 and 2 💀
Yes they’re equal
But why is that these sort of relationships are really random like it’s not a pattern or anything right
You need to find x,y,z such that the equation
grad(f) = lambda grad(g) holds for some lambda.
Lambda isn't important, the point is that x,y,z should satisfy those equations
substitution?
idek
Not really no. You have something = 2 and something = -1
What if you multiply the second one by -2?
it would be equal to equation 1 and 3
@blissful meadow my bad i accedentally replied with my other account 🤣
I was like wth
Good you're done now. So what's the point on the plane closest to the origin?
-2y = 32/9, so y = -16/9.
why can i not just solve for it in the plane equation
You can do, but it's much simpler if you use the fact that -2y = x as you've derived earlier.
In any case you said that $y = -(16 - \frac{128}{9})$ and then wrote $y$ as $16 - \frac{128}{9}$.
Azyrashacorki
And in general you would want them on the same denominator
true
So it's just easier using that fact that you know that -2y = x
is it okay to not understand this intuitively for now 💀
not this specifically
i mean
the lagrange multiplyers
Yes. It's very ok to accept that it works.
When I first learned about them I don't think I was grasping much of what was going on, but I knew it worked and that it was much easier than substituting on the boundary.
it really sucks that there are barely any available resources out there that can explain intuition to you
i gave up on reading the book because it doesnt explain intuition almost always 😂
Tbh there are lots of ressources that talk about it, along with loads of MathSE posts discussing it
I wouldn't say they're hard to find
oh really
for example when it comes to calc 3 is there any good book you would recommend
I think Stewart does Calc 3? It's pretty good for Calc 1 and 2 so I would assume it's also good for Calc 3
But in general textbooks may explain the intuition in a way that it more formal and so may not talk to you very much.
Especially for those types of things videos with nice visuals are golden
i agree
However, there is a balance in learning about something really deep and actually progressing. It happens to me a lot that I learn something I'm not totally sure I understand but can still use. I feel like using it so it's not such a strange thing anymore is the best way to balance progress and deep understanding.
Often I come back to those things without having done much heavy-lifting in terms of trying to understand what's going on and am surprised they don't seem so strange after all.
that was worded nicely
i agree with you on that, its just that when you start getting the hang of math you get addicted to wanting to understand everything 😂
but yeah i agree that progress is important so sometimes you just have to accept things
And the thing is as you learn more things and become more knowledgeable and do more exercises working with weird things, you get a new pair of eyes to see what's going on, and often that's just enough to make you understand.
That's not to say that it's not good to seek for deeper intuition but in some cases the best way to understand is to take things as a fact and see where you get.
i see
i appreciate that
do you think we can go over these? I hope im not taking too much of your time btw
this is a practice test btw not an actual one
No it's fine. I'm in between terms rn so got time
- first
What do you want to optimize?
so the surface area is what we wanna optimize
so i assume its equation is the objective function
the thing that needs to bound it
LOL i had the tab open 🤣
Hahah
its the thing that bounds it
so
i mean i wanna say its the volume equation because thats the only other function but also i dont see how its constraining it
Oh yeah right the volume = 16π
Yep, so now you have a constraint on the volume and an objective function
its the thing where you change their dimensions that get me
like here were just copying down the equations themsleves
but you said earlier that the dimensions must change if im not mistaken
No I said that if you have a 2-variable objective function you'll have a 2-variable constraint.
Which is the case here
and what about the constraint function
It has 2 variables, h and r.
is there like a guideline to know if you need to change dimensions or not
kinda like a flowchart
You don't need to change the dimension
Are you talking about the thing I was talking about yesterday about how you start in 3D then get a 2D boundary, then work in 2D and get a 1D boundary?
this here
like in the plane equation
we made it in R4
even though the plane is in R3
This all means the same as this.
n-variable objective function => n-variable constraint.
by constraint you mean the constraint function? so basically youre saying the constraint function and the objection function must be the same dimension?
Yes
Why do we have 42pir
You could always isolate lambda in your second equation and plug that back into your first equation 
well theres one thing tho i always get stuck here like idk what we need to do
i see that were solving for variables but i dont understand under what basis
like what is it that were tryna do
You need to solve the system of equation $$\begin{cases}4\pi r + 2\pi h = \lambda 2\pi h r \ 2\pi r = \lambda \pi r^2 \ \pi r^2 h = 16\pi\end{cases}$$
Azyrashacorki
Three equations, 3 unknowns.
i only have two equations tho
is it always the case that you must solve 3 systems?
You have your two equations from the gradients and one from the constraint
but in the previous problems i had 3 equations already from the gradients
and i dont remember using the constraint
You had 3 equations from the gradients, and one equation from the constraint, solving for 4 variables x,y,z and lambda.
<@&268886789983436800>
The gradient of an n-variable function will give you n equations, and you'll have one extra equation from your constraint, which will give n+1 equations in n+1 variables x_1, ..., x_n and lambda.
i dont get it 😭
after you get the system
what do you wanna do
like whats the goal
You have to rearrange stuff in order to solve the system
You can go at it equation by equation. Look at equation 2 here for example.\
This is the same as $2\pi r - \lambda \pi r^2 = 0$, or $\pi r(2 - \lambda r) = 0$.
Azyrashacorki
In what cases does this hold?
wait so i need to solve the system right
Yes. But in particular you can get nice conditions if you consider one equation, see what it takes for it to hold, and working in cases.
So like here, if you have $\pi r(2-\lambda r) = 0$ (this is the second equation rewritten), you'll see that the only way this holds is if $r=0$ or if $\lambda r = 2$, right?
Azyrashacorki
yes i agree
but idk im stuck on the systems part llike right after we solve the system'
Once you get all solutions to the system, you have your extrema.