Question

Use Matlab plots to determine how many real-valued solutions sin 2x = x has.

Use Matlab plots to determine how many real-valued solutions sin 2x = x has.

Homework Answers

Answer #1

Please upvote :)

clc;clear all
x=-10:0.01:10; %Taking x in range of -10 to 10
y1=x; %Value of y1
y2=sin(2*x);
plot(x,y1,'-r',x,y2,'-b','LineWidth',2) %Plots the curve sin 2x=x
xlabel('x');ylabel('y');legend('y=x','y=sin 2x') %Adds label and legend
grid on
%Clearly the graph intersects at 3 points, so 3 solutions exist to x=sin2x

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Use MATLAB to determine how many elements are in the array sin(-pi/2):0.05:cos(0). Use MATLAB to determine...
Use MATLAB to determine how many elements are in the array sin(-pi/2):0.05:cos(0). Use MATLAB to determine the 10th element.
Write a Matlab script that plots the following functions over 0 ≤ x ≤ 5π: f1(x)...
Write a Matlab script that plots the following functions over 0 ≤ x ≤ 5π: f1(x) = sin2 x − cos x, f2(x) = −0.1 x 3 + 2 x 2 + 10, f3(x) = e −x/π , f4(x) = sin(x) ln(x + 1). The plots should be in four separate frames, but all four frames should be in one figure window. To do this you can use the subplot command to create 2 × 2 subfigures.
1.Find all solutions on the interval [0, 2π) csc (2x)-9=0 2. Rewrite in terms of sin(x)...
1.Find all solutions on the interval [0, 2π) csc (2x)-9=0 2. Rewrite in terms of sin(x) and cos(x) Sin (x +11pi/6)
Construct the Taylor series of f(x) = sin(x) centered at π. Determine how many terms are...
Construct the Taylor series of f(x) = sin(x) centered at π. Determine how many terms are needed to approximate sin(3) within 10^-9. Sum that many terms to make the approximation and compare with the true (calculator) value of sin(3).
Use Descartes' Rule of Signs to determine how many positive and how many negative real zeros...
Use Descartes' Rule of Signs to determine how many positive and how many negative real zeros the polynomial can have. Then determine the possible total number of real zeros. (Enter your answers as comma-separated lists.) P(x) = 6x3 − 5x2 + 8x − 1
Matlab equation solve code please show me the code for how to solve x=1-e^-2x in Matlab...
Matlab equation solve code please show me the code for how to solve x=1-e^-2x in Matlab with explanation show me the code and result
Determine conditions on a, b and c so that the following system has solutions: 2x +...
Determine conditions on a, b and c so that the following system has solutions: 2x + y + z = a x − 2y + z = b 3x − y + 2z = c Can you please show all the steps to help me understand how the problem was solved.
Use undetermined coefficients to solve the differential equation y'' + y = x sin 2x
Use undetermined coefficients to solve the differential equation y'' + y = x sin 2x
For a real number "a", consider the system of equations: x+y+z=2 2x+3y+3z=4 2x+3y+(a^2-1)z=a+2 Which of the...
For a real number "a", consider the system of equations: x+y+z=2 2x+3y+3z=4 2x+3y+(a^2-1)z=a+2 Which of the following statements is true? A. If a= 3 then the system is inconsistent. B. If a= 1 then the system has infinitely many solutions. C. If a=−1 then the system has at least two distinct solutions. D. If a= 2 then the system has a unique solution. E. If a=−2 then the system is inconsistent.
Show that the equation f(x) = sin(x) - 2x = 0 has exactly one solution on...
Show that the equation f(x) = sin(x) - 2x = 0 has exactly one solution on the interval [-2,2]
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT