Find the maximum of the following expression: sum_(n=1)^N a_n log(x_n) where the a_n>0 values are constants

Aidyn Meza

Aidyn Meza

Answered question

2022-09-23

Given a constant sum of x n values:
n = 1 N x n = C
where x n 1
Find the maximum of the following expression:
n = 1 N a n log ( x n )
where the a n > 0 values are constants, and the x n values are free to change, given that their sum will remain constant.

Answer & Explanation

Ashly Sanford

Ashly Sanford

Beginner2022-09-24Added 9 answers

Calling y n = x n 1 we have the equivalent problem
max n = 1 N a n ln ( y n + 1 )     s. t.       n = 1 N y n = C N
so the lagrangian reads
L ( y , λ ) = n = 1 N a n ln ( y n + 1 ) λ ( n = 1 N y n C + N )
The stationary points are the solutions for
L = 0 = { a n y n + 1 = λ n = 1 N y n = C N
substituting
y n = a n λ 1
into the restriction we have
1 λ n = 1 N a n N = C N
or
λ = 1 C n = 1 N a n y n = a n C n = 1 N a n 1 x n = a n C n = 1 N a n
expecting of course that a k , C are such that a n C n = 1 N a n 1. Here, as log is an strict increasing function, there exist C such that this positive condition is verified.

Do you have a similar question?

Recalculate according to your conditions!

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?