Maximizing a Function: Solving for the Optimal q at a Given p | q*(p-q) Equation

  • Thread starter Thread starter Cinitiator
  • Start date Start date
  • Tags Tags
    Function Maximum
Cinitiator
Messages
66
Reaction score
0

Homework Statement


I have an equation q*(p-q). I need a function with which I could specify a p, and which would ouput a q at which q*(p-q) is maximized.

For example:

f(p) -> analyzes y = q*(p-q) -> outputs the q at which y reaches it's maximum (in other words, f(p) = maximum of y at a given p).

Homework Equations


q*(p-q)

The Attempt at a Solution



Tried to apply the second partial derivative test to this, but it came out inconclusive with a D = 0. It seems like I applied it where it isn't needed at all.
 
Physics news on Phys.org
Hi Cinitiator! :smile:
Cinitiator said:
ried to apply the second partial derivative test to this, but it came out inconclusive with a D = 0.

shouldn't do :confused:

(did you d/dp instead of d/dq ?)

show us what you did :smile:
 
Cinitiator said:

Homework Statement


I have an equation q*(p-q). I need a function with which I could specify a p, and which would output a q at which q*(p-q) is maximized.

For example:

f(p) -> analyzes y = q*(p-q) -> outputs the q at which y reaches it's maximum (in other words, f(p) = maximum of y at a given p).

Homework Equations


q*(p-q)

The Attempt at a Solution



Tried to apply the second partial derivative test to this, but it came out inconclusive with a D = 0. It seems like I applied it where it isn't needed at all.
First of all, (and I expect that you will see this mentioned several times in this thread)
"I have an equation q*(p-q)."​
" q*(p-q) " is a mathematical expression. It's not an equation. An equation has two mathematical expressions separated by an " = " sign.

You say that for any particular value of p, you want to find a q which maximizes q*(p-q) .
Let g(q) = q*(p-q). That is equivalent to: g(q) = -q - pq .

That's a quadratic in q, with q-intercepts of q=0, and q=p. The vertex occurs at q = p/2. q2 has a negative coefficient, so that should tell you whether the vertex corresponds to a maximum or a minimum.
 
SammyS said:
First of all, (and I expect that you will see this mentioned several times in this thread)
"I have an equation q*(p-q)."​
" q*(p-q) " is a mathematical expression. It's not an equation. An equation has two mathematical expressions separated by an " = " sign.

You say that for any particular value of p, you want to find a q which maximizes q*(p-q) .
Let g(q) = q*(p-q). That is equivalent to: g(q) = -q - pq .

That's a quadratic in q, with q-intercepts of q=0, and q=p. The vertex occurs at q = p/2. q2 has a negative coefficient, so that should tell you whether the vertex corresponds to a maximum or a minimum.

Why not to use partial derivatives instead?

One could do this:

1) Find the partial derivative with the respect to q
d/dq [q(p-q)] = d/dq [q*p-q^2] = d/dq [q*p ] - d/dq [q^2] = p - 2q

2) Then find critical points
d/dq = 0
p - 2q = 0
(-2)q = -p
q = (-p)/(-2)

q = p/2Then f(p) = p/2

I tested it graphically and it seems to work.
tiny-tim said:
Hi Cinitiator! :smile:shouldn't do :confused:

(did you d/dp instead of d/dq ?)

show us what you did :smile:


I looked through my notes, and it seems that this was the case, lol. I inverted p and q multiple times. Wish I had a better working memory.
 
Hi Cinitiator! :smile:
Cinitiator said:
Then f(p) = p/2

yup! :smile:

(btw, with quadratics, you can find the turning-points without calculus, if you complete the square :wink:)
I looked through my notes, and it seems that this was the case, lol. I inverted p and q multiple times.

you'll have to …

mind your p's and q's! :smile:


:biggrin: Woohoo! :biggrin:
 
tiny-tim said:
Hi Cinitiator! :smile:

yup! :smile:

(btw, with quadratics, you can find the turning-points without calculus, if you complete the square :wink:)

you'll have to …

mind your p's and q's! :smile:


:biggrin: Woohoo! :biggrin:

[STRIKE]Nice[/STRIKE] Great reply tim !

Too bad this Forum doesn't let us rate replies !
 
Prove $$\int\limits_0^{\sqrt2/4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx = \frac{\pi^2}{8}.$$ Let $$I = \int\limits_0^{\sqrt 2 / 4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx. \tag{1}$$ The representation integral of ##\arcsin## is $$\arcsin u = \int\limits_{0}^{1} \frac{\mathrm dt}{\sqrt{1-t^2}}, \qquad 0 \leqslant u \leqslant 1.$$ Plugging identity above into ##(1)## with ##u...
Back
Top