AP® Calculus AB Differential Equations Practice Questions
Work through AP Calculus AB practice questions on Differential Equations, then check each answer against a worked solution.
Free · no sign-up Open questions need no account. Sign up or log in to open the rest.
Question 32
Question 33
Question 34
Question 35
Question 36
Question 37
Main Solution
Strategy
The problem requires solving a first-order differential equation using the method of separation of variables and then applying an initial condition to find the particular solution.
Key Insight
The given differential equation can be factored to isolate \(y\), making it a separable differential equation. Careful algebraic manipulation and correct application of initial conditions are crucial.
Choice Analysis
Choice A - Correct ✓ - Correct Solution: The differential equation is \(\frac{dy}{dx} = 2xy - \frac{y}{x}\).First, factor out \(y\) from the right-hand side:
\[\frac{dy}{dx} = y\left(2x - \frac{1}{x}\right)\]
This is a separable differential equation. Separate the variables:
\[\frac{1}{y} dy = \left(2x - \frac{1}{x}\right) dx\]
Integrate both sides:
\[\int \frac{1}{y} dy = \int \left(2x - \frac{1}{x}\right) dx\]
\[\ln|y| = x^2 - \ln|x| + C\]
Exponentiate both sides to solve for \(y\):
\[|y| = e^{x^2 - \ln|x| + C}\]
\[|y| = e^{x^2} \cdot e^{-\ln|x|} \cdot e^C\]
Let \(A = \pm e^C\). Since the initial condition \(y=2\) when \(x=1\) implies \(y\) is positive, we can drop the absolute value for \(y\). Also, \(e^{-\ln|x|} = e^{\ln(x^{-1})} = x^{-1} = \frac{1}{x}\).
\[y = A \cdot e^{x^2} \cdot \frac{1}{x}\]
\[y = \frac{A e^{x^2}}{x}\]
Now, apply the initial condition \(y=2\) when \(x=1\):
\[2 = \frac{A e^{1^2}}{1}\]
\[2 = A e\]
\[A = \frac{2}{e}\]
Substitute the value of \(A\) back into the solution:
\[y = \frac{\left(\frac{2}{e}\right) e^{x^2}}{x}\]
\[y = \frac{2 e^{x^2} e^{-1}}{x}\]
\[y = \frac{2 e^{x^2 - 1}}{x}\]
This matches option A.
Choice B - Incorrect - Incorrect constant of integration: This option results if the constant of integration \(A\) was found to be \(\frac{1}{e}\) instead of \(\frac{2}{e}\), which would happen if the initial condition was \(y=1\) instead of \(y=2\), or if there was an error in calculating \(A\).
Choice C - Incorrect - Incorrect variable separation or algebraic error: This option suggests that either the variables were not separated correctly, or there was a significant algebraic error in moving terms, particularly the \(x\) in the denominator. For example, if one incorrectly solved for \(y\) as \(y = A x e^{x^2}\) and then determined \(A=2/e\), this form might arise, but the variable separation step \(\frac{1}{y} dy = \frac{1}{x} (2x^2-1) dx\) must be correct to begin with.
Choice D - Incorrect - Incorrect integration or non-separable assumption: This option results from incorrect integration or an attempt to solve a non-separable equation with methods like linear first-order differential equations without proper identification. The term \(\ln x\) is correct, but the addition of \(x^2\) without an exponential factor indicates an error in how the \(e^{\ln|x|}\) term was handled during the exponentiation step or an entirely different integration approach was attempted.
Teacher Explanation
A strong AP Calculus student should first recognize the given differential equation as separable after factoring out \(y\). The key task is to correctly separate the variables, integrate both sides (remembering the constant of integration), and then use the initial condition to solve for that constant. The correct answer is A because it accurately reflects the steps of separation, integration leading to logarithmic terms, exponentiation to solve for \(y\), and correct application of the initial condition. The most common error is mismanaging the algebraic steps, particularly when converting from \(\ln|y| = x^2 - \ln|x| + C\) to \(y = \frac{A e^{x^2}}{x}\), or making a calculation error when finding the specific value of \(A\).
Education Coach Advice
Always start by trying to separate the variables in a first-order differential equation. Look for common factors like \(y\) that can be factored out.
Be meticulous with your integration steps. Remember that \(\int \frac{1}{x} dx = \ln|x| + C\) and when exponentiating, \(e^{A+B} = e^A e^B\).
Pay close attention to the algebraic manipulation when solving for \(y\) after integration. \(e^{-\ln|x|}\) simplifies to \(\frac{1}{|x|}\), not \(-|x|\) or some other form.
Don't forget to use the initial condition to solve for the constant of integration. This is a crucial step to find the particular solution, not just the general one.
Traps
The most common trap is making an error when separating variables, particularly with the \(x\) term, or incorrectly handling the constant of integration \(C\) after integration, especially when converting from \(\ln|y|\) to \(y\).
Question 38
Main Solution
Strategy
The problem requires solving a first-order separable differential equation with an initial condition. The general approach involves separating variables, integrating both sides, and then using the initial condition to find the particular solution.
Key Insight
The key insight is recognizing that the given differential equation is separable after factoring out \(y\), and correctly integrating \(\int \tan x \, dx = -\ln|\cos x| + C\).
Choice Analysis
Choice A - Incorrect - \(y = \frac{3e^{x}}{\cos^{5}x}\): This option contains errors in both the constant of integration and the exponent of \(\cos x\). The constant should be 5, derived from the initial condition, not 3. The exponent for \(\cos x\) should be -3, not -5.
Choice B - Incorrect - \(y = \sec^{2}x + 1\): This solution form is completely incorrect. It appears to confuse integration with differentiation (the derivative of \(\tan x\) is \(\sec^2 x\)) and does not account for the exponential term \((e^x)\) or the constant derived from the initial condition. It fails to separate variables correctly and integrate properly.
Choice C - Incorrect - \(y = x - 3\ln(\cos x)\): This option represents the right-hand side of the integrated equation for \(\ln|y|\) (if the constant of integration was zero), but it fails to exponentiate both sides to solve for \(y\). A common mistake is to equate \(y\) directly to the expression for \(\ln|y|\).
Choice D - Correct ✓ - \(y = \frac{5e^{x}}{\cos^{3}x}\): First, factor the right-hand side: \(\frac{dy}{dx} = y(3\tan x + 1)\).Next, separate variables: \(\frac{dy}{y} = (3\tan x + 1)\,dx\).
Integrate both sides: \[\int \frac{1}{y}\,dy = \int (3\tan x + 1)\,dx\]\[\ln|y| = 3(-\ln|\cos x|) + x + C\]\[\ln|y| = -3\ln|\cos x| + x + C\]Using logarithm properties, \(-3\ln|\cos x| = \ln|(\cos x)^{-3}| = \ln\left|\frac{1}{\cos^3 x}\right|\):\[\ln|y| = \ln\left|\frac{1}{\cos^3 x}\right| + x + C\]Exponentiate both sides:\[|y| = e^{\ln\left|\frac{1}{\cos^3 x}\right| + x + C}\]\[|y| = e^{\ln\left|\frac{1}{\cos^3 x}\right|} \cdot e^x \cdot e^C\]Let \(A = \pm e^C\). Since \(y=5\) (positive) when \(x=0\), we can drop the absolute values and assume \(A\) is positive:\[y = A \frac{1}{\cos^3 x} e^x = \frac{A e^x}{\cos^3 x}\]
Apply the initial condition \(y=5\) when \(x=0\):\[5 = \frac{A e^0}{\cos^3(0)}\]\[5 = \frac{A \cdot 1}{1^3}\]\[A = 5\]Therefore, the particular solution is \(y = \frac{5e^x}{\cos^3 x}\).
Teacher Explanation
A strong AP Calculus student should first identify this as a separable differential equation. The key steps involve factoring \(y\) from the right-hand side, separating the variables, and then integrating both sides. Correct integration of \(\tan x\) (which is \(-\ln|\cos x|\)) is crucial. The constant of integration must be determined using the given initial condition to find the particular solution. The most common errors stem from algebraic manipulation of logarithms and exponentials, or an incorrect application of the initial condition.
Education Coach Advice
Always simplify the differential equation first by factoring common terms, especially if the dependent variable appears in multiple terms.
Ensure you correctly separate the variables, getting all terms involving \(y\) with \(dy\) and all terms involving \(x\) with \(dx\).
Memorize common integral formulas, such as \(\int \tan x \, dx = -\ln|\cos x| + C\). Pay close attention to negative signs and absolute values.
After integrating and solving for \(\ln|y|\), remember to exponentiate both sides to isolate \(y\). Don't forget to combine the constant of integration with the exponential term (e.g., \(e^{C+f(x)} = e^C e^{f(x)} = A e^{f(x)}\)).
Traps
A common trap is incorrectly integrating \(\tan x\) or making algebraic errors when combining logarithmic terms before exponentiating. Another frequent mistake is failing to correctly apply the initial condition to solve for the constant of integration, or misinterpreting the form of the solution after integration (e.g., confusing \(\ln|y|\) with \(y\)).
Question 39
⚠️ A slope field is shown for \(-2\le x\le 2\) and \(-2\le y\le 2\). Compare the segments in the four quadrants.

Which differential equation has the slope field shown?
Main Solution
Strategy
Record the sign of the slope in each quadrant and the lines where the slope is zero, then compare with the sign of each expression.
Key Insight
The segments are horizontal on both axes; they rise for \(x\gt 0\) and fall for \(x\lt 0\), whether \(y\) is positive or negative. So the slope has the sign of \(x\) alone, and the factor in \(y\) must be an even power.
Choice Analysis
Choice A - Incorrect - sign follows y: \(x^{2}y\) has the sign of \(y\): it would be positive in quadrant II and negative in quadrant IV, the opposite of the field there.
Choice B - Correct ✓ - xy²: \(xy^{2}=0\) when \(x=0\) or \(y=0\) ✓ (horizontal segments on both axes). Since \(y^{2}\ge 0\), the sign is the sign of \(x\): rising for \(x\gt 0\) ✓ and falling for \(x\lt 0\) ✓. Also \(xy^{2}\) is unchanged when \(y\) is replaced by \(-y\), so the field is symmetric about the x-axis ✓.
Choice C - Incorrect - sign reversed: \(-xy^{2}\) has the same zero lines but would make segments fall for \(x\gt 0\).
Choice D - Incorrect - no zero along the axes: \(x+y^{2}\) is not zero along the axes: at \((0,1)\) it is \(1\) and at \((1,0)\) it is \(1\), but the field is horizontal at both points.
A
B
C
D
Teacher Explanation
A strong student should first record the zero lines, both axes, and the sign of the slope in each quadrant. The key task is to see that the sign changes across the y-axis but not across the x-axis, so x appears to an odd power and y to an even power. The correct answer is B because xy² is zero on both axes and has the sign of x. The most common error is to match only the zero lines, which leads to choice A.
Education Coach Advice
First, identify what this question is really testing: using zero lines and the sign in each quadrant to match a slope field.
Second, eliminate choices that are not zero along both axes (D).
Watch for this trap: x²y and xy² share zero lines but have different sign patterns.
Review tip: a squared factor never changes sign, so the slope keeps its sign when you cross that variable’s zero line.
Traps
Trap — choice A: x²y also has horizontal segments along both axes. Why it tempts: students check only where the slopes are zero. How to avoid it: compare quadrants I and IV; the field rises in both, so the sign depends on x alone and y must appear squared.
Answer images
Question 40
Main Solution
Strategy
To find the equation for \(y\) with respect to \(x\) from a given differential equation, we use the method of separation of variables, followed by integration of both sides.
Key Insight
The key insight involves correctly separating the variables and recognizing the need for a u-substitution to integrate the right-hand side, as well as correctly handling the constant of integration when solving for \(y\).
Choice Analysis
Choice C - Correct ✓ - Correct Solution: The given differential equation is a separable equation: \[ \frac{dy}{dx} = \frac{xy}{\sqrt{x^{2}+5}} \] First, separate the variables \(y\) and \(x\): \[ \frac{1}{y} dy = \frac{x}{\sqrt{x^{2}+5}} dx \] Next, integrate both sides: \[ \int \frac{1}{y} dy = \int \frac{x}{\sqrt{x^{2}+5}} dx \] The left side integrates to: \[ \ln|y| + C_1 \] For the right side, use u-substitution. Let \(u = x^2+5\). Then \(du = 2x \, dx\), which means \(x \, dx = \frac{1}{2} du\). Substitute these into the integral: \[ \int \frac{x}{\sqrt{x^{2}+5}} dx = \int \frac{1}{\sqrt{u}} \cdot \frac{1}{2} du = \frac{1}{2} \int u^{-1/2} du \] Now, integrate \(u^{-1/2}\) with respect to \(u\): \[ \frac{1}{2} \left( \frac{u^{1/2}}{1/2} \right) + C_2 = \frac{1}{2} (2u^{1/2}) + C_2 = u^{1/2} + C_2 \] Substitute back \(u = x^2+5\): \[ u^{1/2} + C_2 = \sqrt{x^2+5} + C_2 \] Now, combine the results from both sides of the original integration: \[ \ln|y| = \sqrt{x^2+5} + C_3 \] (where \(C_3 = C_2 - C_1\)). To solve for \(y\), exponentiate both sides: \[ |y| = e^{\sqrt{x^2+5} + C_3} \] Using exponent properties, we get: \[ |y| = e^{\sqrt{x^2+5}} \cdot e^{C_3} \] Let \(C = \pm e^{C_3}\). Since \(e^{C_3}\) is always positive, \(C\) can be any non-zero real number. If we also consider the trivial solution \(y=0\), then \(C\) can be any real number. So, the general solution is: \[ y = C e^{\sqrt{x^2+5}} \] This matches option C.
Choice A - Incorrect - Incorrect Integration of RHS: This option results from incorrectly integrating the right-hand side. If one incorrectly assumes \(\int \frac{x}{\sqrt{x^2+5}} dx = C\sqrt{x^2+5}\) and then exponentiates, or makes an error in the exponential step, this form might arise. The integral \(\int \frac{x}{\sqrt{x^{2}+5}} dx\) correctly evaluates to \(\sqrt{x^{2}+5}\), not \(\ln|y| = C\sqrt{x^{2}+5}\).
Choice B - Incorrect - Incorrect Integration and Constant Application: This option suggests that \(\ln|y|\) was integrated incorrectly or that the constant of integration was added to \(\sqrt{x^2+5}\) after exponentiating \(y\) but not properly for the \(C\). The integral of \(\frac{1}{y}\) yields a logarithm, which requires exponentiation, and the constant of integration from \(\ln|y| = \sqrt{x^2+5} + C_3\) becomes a multiplicative factor when solving for \(y\), not an additive one outside the exponential.
Choice D - Incorrect - Incorrect Handling of Constant C: This option is very close to the correct answer but places the constant of integration \(C\) additively outside the exponential, instead of multiplicatively. When solving \(\ln|y| = \sqrt{x^2+5} + C_3\), exponentiating both sides leads to \(y = e^{\sqrt{x^2+5} + C_3} = e^{\sqrt{x^2+5}} e^{C_3}\). The constant \(e^{C_3}\) (or \(\pm e^{C_3}\)) becomes a multiplicative constant, not an additive one.
Teacher Explanation
A strong AP Calculus student should first recognize that this is a separable differential equation. The key task is to correctly separate the variables, perform the integration on both sides (using u-substitution for the right-hand side integral), and accurately solve for \(y\), paying close attention to the constant of integration. The most common error is misplacing the constant of integration, often adding it rather than multiplying it after exponentiating to isolate \(y\). The correct answer is C, as the constant becomes a multiplicative factor.
Education Coach Advice
Always start by identifying the type of differential equation. For separable equations, ensure all \(y\) terms (and \(dy\)) are on one side and all \(x\) terms (and \(dx\)) are on the other.
Be meticulous with integration. For integrals involving a composite function like \(\frac{x}{\sqrt{x^2+5}}\), consider u-substitution. Let \(u\) be the inner function and find \(du\).
Pay close attention to the constant of integration. When you integrate \(\frac{1}{y}\) to get \(\ln|y|\) and then exponentiate to solve for \(y\), the constant of integration appears as a multiplicative factor (e.g., \(e^{\text{constant}}\) becomes \(C\)), not an additive one.
Practice solving various types of separable differential equations to become proficient with variable separation, integration techniques, and proper handling of integration constants.
Traps
The most common trap is incorrectly handling the constant of integration when exponentiating after solving for \(\ln|y|\). Many students might write \(y = e^{\sqrt{x^2+5}} + C\) instead of \(y = C e^{\sqrt{x^2+5}}\), or make an error in the u-substitution for the right-hand side integral.
AP® and Advanced Placement® are registered trademarks of the College Board, which is not affiliated with, and does not endorse, Verityprep. Names are used for identification purposes only.

