MYTUTOR SUBJECT ANSWERS

910 views

How do I differentiate "messy" functions?

 

Often, it can seem daunting when you are asked to differentiate a function that looks particularly messy. However, it's really quite simple if you break it down in easy to manage steps.

I find students seem to hate square roots in particular. So let's start with a worked example and then i'll provide a general outline of how to deal with what I call "compound" functions. Before you look at this, you should be aware of the product and chain rules of differentiation. 

1) Easy example: Differentiate x1/2

You can use your standard rule of "multiply by the power and take off 1" here. The result is 1/2x-1/2

2) Tougher example: Differentiate (log x)1/2

Okay. This looks a bit more challenging! However...we can use substitution and the chain rule to get us through this.

Chain rule: If we have functions u(x) and v(x), we can swiftly differentiate the composition of the two functions u(v(x)) by the following rule.
u(v(x))' = u'(v(x))*v'(x), where u' refers to d/dx u(x), and likewise for v. 

This is useful! Now we can use our result in part 1 again. We substitute log(x) for v(x) and x1/2 for u(x), then our function (log x)1/2 can be seen as the composition of x -> v(x) = log(x) ->u(v(x)) = (log x)1/2, and it reads as v1/2 instead. Differentiating this, as if "v" were "x," we get 1/2v-1/2. This part is u'(v(x)) in the chain rule, so we are not done yet! We still need to multiply by v'(x)!
Hopefully, you know that differentiating log x gives x-1
Putting this all together, we now know ((log x)1/2)' is 1/2(log x)-1/2x-1

3) Hard example: Differentiate (3xsin(x))1/2.

Learning from the above, we can do something similar. If we substitute 
v(x) = 3xsin(x)
u(x) = x1/2

Then we get the composition 

x -> v(x) = 3xsin(x) -> u(v(x)) = (3xsin(x))1/2.

Again remember the chain rule: u(v(x))' = u'(v(x))*v'(x). 

Then our result is 1/2(3xsin(x))-1/2(3xsin(x))'
So we just need to find out what (3xsin(x))' is.

Remember the product rule? 

Product rule: If we have two functions f(x) and g(x), we can differentiate their product fg(x) by the following rule:
(fg(x))' = f'(g(x)) + g'(f(x)). 

Okay! So here we could view 3x as f(x), and sin(x) as g(x). Then we can find
f'(x) = 3
g'(x) = cos(x) 
and use the formula to get
(3xsin(x))' = 3sin(x) + 3xcos(x) (this is v'(x))

Ok, good! Now we have everything, we just multiply it all together!

((3xsin(x))1/2)' = 1/2(3xsin(x))-1/2[3sin(x) + 3xcos(x)] 

which simplifies to 31/2(sin(x) + xcos(x)) / (2(xsin(x))1/2). (I hope you agree!)

 

This technique is valuable when you are given a nasty looking function to differentiate. It can be used multiple times to break the differentiation down into nice "bite-sized" pieces that are easy to manage. 
For example, you could start with something horrid, like
(4x2exsin(5x))1/2 (eek!) and your first step would be to use 
v(x) = 4x2exsin(5x)
u(x) = x1/2 

and use the chain rule like before. You then have to differentiate what's in the bracket using more substitution, and a combination of chain and product rules, many times!

So, to conclude, the method is
1) Look at your function and see what would be a useful substitution (what I called u(x) and v(x) above)
(I only referred to square roots above, so to help you get the idea, ill give another quick example here: If I had to differentiate log(x3sin(x)) I would start with v(x) = x3sin(x) u(x) = log(x)) 
2) You should now have something that is a function of v(x) (the above would be log(v(x)), for example). Figure out which differentiation rule would be best to use here!
3) Now, you can differentiate the two pieces of the function separately!

It may be necessary to use the process again on each of the pieces, but if you take care and write down the process clearly, it shouldn't be too much of a problem to multiply it all together at the end! 

Sam  M. A Level Maths tutor, A Level Further Mathematics  tutor, A Le...

2 years ago

Answered by Sam , who tutored A Level Maths with MyTutor


Still stuck? Get one-to-one help from a personally interviewed subject specialist

424 SUBJECT SPECIALISTS

£30 /hr

Laurie D.

Degree: Mathematics (Masters) - Warwick University

Subjects offered:Maths, Further Mathematics

Maths
Further Mathematics

“2nd year Maths student at Warwick, after a few tutorials you'll see Maths isn't the scary, hard subject most people think it is - it's actually really fun!”

PremiumEllie B. GCSE Maths tutor, 11 Plus Maths tutor, A Level Maths tutor, ...
£26 /hr

Ellie B.

Degree: Mathematics (Masters) - York University

Subjects offered:Maths, Physics+ 1 more

Maths
Physics
Further Mathematics

“I study Maths at York University; I chose York because I loved the lecturers, they made maths fun and easy- that's what I hope to do with all my students!”

£22 /hr

Leon P.

Degree: Mathematics (Bachelors) - Imperial College London University

Subjects offered:Maths

Maths

“21 years old. 2 years experience teaching. BSc Mathematics Imperial College London. Studying MSc in Aerospace Dynamics (please ask for references).”

About the author

Sam  M. A Level Maths tutor, A Level Further Mathematics  tutor, A Le...
£20 /hr

Sam M.

Degree: Mathematics (Bachelors) - Warwick University

Subjects offered:Maths, Physics+ 1 more

Maths
Physics
Further Mathematics

“Final year University of Warwick mathematician, here to help you understand and enjoy maths! ”

MyTutor guarantee

You may also like...

Other A Level Maths questions

A girl saves money over 200 weeks. She saves 5p in Week 1, 7p in Week 2, 9p in Week 3, and so on until Week 200. Her weekly savings form an arithmetic sequence. Find the amount she saves in Week 200. Calculate total savings over the 200 week period.

Find the exact solution to: ln(x) + ln(7) = ln(21)

Shower-cleaner liquid is sold in spray bottles. The volume of liquid in a bottle may be modelled by a normal distribution with mean 955 ml and a standard deviation of 5 ml. Determine the probability that the volume in a particular bottle is:

Differentiate y=x(e^x)

View A Level Maths tutors

We use cookies to improve your site experience. By continuing to use this website, we'll assume that you're OK with this. Dismiss

mtw:mercury1:status:ok