The general rule that can be applied when differentiating y=xn with respect to x is to "multiply by the power n, then subtract 1 from the power". This rule is valid for any n.
Notation
When differentiating, there are two common forms of notation. The rules of differentiation apply to both in the same way, they just offer different ways to express equations. The context in which they're used determines which notation is most suitable.
y notation
Sometimes equations are presented in a form like y=xn. When this is differentiated with respect to x, the y part becomes dxdy. This is because to "differentiate y with respect to x" is in essence to apply dxd to y.
Function notation
Alternatively, if the equation is given as f(x)=xn. When this is differentiated with respect to x, the f(x) part becomes f′(x). This signifies it has been differentiated once. If differentiated more times, there would be more dashes.
The derivative of xn
If y=xn where n is a constant number, then the derivative will be:
dxdy=nxn−1
See that the expression has been multiplied by the power n, then1 was subtracted from the power.
If y=axn where a is also a constant, then the derivative will be:
dxdy=anxn−1
This is the same as above, but there is a multiple a involved.
Using the function notation, if f(x)=xn, then the derivative will be:
f′(x)=nxn−1
If f(x)=axn, then the derivative will be:
f′(x)=anxn−1
Example 1
Find the derivative of y=x7.
The rule is to multiply by the power, then subtract one from the power:
dxdy=7x6
Example 2
Find the derivative of f(x)=3x2.
The rule is to multiply by the power, then subtract one from the power:
f′(x)=6x
Example 3
Find the derivative of y=x23.
The rule is to multiply by the power, then subtract one from the power:
dxdy=23x21
Example 4
Find the derivative of f(x)=5x−9.
The rule is to multiply by the power, then subtract one from the power: