Steply

Check that y = cos(3x) solves y'' + 9y = 0

Step by step, with the reason for every step · Check a solution · Differential Equations

Step by step

The question

Question: check if y = cos(3x) solves y″ + 9y = 0.

y = cos(3x)

y″ + 9y = 0 is a differential equation: an equation with a derivative in it.

y″ + 9y = 0

Its answer is not a number.

It is a function y, and it must make the equation true for every x.

differential equation: an equation with a derivative
its answer: a function y, true for every x

1 Find the derivatives

The derivative of cos(3x) is −3sin(3x).

y′ = −3sin(3x)

The rules we use: the chain rule brings the number in front down.

(cos(bx))′ = −b sin(bx)

Careful!

The chain rule!

Times the inside's slope, 3.

Careful: not (cos(3x))′ = −sin(3x) ✗

Once more: y″ is the derivative of y′.

It is −9cos(3x).

y″ = −9cos(3x)

2 Put them in

Now put y, y′ and y″ into the equation, in place of the letters.

−9cos(3x) + 9 × cos(3x) = 0

Multiply out and add like terms.

On the left, everything cancels: 0.

0 = 0

3 Compare the sides

Both sides are the same, for every x.

So y = cos(3x) is a solution.

= yes: y = cos(3x) is a solution

4 Check

Let's check with one number, x = 1.

A calculator gives 0 on both sides.

Right!

x = 1: left ≈ 8.91 − 8.91 = 0, right ≈ 0

Let's look back.

First: find the derivatives.

Then: put them in.

Then: compare the sides.

Last: check.

Answer
= yes: y = cos(3x) is a solution

Your turn

Try this one yourself, then check:

Check if y = 3cos(3x)
Show the answer
yes, a solution

More from Check a solution

The whole lesson: Check a solution →