differentiate y = (4-x)^2

This is a basic example of a very important result: the chain rule. The difficulty of this sort of example is that we have a "function of a function". That is, we have the function '4-x' and then we square this. 

The general approach is as follows. First we will let 'u' be a new function: u=4-x. It is evident that now we have y=u^2 which looks like it might be easier to work with. The chain rule says the following:

dy/dx = (dy/du)*(du/dx)

In this case y=u^2 so, from normal differentiation, we get dy/du = 2u. We also then have u = 4-x. So, again from normal differentiation techniques, we have du/dx=-1.

Using the chain rule gives dy/dx = (2u)*(-1) and if we substitute u=4-x we get

dy/dx = -2(4-x)  = 2x-8    which is the final answer.                                   

BB
Answered by Ben B. Maths tutor

8649 Views

See similar Maths A Level tutors

Related Maths A Level answers

All answers ▸

If a circle passes through points (2,0) and (10,0) and it has tangent line along the y-axis, then what are the possible equations of the circle?


How do you differentiate 2^x?


OCR C2 2015 Question 8: (a) Use logarithms to solve the equation 2^(n-3) = 18,000 , giving your answer correct to 3 significant figures. (b) Solve the simultaneous equations log2(x) + log2(y) = 8 & log2(x^2/y) = 7.


Solve the simultaneous equations y = x^2 - 6x and 2y + x - 6 = 0


We're here to help

contact us iconContact ustelephone icon+44 (0) 203 773 6020
Facebook logoInstagram logoLinkedIn logo

MyTutor is part of the IXL family of brands:

© 2026 by IXL Learning