Subject: Class 12 Mathematics Chapter: Product Rule Topic: 6.4 Product Rule – Differentiate products of functions
Many functions that appear in mathematics and science are formed by multiplying two simpler functions together. The area of a rectangle is the product of its length and width, the momentum of a body is the product of mass and velocity, and expressions such as x squared sin x or e to the power x ln x are products of two standard functions. To differentiate such expressions we cannot simply multiply the two derivatives. In fact, the derivative of a product is not the product of the derivatives, and a common beginner's mistake is to assume exactly that. The correct tool is the product rule.
The product rule gives a precise formula for differentiating a product of two differentiable functions. If u and v are functions of x, then the derivative of u times v is u times v' plus v times u'. In words: differentiate the first function and multiply by the second, then add the first function multiplied by the derivative of the second. The rule is symmetric, which is a useful property, and it extends to products of three or more functions by applying it repeatedly.
The product rule is one of the most heavily tested rules in Class 12 examinations. It appears in the differentiation of polynomials multiplied by trigonometric functions, of exponentials multiplied by logarithms, and in problems where a product must be simplified first. It is also the starting point for many other techniques, such as differentiating the products inside integration by parts, which you will meet in later study. Mastering the product rule, with its careful order of operations and its memorised formula, is therefore essential for full marks in calculus questions.
Let y = u(x) times v(x), where u and v are both differentiable functions of x. The product rule states:
Product Rule: d/dx [u v] = u dv/dx + v du/dx.
The formula is often written in prime notation as (uv)' = u v' + v u'. It is symmetric: swapping u and v leaves the expression unchanged, because u v' plus v u' equals v u' plus u v'.
The rule can be justified from first principles. Let h be a small change in x. Then the change in the product is u(x+h) v(x+h) minus u(x) v(x). Adding and subtracting u(x+h) v(x), dividing by h, and taking the limit h tending to zero produces u(x) v'(x) plus v(x) u'(x). The terms in u(x+h) minus u(x) over h and v(x+h) minus v(x) over h tend to u'(x) and v'(x) respectively, giving the formula.
Worked Example 1: Differentiate y = x squared sin x.
Take u = x squared and v = sin x. Then u' = 2x and v' = cos x. By the product rule, y' = u v' + v u' = x squared cos x + sin x times 2x = x squared cos x + 2x sin x.
Worked Example 2: Differentiate y = e to the power x ln x.
Take u = e to the power x and v = ln x. Then u' = e to the power x and v' = 1/x. Hence y' = e to the power x times 1/x + ln x times e to the power x = e to the power x (1/x + ln x).
The product rule works with any pair of differentiable functions, including polynomials, trigonometric functions, exponentials and logarithms. The key skill is to identify the two factors correctly and to differentiate each factor accurately before combining the two terms.
Worked Example 3: Differentiate y = (x squared + 1)(x cubed minus 2x).
Let u = x squared + 1, v = x cubed minus 2x. Then u' = 2x and v' = 3x squared minus 2. y' = u v' + v u' = (x squared + 1)(3x squared minus 2) + (x cubed minus 2x)(2x). Expand: 3x to the power 4 minus 2x squared plus 3x squared minus 2 plus 2x to the power 4 minus 4x squared. Combining like terms: 5x to the power 4 minus 3x squared minus 2.
Worked Example 4: Differentiate y = x cubed cos x.
With u = x cubed and v = cos x, u' = 3x squared and v' = minus sin x. y' = x cubed (minus sin x) + cos x (3x squared) = minus x cubed sin x + 3x squared cos x.
Worked Example 5: Differentiate y = (2x plus 3)(e to the power x).
Let u = 2x + 3 and v = e to the power x. Then u' = 2 and v' = e to the power x. y' = (2x + 3) e to the power x + e to the power x times 2 = e to the power x (2x + 5).
For a product of three functions, the rule is applied in stages: differentiate y = u v w as y' = u v w' + u w v' + v w u'. Equivalently, treat u v as one factor and apply the product rule twice.
Worked Example 6: Differentiate y = x squared sin x cos x.
Group as u = x squared, v = sin x cos x. Then u' = 2x and v' = cos x cos x + sin x (minus sin x) = cos squared x minus sin squared x by the product rule applied to sin x cos x. y' = x squared (cos squared x minus sin squared x) + sin x cos x (2x) = x squared cos 2x + 2x sin x cos x = x squared cos 2x + x sin 2x.
Worked Example 7: Differentiate y = x e to the power x tan x.
Let u = x e to the power x and v = tan x. Then u' = x e to the power x + e to the power x = e to the power x (x + 1), and v' = sec squared x. y' = x e to the power x sec squared x + tan x e to the power x (x + 1) = e to the power x [x sec squared x + (x + 1) tan x].
Worked Example 8: Differentiate y = (x squared plus x)(sin x plus cos x).
Let u = x squared + x, v = sin x + cos x. Then u' = 2x + 1 and v' = cos x minus sin x. y' = (x squared + x)(cos x minus sin x) + (sin x + cos x)(2x + 1).
This answer is best left factorised; expansion is optional unless the question asks for a simplified form.
| Notation | Formula |
|---|---|
| Leibniz | d/dx (u v) = u dv/dx + v du/dx |
| Prime | (uv)' = u v' + v u' |
| Words | first times derivative of second plus second times derivative of first |
| Three factors | (uvw)' = u v w' + u w v' + v w u' |
| Product y | Factors u and v | Derivative y' |
|---|---|---|
| x squared sin x | u = x squared, v = sin x | x squared cos x + 2x sin x |
| e to the power x ln x | u = e to the power x, v = ln x | e to the power x (1/x + ln x) |
| x cubed cos x | u = x cubed, v = cos x | 3x squared cos x minus x cubed sin x |
| (2x + 3) e to the power x | u = 2x + 3, v = e to the power x | e to the power x (2x + 5) |
| x cubed ln x | u = x cubed, v = ln x | 3x squared ln x + x squared |
flowchart TD
A[Product Rule] --> B[Formula]
B --> C[Derivative of u v is u v' plus v u']
A --> D[Identify the Factors]
D --> E[Find u and v]
D --> F[Find u' and v']
A --> G[Combine]
G --> H[First times derivative of second]
G --> I[Plus second times derivative of first]
A --> J[Extension]
J --> K[Three factors]
J --> L[Apply rule repeatedly]
A --> M[Simplification]
M --> N[Factor common terms]
M --> O[Expand when needed]
The product rule is the correct method for differentiating a product of two or more functions, and its formula u v' plus v u' must be remembered exactly because the derivative of a product is not the product of the derivatives. The rule is derived from first principles, applies symmetrically to any pair of differentiable functions, and extends naturally to products of three or more factors. Combining the product rule with the standard derivatives and the sum and difference rules allows us to differentiate a very wide range of expressions. This chapter is essential not only for direct differentiation problems but also as a foundation for integration by parts and for the quotient rule, both of which build directly on the product rule.