19 min readUpdated November 30, 2026FreeAP Calculus AB, Derivatives: Definition and Basic Rules
The product rule and the quotient rule tell you how to differentiate two functions that are multiplied or divided: (uv)′=u′v+uv′ and (vu)′=v2u′v−uv′. The derivative of a product is not the product of the derivatives, and the same goes for quotients. The same two rules give you the derivatives of tanx,secx,cscx and cotx, and let you find derivatives from a table of values.
Quick check
1What is the derivative of 4x3−5x+2?Show answerHide answer
12x2−5. Use the power rule on each term; the constant 2 has derivative 0.
2What are the derivatives of sinx,cosx and ex?Show answerHide answer
cosx,−sinx and ex. If any of these surprised you, see the note on derivatives of sin x, cos x, eˣ and ln x.
3Is the derivative of x2sinx equal to 2xcosx?Show answerHide answer
No. Multiplying the two derivatives drops a term. The product rule gives 2xsinx+x2cosx.
Identify whether an expression is a product, a quotient or neither, and choose the rule that fits.
Calculate derivatives of products and quotients built from polynomial, trigonometric and exponential parts.
Show where the derivatives of tanx,secx,cscx and cotx come from, using the quotient rule.
Evaluate the derivative of a product or quotient at a point from a table of values of f,g,f′ and g′.
Write an equation for a tangent line to the graph of a product or quotient.
Key terms
Product rule
For differentiable functions u and v, the derivative of uv is u′v+uv′.
In plain English
Differentiate one factor and keep the other, then swap roles, then add.
Don't write
(uv)′=u′v′; that leaves out a whole term.
Quotient rule
For differentiable functions u and v with v=0, the derivative of vu is v2u′v−uv′.
In plain English
Bottom times the derivative of the top, minus top times the derivative of the bottom, all over the bottom squared.
Don't write
v′u′, or a numerator in the order uv′−u′v, which flips the sign of the answer.
Why isn't the derivative of a product the product of the derivatives?
Test the idea on x⋅x=x2. Its derivative is 2x, but multiplying the derivatives of the two factors gives 1⋅1=1. So products need their own rule.
Picture a rectangle with sides u and v that both change as x changes. Its area is uv. When x grows a little, the area gains a strip along one side, worth about u′v, and a strip along the other side, worth about uv′. The tiny corner piece is small enough to ignore. Adding the two strips gives the rate at which the area grows.
Learn this:
dxd[uv]=u′v+uv′
Take y=x2sinx. Let u=x2 and v=sinx, so u′=2x and v′=cosx. Then
dxdy=2xsinx+x2cosx
The two terms can go in either order, because you add them. What matters is that each term has exactly one factor differentiated.
Key idea
In a product, each term of the derivative has exactly one factor differentiated, and you add the terms.
Check yourself
Differentiate y=xex.
Show answerHide answer
ex+xex, which is ex(1+x). Here u=x gives u′=1, and v=ex gives v′=ex.
How does the quotient rule work?
For y=vu, the derivative uses the same four pieces as the product rule, but the numerator has a minus sign and the whole thing sits over v2.
Learn this:
dxd[vu]=v2u′v−uv′,v=0
Because of the minus sign, order matters: start with the derivative of the top times the bottom. A common memory aid is "low d-high minus high d-low, over low squared".
Take y=x+1x2. Here u=x2,u′=2x,v=x+1 and v′=1:
dxdy=(x+1)22x(x+1)−x2(1)=(x+1)2x2+2x
Simplify the numerator, but leave the denominator as a square; expanding it only makes the answer longer.
Check whether you need the rule at all. A constant denominator is a constant multiple: 5x3=51x3, with derivative 53x2. A single power of x underneath can be divided in first: xx2+3x=x+3 for x=0, so its derivative is 1.
Examiner's eye
Points are lost when the numerator is written as uv′−u′v. That reverses the sign of the whole derivative, so write u′v first every time.
Check yourself
Differentiate y=x+4x.
Show answerHide answer
(x+4)24. The numerator is 1⋅(x+4)−x⋅1=4.
Where do the other four trig derivatives come from?
Each of tanx,secx,cscx and cotx can be written with sinx and cosx, so the quotient rule finds its derivative.
The same steps with cotx=sinxcosx and cscx=sinx1 give the other two. Learn this:
Function
Derivative
tanx
sec2x
secx
secxtanx
cotx
−csc2x
cscx
−cscxcotx
The "co" functions (cosx,cotx and cscx) all have a minus sign in their derivatives. If you forget one of these results, you can rebuild it with the quotient rule.
Check yourself
Use the quotient rule on cotx=sinxcosx to find its derivative.
Show answerHide answer
−csc2x. The numerator is (−sinx)(sinx)−(cosx)(cosx)=−(sin2x+cos2x)=−1, so the derivative is −sin2x1=−csc2x.
How do you use a table of values?
Some questions give only values, not formulas: a table of f(x),f′(x),g(x) and g′(x) at a few inputs, and a request for the derivative of fg or gf at one of them. The rules still apply; you put numbers where the expressions were.
Every value comes from the same row of the table, the row where x=a. Write the rule with a in it first, then substitute. That way your working shows which value went where, and a sign slip is easier to spot.
For example, suppose f(4)=3,f′(4)=2,g(4)=−1 and g′(4)=6. Then the derivative of fg at x=4 is 2(−1)+3(6)=16.
Key idea
Write the rule with a in it first, then put in the four values from the row where x=a.
Check yourself
With the same values at x=4, find the derivative of g(x)f(x) at x=4.
Show answerHide answer
−20. The numerator is 2(−1)−3(6)=−20 and the denominator is (−1)2=1.
Which method fits?
What you see
What to do
Two functions of x multiplied, such as x3cosx
Product rule
A function of x divided by another function of x
Quotient rule
A constant on the bottom, such as 7x4
Constant multiple: 71x4
A constant times a function, such as 5sinx
Constant multiple, no product rule
Terms divided by a single power of x
Divide each term first, then use the power rule
Only values of f,g,f′ and g′
Write the rule at x=a, then substitute
Worked example 1: A product with a trig factor
Question: Find dxdy for y=x3cosx.
What tells you the method
Two functions of x,x3 and cosx, are multiplied, so this is a product.
1
Step 1: Name the parts.
u=x3, so u′=3x2;v=cosx, so v′=−sinx.
Why
Writing the four pieces first keeps the signs under control.
2
Step 2: Apply the product rule.
dxdy=u′v+uv′=3x2cosx+x3(−sinx).
Why
Each term has exactly one factor differentiated.
3
Step 3: Tidy.
dxdy=3x2cosx−x3sinx, which factors as x2(3cosx−xsinx).
Why
The factored form makes later work, such as solving dxdy=0, easier.
Check it
At x=0 the derivative is 0. Near 0,cosx is close to 1, so y behaves like x3, which is flat at the origin; a slope of 0 fits.
Answer
dxdy=3x2cosx−x3sinx.
Worked example 2: A quotient at a point
Question: Let f(x)=x2+32x+1. Find f′(x) and f′(1).
What tells you the method
A function of x is divided by another function of x, so use the quotient rule.
1
Step 1: Name the parts.
u=2x+1,u′=2;v=x2+3,v′=2x.
Why
The quotient rule needs all four.
2
Step 2: Apply the quotient rule.
f′(x)=(x2+3)22(x2+3)−(2x+1)(2x).
Why
The derivative of the top times the bottom comes first, then you subtract.
3
Step 3: Simplify the numerator.
2x2+6−4x2−2x=−2x2−2x+6, so f′(x)=(x2+3)2−2x2−2x+6.
Why
The minus sign applies to the whole product (2x+1)(2x), so both of its terms change sign.
4
Step 4: Substitute x=1.
f′(1)=(1+3)2−2−2+6=162=81.
Why
The derivative at a point is the derivative formula evaluated there.
Check it
The slope between the points on the graph at x=0.99 and x=1.01 is 0.02f(1.01)−f(0.99)≈0.125, which matches 81.
Answer
f′(x)=(x2+3)2−2x2−2x+6 and f′(1)=81.
Worked example 3: Derivatives from a table
Question: The functions f and g are differentiable, and the table gives their values at x=2.
x
f(x)
f′(x)
g(x)
g′(x)
2
3
−1
−2
4
Let h(x)=f(x)g(x) and k(x)=g(x)f(x). (a) Find h′(2). (b) Find k′(2). (c) Write an equation for the line tangent to the graph of h at x=2.
What tells you the method
Only values are given; h is a product and k is a quotient, so you substitute the x=2 row into each rule.
The derivative of the top times the bottom comes first, and (−2)2=4 is positive.
3
Step 3: Find the point on the graph.
h(2)=f(2)g(2)=3(−2)=−6, so the point is (2,−6).
Why
A tangent line needs a point as well as a slope.
4
Step 4: Write the tangent line.
y−(−6)=14(x−2), so y=14x−34.
Why
This is point-slope form with slope h′(2)=14.
Check it
At x=2 the line gives 14(2)−34=−6=h(2), so it passes through the point of tangency.
Answer
(a) h′(2)=14 (b) k′(2)=−25 (c) y=14x−34
Your turn
Question: Find dxdy for y=1+cosxsinx, and simplify fully.
1
Step 1:
Name the parts: u=sinx,u′=cosx,v=1+cosx,v′=−sinx.
2
Step 2:
The quotient rule gives dxdy=(1+cosx)2cosx(1+cosx)−sinx(−sinx).
3
Step 3: Your go: expand the numerator, use sin2x+cos2x=1, then cancel.
Show the full solutionHide the solution
The numerator is cosx+cos2x+sin2x=cosx+1. So dxdy=(1+cosx)21+cosx=1+cosx1, wherever cosx=−1.
Answer:dxdy=1+cosx1
Traps
Trap
Thinking the derivative of f(x)g(x) is f′(x)g′(x).
It seems right because the derivative of a sum is the sum of the derivatives. But multiplication does not work that way: x⋅x=x2 has derivative 2x, not 1⋅1=1. The derivative of fg is f′g+fg′.
Check yourself
Which is the derivative of x2ex:2xex or 2xex+x2ex?
Show answerHide answer
2xex+x2ex. The first expression is the product of the derivatives, which leaves out the term where ex is differentiated.
Trap
Writing the quotient rule numerator as uv′−u′v.
It seems right because the product rule works in either order. But subtraction does not: swapping the terms multiplies the whole derivative by −1. Start with the derivative of the top: u′v−uv′.
Check yourself
For y=x1, which order gives the known derivative −x21?
Show answerHide answer
u′v−uv′=0⋅x−1⋅1=−1, over x2, gives −x21. The other order gives +x21, which cannot be right: x1 decreases for x>0.
Trap
Writing the derivative of cotx as csc2x, or of cscx as cscxcotx.
It seems right because the results for tanx and secx have no minus sign. But the co-functions all carry one, just as cosx does: the derivatives are −csc2x and −cscxcotx.
Check yourself
Is cotx increasing or decreasing on 0<x<π, and what does that say about its derivative?
Show answerHide answer
Decreasing, so its derivative must be negative there. That matches −csc2x, which is negative wherever it is defined.
What's examined
The product and quotient rules belong to Unit 2 of the AP® Calculus AB exam, and later units keep using them. They can appear in multiple-choice questions and as steps inside free-response questions, including ones where f and g are given only through a table of values. Expect command words such as "Find", "Evaluate" and "Write an equation for the line tangent to…". There is no formula sheet, so the product rule, the quotient rule and the four trig derivatives must come from memory. In free response, show the rule with the values substituted, not just a final number: that setup is part of what earns credit.
Practice questions
Recall Which of the following is dxd[secx]?
A) sec2x
B) −secxtanx
C) secxtanx
D) −cscxcotx
Show answer
Answer: C, secxtanx.
Marking points:
Write secx=cosx1; the quotient rule gives cos2xsinx=secxtanx.
A is the derivative of tanx, B adds a minus sign that belongs only to the co-functions, and D is the derivative of cscx.
Recall Differentiate y=x4ex.
Show answer
Answer:dxdy=4x3ex+x4ex, which factors as x3ex(x+4).
Marking points:
u=x4,u′=4x3;v=ex,v′=ex.
Product rule: u′v+uv′=4x3ex+x4ex.
Apply If f(x)=x+23x−1, which of the following is f′(x)?
A) (x+2)27
B) (x+2)2−7
C) (x+2)25
D) 3
Show answer
Answer: A, (x+2)27.
Marking points:
The numerator is 3(x+2)−(3x−1)(1)=3x+6−3x+1=7.
B uses the numerator in the order uv′−u′v; C forgets that the minus sign applies to the −1 as well; D divides the derivative of the top by the derivative of the bottom.
Apply The functions f and g are differentiable, and the table gives their values at x=1.
x
f(x)
f′(x)
g(x)
g′(x)
1
2
5
−3
1
Let p(x)=f(x)g(x) and q(x)=f(x)g(x). Find (a) p′(1) and (b) q′(1).
Show answer
Answer: (a) p′(1)=−13 (b) q′(1)=417
Marking points:
p′(1)=f′(1)g(1)+f(1)g′(1)=(5)(−3)+(2)(1)=−13.
In q,g is on top: q′(1)=(f(1))2g′(1)f(1)−g(1)f′(1)=4(1)(2)−(−3)(5)=417.
Apply Which of the following is dxd[xcotx]?
A) −csc2x
B) cotx+xcsc2x
C) −xcsc2x
D) cotx−xcsc2x
Show answer
Answer: D, cotx−xcsc2x.
Marking points:
Product rule with u=x and v=cotx:1⋅cotx+x(−csc2x).
A multiplies the two derivatives, B drops the minus sign in the derivative of cotx, and C leaves out the u′v term.
Exam-style The functions f and g are differentiable, with f(3)=4,f′(3)=−2,g(3)=2 and g′(3)=5. If k(x)=g(x)f(x), what is the value of k′(3)?
A forgets to square g(3), C divides f′(3) by g′(3), and D reverses the order of the numerator.
Exam-style Let f(x)=x2+1ex. (a) Show that f′(x)=(x2+1)2ex(x−1)2. (b) Find the value of x at which the graph of f has a horizontal tangent line. (c) Write an equation for the line tangent to the graph of f at x=0.