Question: dx2d2y=5cos2x−8sin2x, the curve passes through P(π,7), gradient at P is 3. Find the equation of the curve.
Step 1. Integrate once:
dxdy=∫(5cos2x−8sin2x)dx=25sin2x+16cos2x+C1
Step 2. Apply gradient condition at x=π:
3=25sin2π+16cos2π+C1=0+0+C1⇒C1=3
So dxdy=25sin2x+16cos2x+3.
Step 3. Integrate again:
y=−45cos2x+32sin2x+3x+C2
Step 4. Apply point condition at (π,7):
7=−45cos2π+32sin2π+3π+C2=−45+32+3π+C2
C2=7+45−32−3π=−499−3π
Answer: y=−45cos2x+32sin2x+3x−499−3π.
Tip: Two integrations = two constants. Use the gradient condition to pin down C1, then the point condition to pin down C2.