Partial Derivatives: Find $\frac{\partial f}{\partial x}$ for $y=x^2+2x+3$

Click For Summary
SUMMARY

The discussion centers on the differentiation of the function \(f(x) = x^2 + 2x + 3\). The partial derivative with respect to \(x\) is established as \(\frac{\partial f}{\partial x} = 2x + 2\). When considering \(y = x^2\) as a separate variable, the partial derivative simplifies to \(\frac{\partial f}{\partial x} = 2\) if \(f\) is treated as a function of both \(x\) and \(y\). The conversation also touches on the application of the chain rule in multi-variable optimization scenarios.

PREREQUISITES
  • Understanding of basic calculus, specifically differentiation.
  • Familiarity with partial derivatives and their notation.
  • Knowledge of the chain rule in calculus.
  • Concepts of multi-variable optimization.
NEXT STEPS
  • Study the application of the chain rule in multi-variable calculus.
  • Learn about optimization techniques for functions of multiple variables.
  • Explore the differences between ordinary and partial derivatives in depth.
  • Investigate the implications of constrained versus unconstrained optimization problems.
USEFUL FOR

Students and professionals in mathematics, engineering, and data science who are dealing with calculus, particularly in the context of optimization and multi-variable functions.

OhMyMarkov
Messages
81
Reaction score
0
Hello Everyone!

This has been confusing me a lot: consider a function $f(x) = x^2 + 2x + 3$. Now, $\frac{\partial f}{\partial x} = 2x + 2$. Now, someone tells me that $y = x^2$. What is $\frac{\partial f}{\partial x}$ now?
 
Physics news on Phys.org
OhMyMarkov said:
Hello Everyone!

This has been confusing me a lot: consider a function $f(x) = x^2 + 2x + 3$. Now, $\frac{\partial f}{\partial x} = 2x + 2$. Now, someone tells me that $y = x^2$. What is $\frac{\partial f}{\partial x}$ now?

Hi OhMyMarkov, :)

What method did you use to differentiate \(f(x) = x^2 + 2x + 3\) ?
 
OhMyMarkov said:
Hello Everyone!

This has been confusing me a lot: consider a function $f(x) = x^2 + 2x + 3$. Now, $\frac{\partial f}{\partial x} = 2x + 2$. Now, someone tells me that $y = x^2$. What is $\frac{\partial f}{\partial x}$ now?

It would help if you used a consistent notation, and were more explicit with the question.

If you are asking: if \(f(x,y)=y+2x+3\) what is \(\frac{\partial f}{\partial x}\)? Then the answer is:

\(\frac{\partial f}{\partial x}=2\)

but we are treating \(y\) as a separate variable from \(x\), if it is a function of \(x\) we have:

\(\frac{\partial f}{\partial x}=\frac{\partial y}{\partial x}+2=2x+2\)

CB
 
OhMyMarkov said:
Hello Everyone!

This has been confusing me a lot: consider a function $f(x) = x^2 + 2x + 3$. Now, $\frac{\partial f}{\partial x} = 2x + 2$. Now, someone tells me that $y = x^2$. What is $\frac{\partial f}{\partial x}$ now?

Sudharaka said:
Hi OhMyMarkov, :)

What method did you use to differentiate \(f(x) = x^2 + 2x + 3\) ?

Hi OhMyMarkov,

I think CaptainBlack has given you a complete explanation about all you need to know. :)

Looking at your question what I thought was, you have differentiated \(f(x) = x^2 + 2x + 3\) with respect to \(x\) either by using the definition of the derivative or by using derivatives of elementary functions. So you want to find out how to differentiate \(y=x^2\) using the same method.

Can you please elaborate more about what your question is?

Kind Regards,
Sudharaka.
 
OhMyMarkov said:
Hello Everyone!

This has been confusing me a lot: consider a function $f(x) = x^2 + 2x + 3$. Now, $\frac{\partial f}{\partial x} = 2x + 2$. Now, someone tells me that $y = x^2$. What is $\frac{\partial f}{\partial x}$ now?

Your notation isn't quite standard. If f(x) is a function of the single varable, x, then the derivative should be written $\frac{df}{dx}= 2x+ 2$, an "ordinary" derivative, not a partial derivative.

If, further, $y= x^2$ so that f(x,y)= y+ 2x+ 3, we have $\frac{\partial f}{\partial x}= 2$ and $\frac{\partial f}{\partial y}= 1$. But knowing that $y= x^2$, so that $\frac{dy}{dx}= 2x$, we can use the chain rule to regain $\frac{df}{dx}$$= \frac{\partial f}{\partial y}\frac{dy}{dx}+ \frac{\partial f}{\partial x}\frac{dx}{dx}$$= 1(2x)+ 2(1)= 2x+ 2$ as before.
 
I'm asking about this in relation to a problem of a more general scope, optimization. If we have more than one variable, x1, x2, ... xK, with a subtle relationship between the variables (kind of like how the expectation of an RV is related to the trace of a covariance matrix, for e.g.). When trying to find a minimum of a function, should we treat the problem as single-variable or multiple-variable.
 
OhMyMarkov said:
I'm asking about this in relation to a problem of a more general scope, optimization. If we have more than one variable, x1, x2, ... xK, with a subtle relationship between the variables (kind of like how the expectation of an RV is related to the trace of a covariance matrix, for e.g.). When trying to find a minimum of a function, should we treat the problem as single-variable or multiple-variable.

Multi-variable constrained optimisation.

Unconstrained if you can use the side condition/s to eliminate one of the variable from the objective.

CB
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K