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

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
11 replies · 3K views
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 [itex]u=x^2+e^x[/itex] along with the chain rule...What is [tex]\frac{d}{dx}\cos^4(u)[/tex]?
 
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 [itex]g(x) \equiv \cos^4(x)[/itex] and [itex]h(x)\equiv x^2+e^x[/itex] then [itex]f(x)\equiv\cos^4(x^2+e^x)=g(h(x))[/itex]

...follow?

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

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