How to differentiate y=cos4(x2 + ex)?

futurept
Messages
13
Reaction score
0

Homework Statement


The problem is to differentiate the function.
y=cos4(x2 + ex)


Homework Equations


cos(x)'= -sin(x), (xn)'=n*xn-1, (ex)'=ex*x'


The Attempt at a Solution


Thought it would be the chain rule. Here's what I came up with:

y'=4cos3(-sin(x2 + ex)(2x + ex)

Is this right? If not, any suggestions on what I did wrong?
 
Last edited:
Physics news on Phys.org
futurept said:
y'=4cos3(-sin(x2 + ex)(2x + ex)

Is this right? If not, any suggestions on what I did wrong?

Is this a typo? What are you taking the cosine of?
 
no it's not a typo. my answer was y'= 4cos3(-sin(x2 + ex))*(2x + ex)
 
I did forget to say that the problem says not to simplify.
 
You're close but take another look at the chain rule.

f(x) = h(g(x))

f'(x) = h'(g(x)) * g'(x)

Your answer follows the following incorrect differentiation.

f'(x) = h'(g'(x))

But you only messed up for one part of the chain. The innermost function was differentiated correctly.
 
futurept said:
no it's not a typo. my answer was y'= 4cos3(-sin(x2 + ex))*(2x + ex)

In that case it is incorrect.

Try using the substitution u=x^2+e^x along with the chain rule...What is \frac{d}{dx}\cos^4(u)?
 
so h(x)=cos4(x2+ex)

and g(x)= x2 + ex

but would the cos4 part be another function by itself? So then it would be f(g(h(x))).

and by definition of the chain rule it would be f '(g(h(x)))*g'(h(x))*h'(x)?
 
futurept said:
so h(x)=cos4(x2+ex)

and g(x)= x2 + ex

but would the cos4 part be another function by itself? So then it would be f(g(h(x))).

and by definition of the chain rule it would be f '(g(h(x)))*g'(h(x))*h'(x)?
hmmm this doesn't make much sense.

Instead, let's call g(x) \equiv \cos^4(x) and h(x)\equiv x^2+e^x then f(x)\equiv\cos^4(x^2+e^x)=g(h(x))

...follow?

Now, what does the chain rule give you for f'(x)?
 
yeah, i think i follow. so from your definition, f'(x)=g'(h(x))*h'(x)?
 
  • #10
so, (cos(x^2+e^x))^4

f'(x)= 4cos(x^2+e^x)^3*-sin(x^2+e^x)*(2x+e^x)
 
  • #11
futurept said:
so, (cos(x^2+e^x))^4

f'(x)= 4cos(x^2+e^x)^3*-sin(x^2+e^x)*(2x+e^x)

Yes, much better!:approve:
 
  • #12
you guys are awesome
 
Back
Top