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
Click For Summary

Homework Help Overview

The discussion revolves around maximizing the function defined by the expression q*(p-q), where participants seek to determine the value of q that maximizes this expression for a given p. The context involves understanding the mathematical properties of the function and its critical points.

Discussion Character

  • Exploratory, Mathematical reasoning, Assumption checking

Approaches and Questions Raised

  • Participants discuss the application of the second partial derivative test and its inconclusiveness. There is an exploration of the function's quadratic nature and the identification of critical points through derivatives. Some participants question the initial setup and definitions used in the problem.

Discussion Status

The discussion is ongoing, with participants providing insights into the mathematical approach, including the use of derivatives and graphical testing. There is recognition of the need for clarity in definitions and expressions, with some participants offering alternative methods for finding maximum points.

Contextual Notes

There is a noted confusion regarding the terminology used to describe the mathematical expression, with emphasis on distinguishing between expressions and equations. Participants also reflect on potential errors in their calculations and assumptions.

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 !
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
Replies
5
Views
1K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 12 ·
Replies
12
Views
2K
Replies
8
Views
4K