#max of sum

269 messages · Page 1 of 1 (latest)

sudden hare
#

i didn't solve taht someone can explain a method not to solve this thx

zenith relicBOT
craggy sapphire
sacred kettle
craggy sapphire
#

There’s 2 main approaches here

craggy sapphire
craggy sapphire
sudden hare
#

sould i remplace x by sqrt( 1 -y square) ?

craggy sapphire
#

And the other is parametrisation

sacred kettle
#

tbfair on second thought that sounds really tedious (wrt substitution)

craggy sapphire
#

First off

#

You can simplify your expression

#

Into a simpler problem

#

Before doing anything else

#

Do you see how? @sudden hare

sudden hare
#

mmmh

#

lemme take a moment

#

remplace x by cos(x) ? and y by sin(x) ?

craggy sapphire
#

That’s one approach yes

#

But don’t do it yet

#

You can simplify the problem

#

Just by doing some algebraic manipulation

#

Do you see how?

#

Also there is also a neat secret third approach, using AM-GM

sudden hare
#

AM-GM ?

craggy sapphire
#

It’s an inequality

#

But forgot that for a moment

sudden hare
#

okok

craggy sapphire
sudden hare
#

nop

craggy sapphire
#

Okay, is it okay if I walk you through that?

#

Or do you want a hint?

sudden hare
#

yes yes

sudden hare
#

i need the method npt the solution

craggy sapphire
#

Yes

#

So this is only a first step

#

To make the problem somewhat easier

#

Try and make use of the fact that x^2 + y^2 = 1

#

In the expression -x^2 + 10xy + 23y^2

#

And simplify it, by adding 0

#

That’s the hint

sudden hare
#

Should I substitute?

craggy sapphire
#

If possible yes

#

But you need to add 0 first

#

In a certain way

sudden hare
#

add 0 ? where

#

there is a web with math writing ?

craggy sapphire
#

You can use latex here

craggy sapphire
#

As terms

#

But that’s far from x^2 + y^2

sudden hare
craggy sapphire
#

To make it look like x^2 + y^2

sudden hare
#

oh ok $

craggy sapphire
#

Up to some factor

sudden hare
#

not need compex number ?

#

complex

craggy sapphire
#

No

#

Let me maybe give you an example

sudden hare
#

yes pls

craggy sapphire
#

Say we knew that ab=1, and we wanted to simplify a^2b

#

What could we do?

sudden hare
#

b =a-1 so 2b =2(a-1) so a^b=a^a(a-1)

craggy sapphire
#

Okay let me try something else

#

Say we knew a = 1

#

And we wanted to simplify a+b

sudden hare
#

and ab=1 ?

craggy sapphire
#

No ignore that

sudden hare
#

okok

craggy sapphire
#

New example

sudden hare
craggy sapphire
#

Mhm

#

Now, in our problem above

#

We can think of x^2 + y^2 as being the same as a

#

I.e a = 1

#

And we want to find a in -x^2 + 10xy + 23y^2

#

Now how do we do this?

#

We something very close it

sudden hare
#

ohhhh

#

i understand

craggy sapphire
#

-x^2 + 23y^2

#

Is almost the same as x^2+y^2

sudden hare
#

yes

craggy sapphire
#

But we need to add 0

#

To change perspective

#

In a cleaver way

sudden hare
#

ok lemme take a moment

#

i don't find

#

I don't see where you're going with this.

craggy sapphire
#

Want me to reveal it?

sudden hare
#

yeah

craggy sapphire
#

add 23x^2 - 23x^2 to - x^2 + 10xy + 23y^2

#

I’m adding 0 here

#

So nothing changes

sudden hare
#

AHHHHH

craggy sapphire
#

Mhm

#

What happens after simplifying?

sudden hare
#

-x^2 + 10xy +23

craggy sapphire
#

Almost

#

Don’t forget the -23x^2

sudden hare
#

-23x^2

#

wait I find somrthing

#

so

#

if x^2+y^2=1 x=1 or -1 and same for y

craggy sapphire
#

Hm?

#

No

sudden hare
#

ah no no

craggy sapphire
sudden hare
#

yes yes

craggy sapphire
#

No spoilers @subtle bough

craggy sapphire
sudden hare
#

wait

#

-x^2+10xy+23(1+23x)

craggy sapphire
#

??

sudden hare
#

nop

#

wait

subtle bough
#

-24x^2+10xy+23

craggy sapphire
#

Don’t spoil it @subtle bough

subtle bough
#

keep going

craggy sapphire
#

They want to go though this on their own

#

They’ve said this explicitly

celest fox
sudden hare
#

-x^2 + 10xy + x((23/x)+23x

craggy sapphire
#

@sudden hare you don’t have to overthink it

sudden hare
#

mmmh

craggy sapphire
#

You simply forgot to add the -23x^2

craggy sapphire
sudden hare
#

just i think you knew too that i knew

craggy sapphire
#

Hm it wasn’t clear

sudden hare
#

yes

craggy sapphire
#

This is where I wanted you to arrive

#

Because now the problem is easier to solve

#

If you complete the square

#

You’ll see that you can reduce the problem even further

sudden hare
#

and it is 22x^2

#

ah no

#

24

craggy sapphire
#

Factor out -24

#

Or wait

sudden hare
#

oh 23 is 24-1 and i factorise

craggy sapphire
#

You can make it nicer

#

Yes

#

Exactly

sudden hare
#

oh nice i do that wait

#

24((-x^2)+1) +10xy - 1

craggy sapphire
#

Include 10xy aswell

#

And then complete the square

sudden hare
#

ok

#

24((-x^2)+1+(10xy/24)

#

-1

craggy sapphire
#

Mhm

#

Or -24(x^2 -5xy/12 - 1) - 1

sudden hare
#

wait 1= x^2 + y^2 so i remplace that ?

craggy sapphire
#

Sure you could do that actually

sudden hare
craggy sapphire
#

So 24(y^2 + 5xy/12) - 1

sudden hare
#

yes

craggy sapphire
#

Now

#

There’s different approaches here

#

But let’s try the one that doesn’t require any special knowledge

#

Just complete the square of y^2 + 5xy/12

sudden hare
#

huh

craggy sapphire
#

As in rewrite it in the form (a+b)^2

sudden hare
sudden hare
craggy sapphire
sudden hare
#

not +

craggy sapphire
#

According to whom?

#

Can you say why?

sudden hare
craggy sapphire
#

That was different because i factored -

sudden hare
#

yes

craggy sapphire
craggy sapphire
sudden hare
#

oh ok

craggy sapphire
#

Since y^2 = -x^2 + 1

craggy sapphire
sudden hare
#

no

craggy sapphire
#

Have you completed the square before?

#

Not interested

craggy sapphire
#

Have you seen (a+b)^2 = a^2 + 2ab + b^2 before?

sudden hare
#

yes

craggy sapphire
#

I want you to try and go backwards

sudden hare
#

but wait

craggy sapphire
#

From y^2 + 5xy/12 to something of the form (a+b)^2

#

Plus or minus a constant

craggy sapphire
sudden hare
#

i add x^2 and -x^2

craggy sapphire
#

Then we’re back again to your other simplification

#

So not useful unfortunately

sudden hare
#

mmh

#

i add 25 and -25 ?

craggy sapphire
#

Would u agree that (y+5x/24)^2 = y^2 + 5xy/12 + 5^2/24^2?

sudden hare
#

it's 10xy/12

#

oh ok

#

i understand

#

so yes i aggree

#

so (y+5x/24)^2-5^2/24^2

craggy sapphire
#

Mhm

#

So

#

Notice that

#

This reduces the problem to maximising (y + 5x/12)^2

sudden hare
#

why

craggy sapphire
#

Set a = (y + 5x/12)^2

sudden hare
#

yes ?

craggy sapphire
#

Turns into 24(a - 5^2/24^2) - 1

sudden hare
#

yes

craggy sapphire
#

Is to maximise a

sudden hare
#

OHHHH

#

ok thanks

craggy sapphire
#

Now you can do what u suggest from the start

sudden hare
#

it's fnish i must derivate that and thats all

craggy sapphire
#

By setting x = cos t, y = sin t

#

Yes differentiate (sin t + 5cos(t)/12) ^2

sudden hare
#

ah its easy i think

craggy sapphire
#

Use chain rule for example

sudden hare
#

yes

sudden hare
craggy sapphire
#

Oops yes

sudden hare
#

and i have to solve an equation when it's equal 0

craggy sapphire
#

Mhm

#

It might also be easier to approach the problem of differentiating differently

#

Since you know ()^2 is behaved nicely

#

So you might get away by studying the inside instead

sudden hare
craggy sapphire
#

Im pretty sure you rewrite the inside into one sinus

#

sin x + 5cosx/24 can be rewritten with trigonometry

#

Before you differentiate

sudden hare
#

yes exactly

craggy sapphire
#

But also it’s sufficient to find when the inside is maximised

#

So you can ignore ^2

craggy sapphire
#

You’re done

#

Which can even be achieved without calculus

#

Just plain trigonometry

sudden hare
#

idk how

craggy sapphire
#

If you don’t know, then just differentiate and find max

#

Of sin x + 5cosx /24

#

Then square that max

sudden hare
#

ahhh yes

craggy sapphire
#

And put it in the expression from before

sudden hare
#

Thank you for your patience and for taking the time to explain this to me.

celest fox
craggy sapphire
#

Last year

#

Or rather

#

3rd year

celest fox
#

Ok

mental arch
#

Heyyy

#

I am in 12th grade but ig ik how to solve it

#

First make the above equation in just 1 term

#

Either x or y

#

Totally your choice

mental arch
#

And then differentiate the equation

#

And put it equal to zero

#

And simplify to the value of x

#

And use that value to get the value of Y

craggy sapphire
#

Heyy

#

Just use Lagrange multipliers

#

Done

fossil rampart
#

have you learned quadratic forms in linalg?