Lagrange multipliers with a summation function and constraint

Click For Summary

Discussion Overview

The discussion revolves around maximizing a summation function subject to a quadratic constraint using Lagrange multipliers. Participants explore the formulation of the problem, the application of Lagrange multipliers, and the derivation of necessary equations.

Discussion Character

  • Exploratory, Technical explanation, Homework-related

Main Points Raised

  • One participant expresses uncertainty about how to apply Lagrange multipliers to the problem and seeks hints on taking partial derivatives and solving the resulting equations.
  • Another participant suggests starting with a simpler case of maximizing a two-variable function under a similar constraint to build understanding before generalizing.
  • A third participant provides a detailed solution using Lagrange multipliers, deriving a system of equations and expressing the variables in terms of each other, ultimately leading to a formula for the maximum value.
  • A later reply acknowledges the original question and thanks the participant who provided the solution, indicating a sense of closure for the initial inquiry.

Areas of Agreement / Disagreement

The discussion does not present any explicit areas of disagreement, but it reflects varying levels of understanding and approaches to the problem. The initial uncertainty contrasts with the later detailed solution provided by another participant.

Contextual Notes

The discussion includes assumptions about the positivity of the numbers involved and the constraints of the problem, but these are not explicitly stated by all participants. The mathematical steps taken by the third participant may depend on specific interpretations of the problem's conditions.

Who May Find This Useful

Students or individuals interested in calculus, optimization techniques, and the application of Lagrange multipliers in mathematical problems may find this discussion beneficial.

skate_nerd
Messages
174
Reaction score
0
Problem stated: Let \(a_1, a_2, ... , a_n\) be \(n\) positive numbers. Find the maximum of
$$\sum_{i=1}^{n}a_ix_i$$ subject to the constraint $$\sum_{i=1}^{n}x_i^2=1$$.
I honestly have not much of an idea of how to go about solving this. If I use lagrange multipliers which I think I am supposed to since this problem is from that section of the book, how would I even begin to take partial derivatives of these summations, let alone solve a system of equations with them? Any hint on how to begin this would be appreciated. Thanks
 
Physics news on Phys.org
Re: lagrange multipliers with a summation function and constraint

skatenerd said:
Problem stated: Let \(a_1, a_2, ... , a_n\) be \(n\) positive numbers. Find the maximum of
$$\sum_{i=1}^{n}a_ix_i$$ subject to the constraint $$\sum_{i=1}^{n}x_i^2=1$$.
I honestly have not much of an idea of how to go about solving this. If I use lagrange multipliers which I think I am supposed to since this problem is from that section of the book, how would I even begin to take partial derivatives of these summations, let alone solve a system of equations with them? Any hint on how to begin this would be appreciated. Thanks

Hi skatenerd! :)

Suppose you had to maximize $ax+by$ subject to the constraint $x^2+y^2=1$.
Would you know how to do that?

If so, how about $ax+by+cz$?

The time to generalize is after that.
 
I noticed several guests viewing this topic, and thought I might go ahead and solve it, since time has gone by and it is interesting. :D

We have the objective function:

$$f\left(x_1,x_2,x_3,\cdots,x_n \right)=\sum_{k=1}^n\left(a_kx_k \right)$$

Subject to the constraint:

$$g\left(x_1,x_2,x_3,\cdots,x_n \right)=\sum_{k=1}^n\left(x_k^2 \right)-1=0$$

Using Lagrange multipliers, we obtain the system:

$$a_1=2\lambda x_1$$

$$a_2=2\lambda x_2$$

$$a_3=2\lambda x_3$$

$$\vdots$$

$$a_n=2\lambda x_n$$

This implies:

$$x_k=\frac{a_k}{a_1}x_1$$ where $$k\in\{2,3,4,\cdots,n\}$$

And so the constraint yields (taking the positive root since we are asked to maximize the objective function):

$$\sum_{k=1}^n\left(x_k^2 \right)=1$$

$$\sum_{k=1}^n\left(\left(\frac{a_k}{a_1}x_1 \right)^2 \right)=1$$

$$\left(\frac{x_1}{a_1} \right)^2\sum_{k=1}^n\left(a_k^2 \right)=1$$

$$x_1^2=\frac{a_1^2}{\sum\limits_{k=1}^n\left(a_k^2 \right)}$$

Taking the positive root, we then have:

$$x_1=\frac{a_1}{\sqrt{\sum\limits_{k=1}^n\left(a_k^2 \right)}}$$

Hence:

$$x_k=\frac{a_k}{\sqrt{ \sum\limits_{k=1}^n\left(a_k^2 \right)}}$$

And so we find:

$$f_{\max}=\sum_{k=1}^n\left(a_k\frac{a_k}{\sqrt{ \sum\limits_{k=1}^n\left(a_k^2 \right)}} \right)=\frac{\sum\limits_{k=1}^n\left(a_k^2 \right)}{\sqrt{ \sum\limits_{k=1}^n\left(a_k^2 \right)}}=\sqrt{ \sum\limits_{k=1}^n\left(a_k^2 \right)}$$
 
Wow, I think I completely forgot that I asked this question! This was in regard to my 3rd semester of calculus last year...Thanks for the responses and the solution MarkFL! Very cool indeed.
 

Similar threads

Replies
3
Views
2K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K