Scribe logoScribeNotes & practice
Sign inStart free
  1. Notes
  2. ›AP Calculus BC
  3. ›7 Differential Equations
  4. ›7.6 General solutions by separation of variables

AP Calculus BC · Unit 7 · Differential Equations

7.6 General solutions by separation of variables

Separate variables in a differential equation, integrate both sides, and write a general solution with a constant.

  • 3 min read
  • 4 parts
  • 10 questions
  • Draft
Start a Quick 5 on this topic→Jump to the 10 questions
1/4A separable equation groups each variable with its differential
  1. 1A separable equation groups each variable with its differential
  2. 2Integrating both sides produces a family of solutions
  3. 3A worked separation keeps each algebraic step visible
  4. 4Check divisions that might remove constant solutions
  5. Check your recall
  6. Practice: 10 questions
1

Part 1 of 4: A separable equation groups each variable with its differential

A separable differential equation can be written as dydx=f(x)g(y)\frac{dy}{dx}=f(x)g(y)dxdy​=f(x)g(y). Here, the right side is a product of an xxx-function and a yyy-function. The goal is to put all yyy-terms beside dydydy. Put all xxx-terms beside dxdxdx. This creates an equation that can be integrated on both sides.

For example, dydx=2x(1+y2)\frac{dy}{dx}=2x(1+y^2)dxdy​=2x(1+y2) becomes 11+y2 dy=2x dx\frac{1}{1+y^2}\,dy=2x\,dx1+y21​dy=2xdx. This step is called separation of variables. First, divide by 1+y21+y^21+y2. Then multiply by dxdxdx. In this example, 1+y21+y^21+y2 is never zero for real yyy.

Key terms · tap one for its definition

separable differential equation

A separable differential equation can be written as a product of a function of xxx and a function of yyy.

separation of variables

Separation of variables rearranges an equation to place yyy-terms with dydydy and xxx-terms with dxdxdx.

Part 1 done

2

Part 2 of 4: Integrating both sides produces a family of solutions

Once the variables are separated, take an antiderivative of each side. For 11+y2 dy=2x dx\frac{1}{1+y^2}\,dy=2x\,dx1+y21​dy=2xdx, this gives arctan⁡(y)=x2+C\arctan(y)=x^2+Carctan(y)=x2+C. The constant of integration is essential. It allows the result to describe a family of solutions, not just one curve.

Both integrations could produce separate constants. Their difference can be renamed as one constant, CCC. You may leave a general solution in implicit form when it clearly relates xxx and yyy. If useful, solve for yyy. Here, y=tan⁡(x2+C)y=\tan(x^2+C)y=tan(x2+C) wherever that expression is defined.

Common mistake

Do not omit CCC because both sides were integrated. Two integration constants combine into one; they do not disappear.

Key terms · tap one for its definition

antiderivative

An antiderivative of a function is another function whose derivative equals it.

constant of integration

A constant of integration represents the arbitrary constant introduced when finding an indefinite integral.

Part 2 done

Quick check

One question on the part you just read

Easy

Write dydx=4x(3−y)\frac{dy}{dx}=4x(3-y)dxdy​=4x(3−y) in separated form.
Show answer and explanation

Answer: A · Worked explanation

Dividing by 3−y3-y3−y and multiplying by dxdxdx puts the yyy-expression beside dydydy and the xxx-expression beside dxdxdx. The tempting form (3−y) dy=4x dx(3-y)\,dy=4x\,dx(3−y)dy=4xdx multiplies by the yyy-expression instead of dividing by it, so it is not equivalent to the original equation.
3

Part 3 of 4: A worked separation keeps each algebraic step visible

Work from the differential equation to an equation relating xxx and yyy. Show the separated form before integrating. This makes it easier to check which variable belongs on each side. The final relation is a general solution because CCC can take different values.

Worked example

Find a general solution

Find a general solution of dydx=2x(1+y2)\frac{dy}{dx}=2x(1+y^2)dxdy​=2x(1+y2).
  1. 1
    Separate: 11+y2 dy=2x dx\frac{1}{1+y^2}\,dy=2x\,dx1+y21​dy=2xdx.
  2. 2
    Integrate: ∫11+y2 dy=∫2x dx\int\frac{1}{1+y^2}\,dy=\int 2x\,dx∫1+y21​dy=∫2xdx.
  3. 3
    Evaluate and combine constants: arctan⁡(y)=x2+C\arctan(y)=x^2+Carctan(y)=x2+C.

Answer: arctan⁡(y)=x2+C\arctan(y)=x^2+Carctan(y)=x2+C, where CCC is an arbitrary constant. No units are specified.

Exam tip

Write the integral with its differential on each side. Include CCC in the final general solution.

Key terms · tap one for its definition

separated form

Separated form places an expression involving yyy with dydydy on one side and an expression involving xxx with dxdxdx on the other.

general solution

A general solution is a family of solutions represented using an arbitrary constant.

Part 3 done

4

Part 4 of 4: Check divisions that might remove constant solutions

Separating variables sometimes requires dividing by an expression that can equal zero. That division excludes those values temporarily. Before finishing, check whether an excluded value gives a constant solution to the original equation.

For dydx=2xy\frac{dy}{dx}=2xydxdy​=2xy, division by yyy assumes y≠0y\ne0y=0. It gives 1y dy=2x dx\frac{1}{y}\,dy=2x\,dxy1​dy=2xdx, so ln⁡∣y∣=x2+C\ln|y|=x^2+Cln∣y∣=x2+C. This describes nonzero solutions. But y=0y=0y=0 also satisfies the original equation. Rewriting the result as y=Cex2y=Ce^{x^2}y=Cex2 includes that solution when C=0C=0C=0. Always check the original equation after dividing by a variable expression.

Common mistake

Dividing by yyy does not prove y=0y=0y=0 is impossible. Check it in the original equation.

Key term

constant solution

A constant solution has the same yyy-value for every xxx in its domain.

Note read

Check your recall[12 marks]

5 written questions. Answer each one in your head or on paper, then open the mark scheme.

  1. 1.Identify[2 marks]

    Identify the two functions multiplied on the right side of dydx=x2(1+y2)\frac{dy}{dx}=x^2(1+y^2)dxdy​=x2(1+y2).

    Show mark schemeHide mark scheme

    Model answer

    The function of xxx is x2x^2x2, and the function of yyy is 1+y21+y^21+y2.

    • 1 mark for identifying x2x^2x2 as the function of xxx
    • 1 mark for identifying 1+y21+y^21+y2 as the function of yyy
  2. 2.Write[2 marks]

    Write dydx=3x(1+y2)\frac{dy}{dx}=3x(1+y^2)dxdy​=3x(1+y2) in separated form.

    Show mark schemeHide mark scheme

    Model answer

    11+y2 dy=3x dx\frac{1}{1+y^2}\,dy=3x\,dx1+y21​dy=3xdx.

    • 1 mark for placing 11+y2\frac{1}{1+y^2}1+y21​ with dydydy
    • 1 mark for placing 3x3x3x with dxdxdx
  3. 3.Determine[3 marks]

    Determine a general solution of dydx=2x(1+y2)\frac{dy}{dx}=2x(1+y^2)dxdy​=2x(1+y2).

    Show mark schemeHide mark scheme

    Model answer

    Separate to get 11+y2 dy=2x dx\frac{1}{1+y^2}\,dy=2x\,dx1+y21​dy=2xdx. Integrating gives arctan⁡(y)=x2+C\arctan(y)=x^2+Carctan(y)=x2+C.

    • 1 mark for writing 11+y2 dy=2x dx\frac{1}{1+y^2}\,dy=2x\,dx1+y21​dy=2xdx
    • 1 mark for integrating to obtain arctan⁡(y)\arctan(y)arctan(y) and x2x^2x2
    • 1 mark for including an arbitrary constant in the general solution
  4. 4.Explain[2 marks]

    Explain why integrating both sides gives one arbitrary constant in the final solution.

    Show mark schemeHide mark scheme

    Model answer

    Each side can have a constant of integration. Rearranging combines their difference into one arbitrary constant.

    • 1 mark for stating that integration can introduce a constant on each side
    • 1 mark for explaining that the constants combine into one arbitrary constant
  5. 5.Explain[3 marks]

    Explain why dividing dydx=2xy\frac{dy}{dx}=2xydxdy​=2xy by yyy requires an additional check.

    Show mark schemeHide mark scheme

    Model answer

    Dividing by yyy assumes y≠0y\ne0y=0. The excluded function y=0y=0y=0 satisfies the original equation, so it must remain among the solutions.

    • 1 mark for stating that division by yyy assumes y≠0y\ne0y=0
    • 1 mark for checking that y=0y=0y=0 satisfies the original equation
    • 1 mark for concluding that y=0y=0y=0 must not be lost from the solutions

Practice this topic

10 quick-fire multiple-choice questions, easy to hard. Tap an answer to see if you're right and the worked explanation. (The written questions with mark schemes are under “Check your recall” above.)

0 right0 of 10 answered

Includes the quick check in the note above.

2.

Easy·Identify[1 mark]

Identify an antiderivative of 5x45x^45x4 that would result from integrating the right side of a separated differential equation with respect to xxx.
Show answer and explanation

Answer: C · Worked explanation

Since ddx(x5)=5x4\frac{d}{dx}(x^5)=5x^4dxd​(x5)=5x4, an antiderivative is x5x^5x5. The option 5x55x^55x5 is a tempting choice because it retains the coefficient 5, but its derivative is 25x425x^425x4, not 5x45x^45x4.
3.

Easy·State[1 mark]

State what must appear in a general solution obtained by integrating both sides of a separable differential equation.
Show answer and explanation

Answer: D · Worked explanation

Indefinite integration introduces an arbitrary constant, so a general solution must include a constant that can vary across the family of solutions. A specified initial value is needed only if the task asks for a particular solution; it is not automatically part of a general solution.
4.

Easy·Determine[1 mark]

Determine the antiderivative relation obtained by integrating 1y dy=6x dx\frac{1}{y}\,dy=6x\,dxy1​dy=6xdx, assuming y≠0y\ne 0y=0.
Show answer and explanation

Answer: B · Worked explanation

Integrating 1/y1/y1/y with respect to yyy gives ln⁡∣y∣\ln|y|ln∣y∣, and integrating 6x6x6x with respect to xxx gives 3x23x^23x2. The tempting expression ln⁡∣y∣=6x2+C\ln|y|=6x^2+Cln∣y∣=6x2+C misses the factor of 1/21/21/2 from the power rule.
5.

Medium·Write[1 mark]

Write dydx=2xy+4\frac{dy}{dx}=\frac{2x}{y+4}dxdy​=y+42x​ in separated form.
Show answer and explanation

Answer: C · Worked explanation

Multiplying both sides by (y+4) dx(y+4)\,dx(y+4)dx gives (y+4) dy=2x dx(y+4)\,dy=2x\,dx(y+4)dy=2xdx, with each variable grouped with its differential. The option that leaves 1/(y+4)1/(y+4)1/(y+4) beside dydydy would be appropriate if the original right side contained a factor of (y+4)(y+4)(y+4) rather than its reciprocal.
6.

Medium·Determine[2 marks]

Determine a general solution of dydx=3x2y\frac{dy}{dx}=3x^2ydxdy​=3x2y, for nonzero solutions.
Show answer and explanation

Answer: B · Worked explanation

Separate to get 1y dy=3x2 dx\frac{1}{y}\,dy=3x^2\,dxy1​dy=3x2dx, then integrate to obtain ln⁡∣y∣=x3+C\ln|y|=x^3+Cln∣y∣=x3+C. The tempting result ln⁡∣y∣=3x3+C\ln|y|=3x^3+Cln∣y∣=3x3+C incorrectly keeps the coefficient 3 after integration; the antiderivative of 3x23x^23x2 is x3x^3x3.
7.

Medium·Select[1 mark]

Which of the following is a valid separated form of dydx=y21+x2\frac{dy}{dx}=\frac{y^2}{1+x^2}dxdy​=1+x2y2​?
Show answer and explanation

Answer: D · Worked explanation

Dividing by y2y^2y2 and multiplying by dxdxdx gives 1y2 dy=11+x2 dx\frac{1}{y^2}\,dy=\frac{1}{1+x^2}\,dxy21​dy=1+x21​dx, which groups the variables correctly. The tempting form y2 dy=11+x2 dxy^2\,dy=\frac{1}{1+x^2}\,dxy2dy=1+x21​dx places the factor on the wrong side without taking its reciprocal.
8.

Medium·Explain[2 marks]

A student integrates dydx=4x\frac{dy}{dx}=4xdxdy​=4x and writes y=2x2y=2x^2y=2x2. Explain what change is needed for the result to be a general solution.
Show answer and explanation

Answer: D · Worked explanation

Integrating 4x4x4x gives 2x22x^22x2, and an indefinite integral also requires an arbitrary constant, so the general solution is y=2x2+Cy=2x^2+Cy=2x2+C. The tempting expression 4x2+C4x^2+C4x2+C includes a constant but has the wrong antiderivative, since its derivative is 8x8x8x.
9.

Medium·Determine[2 marks]

Determine the general solution of dydx=xy\frac{dy}{dx}=\frac{x}{y}dxdy​=yx​ for nonzero solutions.
Show answer and explanation

Answer: C · Worked explanation

Separate to obtain y dy=x dxy\,dy=x\,dxydy=xdx. Integrating gives y2/2=x2/2+Cy^2/2=x^2/2+Cy2/2=x2/2+C, and multiplying by 2 while renaming the arbitrary constant yields y2=x2+Cy^2=x^2+Cy2=x2+C. The tempting logarithmic expression would follow from integrating 1/y1/y1/y, but the separated left side here is y dyy\,dyydy.
10.

Hard·Determine[2 marks]

Determine a general solution of dydx=(x+1)(y−2)\frac{dy}{dx}=(x+1)(y-2)dxdy​=(x+1)(y−2) that includes any constant solution excluded during separation.
Show answer and explanation

Answer: C · Worked explanation

For y≠2y\ne2y=2, separation gives 1y−2 dy=(x+1) dx\frac{1}{y-2}\,dy=(x+1)\,dxy−21​dy=(x+1)dx, so ln⁡∣y−2∣=x2/2+x+C\ln|y-2|=x^2/2+x+Cln∣y−2∣=x2/2+x+C. Exponentiating and absorbing the sign and exponential of the constant gives y=2+Cex2/2+xy=2+Ce^{x^2/2+x}y=2+Cex2/2+x; setting C=0C=0C=0 also includes the constant solution y=2y=2y=2. The option without the 2 does not solve the shifted equation in general.

Keep going

Next topic7.7 Particular solutions with initial conditionsPrevious topic7.5 Euler's method

More in Unit 7 · Differential Equations

  1. 7.1Modelling with differential equationsNotes · 10 questions
  2. 7.2Verifying solutionsNotes · 10 questions
  3. 7.3Sketching slope fieldsNotes · 10 questions
  4. 7.4Reasoning with slope fieldsNotes · 10 questions
  5. 7.5Euler's methodNotes · 10 questions· BC only
  6. 7.6General solutions by separation of variablesNotes · 10 questions
  7. 7.7Particular solutions with initial conditionsNotes · 10 questions
  8. 7.8Exponential modelsNotes · 10 questions
  9. 7.9Logistic modelsNotes · 10 questions· BC only

All AP Calculus BC topics →

Draft: written by Scribe and checked automatically, not yet by a subject reviewer.

Practice questions are original, written by Scribe and checked automatically for correctness.

Topic codes follow the official numbering. Not endorsed by College Board or any exam board.

On this page

0/4 read

  1. 1A separable equation groups each variable with its differential
  2. 2Integrating both sides produces a family of solutions
  3. 3A worked separation keeps each algebraic step visible
  4. 4Check divisions that might remove constant solutions
  5. Check your recall
  6. Practice: 10 questions
All coursesScribeHow it worksPricingPrivacyTerms

Notes and questions are written by Scribe in our own words. Topic codes follow the official course numbering so you can find your place. Not produced or endorsed by the IB, College Board, AQA, OCR, Pearson Edexcel or any exam board.

© 2026 Scribe