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

In summary, the answer to your question is that you should treat the problem as single-variable if you can use the side condition/s to eliminate one of the variable from the objective.
  • #1
OhMyMarkov
83
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
  • #2
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\) ?
 
  • #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
 
  • #4
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.
 
  • #5
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.
 
  • #6
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.
 
  • #7
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
 

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

What is a partial derivative?

A partial derivative is a type of derivative in multivariable calculus that measures the rate of change of a function with respect to one of its variables while holding all other variables constant.

How do you find a partial derivative?

To find a partial derivative, you treat the other variables in the function as constants and differentiate the function with respect to the specified variable. In this case, to find the partial derivative $\frac{\partial f}{\partial x}$, we would differentiate $f(x,y)$ with respect to $x$ while treating $y$ as a constant.

What is the difference between a partial derivative and a regular derivative?

The main difference between a partial derivative and a regular derivative is that a partial derivative deals with functions of multiple variables, while a regular derivative deals with functions of a single variable. In a partial derivative, all other variables are treated as constants, whereas in a regular derivative, there is only one variable in the function.

Can you find a partial derivative for any function?

Yes, you can find a partial derivative for any function that has multiple variables. However, the function must be differentiable in order for the partial derivative to exist.

What does $\frac{\partial f}{\partial x}$ represent in this context?

In this context, $\frac{\partial f}{\partial x}$ represents the partial derivative of the function $f(x,y)$ with respect to the variable $x$. It measures the rate of change of the function in the $x$ direction while holding the variable $y$ constant.

Similar threads

Replies
6
Views
2K
Replies
1
Views
1K
Replies
4
Views
2K
Replies
3
Views
2K
Replies
3
Views
3K
Replies
2
Views
2K
Replies
1
Views
2K
Replies
9
Views
2K
Back
Top