How do I draw a function along with a particular tangent line at a specific point?Is it possible to plot a...
Protagonist constantly has to have long words explained to her. Will this get tedious?
How can guns be countered by melee combat without raw-ability or exceptional explanations?
How can I prevent an oracle who can see into the past from knowing everything that has happened?
Is there a way to pause a running process on Linux systems and resume later?
Process substitution inside a subshell to set a variable
What do "compile" , "fit" and "predict" do in Keras sequential models?
What is an explicit bijection in combinatorics?
Is the UK legally prevented from having another referendum on Brexit?
Are there historical references that show that "diatonic" is a version of 'di-tonic' meaning 'two tonics'?
Is there any danger of my neighbor having my wife's signature?
Is "accuse people to be racist" grammatical?
Minimum Viable Product for RTS game?
How to write Muḥammad ibn Mūsā al-Khwārizmī?
How do I draw a function along with a particular tangent line at a specific point?
Including proofs of known theorems in master's thesis
What happened to Hermione’s clothing and other possessions after she wiped her parents’ memories of her?
Dealing with an internal ScriptKiddie
If I tried and failed to start my own business, how do I apply for a job without job experience?
Why did Ylvis use "go" instead of "say" in phrases like "Dog goes 'woof'"?
Is Screenshot Time-tracking Common?
Is it really OK to use "because of"?
Taking an academic pseudonym?
Can I legally make a website about boycotting a certain company?
Why don't you get burned by the wood benches in a sauna?
How do I draw a function along with a particular tangent line at a specific point?
Is it possible to plot a function using Plot3D and a curve using ParametricPlot3D in the same picture?How to draw a tangent to a surface in a given direction?Drawing a pair of lines to the x-axis and y-axis from a point along a curveDistributing function arguments with function compositions. How to compute $(f + g^2)(x) = f(x) + g(x)^2$?Plot absolute value inequalities - number linePlotting the sum of two points on an elliptic curveSetting up a coordinate system and canvas size for subsequent drawingPlotting eigenvalue function along a path with correct coloringContour Plot: Selecting the contour line that crosses a specific pointHow to draw line animation using ListPlot?
$begingroup$
I would like to draw a function (x/x^2+1), and at a certain point, i'd like to draw a dot along with the tangent line at that specific point.
what I have tried is the following:
Plot[{function[x], function'[x]}, {x, -5, 5}, AxesLabel -> {x, y} LabelStyle -> Direction[Black, Bold]]
However, this plots the original function f(x) and f'(x) simultaneously; how can I achieve the desired result?
plotting functions
$endgroup$
add a comment |
$begingroup$
I would like to draw a function (x/x^2+1), and at a certain point, i'd like to draw a dot along with the tangent line at that specific point.
what I have tried is the following:
Plot[{function[x], function'[x]}, {x, -5, 5}, AxesLabel -> {x, y} LabelStyle -> Direction[Black, Bold]]
However, this plots the original function f(x) and f'(x) simultaneously; how can I achieve the desired result?
plotting functions
$endgroup$
add a comment |
$begingroup$
I would like to draw a function (x/x^2+1), and at a certain point, i'd like to draw a dot along with the tangent line at that specific point.
what I have tried is the following:
Plot[{function[x], function'[x]}, {x, -5, 5}, AxesLabel -> {x, y} LabelStyle -> Direction[Black, Bold]]
However, this plots the original function f(x) and f'(x) simultaneously; how can I achieve the desired result?
plotting functions
$endgroup$
I would like to draw a function (x/x^2+1), and at a certain point, i'd like to draw a dot along with the tangent line at that specific point.
what I have tried is the following:
Plot[{function[x], function'[x]}, {x, -5, 5}, AxesLabel -> {x, y} LabelStyle -> Direction[Black, Bold]]
However, this plots the original function f(x) and f'(x) simultaneously; how can I achieve the desired result?
plotting functions
plotting functions
asked 2 hours ago
JaigusJaigus
1453
1453
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
function[x_] := x/(x^2 + 1);
x0 = 1/2;
Plot[{function[x], function[x0] + function'[x0] (x - x0)}, {x, -5, 5},
AxesLabel -> {x, y}, LabelStyle -> Direction[Black, Bold],
Mesh -> {{x0}}, MeshStyle -> Directive[Red, PointSize[Large]]]
$endgroup$
$begingroup$
Hey thanks! I'm trying to plot this at point 45, but it doesn't seem to plot the tangent at that point; instead the tangent is on a completely different line with two dots?
$endgroup$
– Jaigus
1 hour ago
$begingroup$
@Jaigus, there was a typo; fixed now.Mesh -> {{1/2}}
should beMesh -> {{x0}}
.
$endgroup$
– kglr
1 hour ago
$begingroup$
Thanks alot, this works great.
$endgroup$
– Jaigus
1 hour ago
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "387"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f192100%2fhow-do-i-draw-a-function-along-with-a-particular-tangent-line-at-a-specific-poin%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
function[x_] := x/(x^2 + 1);
x0 = 1/2;
Plot[{function[x], function[x0] + function'[x0] (x - x0)}, {x, -5, 5},
AxesLabel -> {x, y}, LabelStyle -> Direction[Black, Bold],
Mesh -> {{x0}}, MeshStyle -> Directive[Red, PointSize[Large]]]
$endgroup$
$begingroup$
Hey thanks! I'm trying to plot this at point 45, but it doesn't seem to plot the tangent at that point; instead the tangent is on a completely different line with two dots?
$endgroup$
– Jaigus
1 hour ago
$begingroup$
@Jaigus, there was a typo; fixed now.Mesh -> {{1/2}}
should beMesh -> {{x0}}
.
$endgroup$
– kglr
1 hour ago
$begingroup$
Thanks alot, this works great.
$endgroup$
– Jaigus
1 hour ago
add a comment |
$begingroup$
function[x_] := x/(x^2 + 1);
x0 = 1/2;
Plot[{function[x], function[x0] + function'[x0] (x - x0)}, {x, -5, 5},
AxesLabel -> {x, y}, LabelStyle -> Direction[Black, Bold],
Mesh -> {{x0}}, MeshStyle -> Directive[Red, PointSize[Large]]]
$endgroup$
$begingroup$
Hey thanks! I'm trying to plot this at point 45, but it doesn't seem to plot the tangent at that point; instead the tangent is on a completely different line with two dots?
$endgroup$
– Jaigus
1 hour ago
$begingroup$
@Jaigus, there was a typo; fixed now.Mesh -> {{1/2}}
should beMesh -> {{x0}}
.
$endgroup$
– kglr
1 hour ago
$begingroup$
Thanks alot, this works great.
$endgroup$
– Jaigus
1 hour ago
add a comment |
$begingroup$
function[x_] := x/(x^2 + 1);
x0 = 1/2;
Plot[{function[x], function[x0] + function'[x0] (x - x0)}, {x, -5, 5},
AxesLabel -> {x, y}, LabelStyle -> Direction[Black, Bold],
Mesh -> {{x0}}, MeshStyle -> Directive[Red, PointSize[Large]]]
$endgroup$
function[x_] := x/(x^2 + 1);
x0 = 1/2;
Plot[{function[x], function[x0] + function'[x0] (x - x0)}, {x, -5, 5},
AxesLabel -> {x, y}, LabelStyle -> Direction[Black, Bold],
Mesh -> {{x0}}, MeshStyle -> Directive[Red, PointSize[Large]]]
edited 1 hour ago
answered 2 hours ago
kglrkglr
185k10202421
185k10202421
$begingroup$
Hey thanks! I'm trying to plot this at point 45, but it doesn't seem to plot the tangent at that point; instead the tangent is on a completely different line with two dots?
$endgroup$
– Jaigus
1 hour ago
$begingroup$
@Jaigus, there was a typo; fixed now.Mesh -> {{1/2}}
should beMesh -> {{x0}}
.
$endgroup$
– kglr
1 hour ago
$begingroup$
Thanks alot, this works great.
$endgroup$
– Jaigus
1 hour ago
add a comment |
$begingroup$
Hey thanks! I'm trying to plot this at point 45, but it doesn't seem to plot the tangent at that point; instead the tangent is on a completely different line with two dots?
$endgroup$
– Jaigus
1 hour ago
$begingroup$
@Jaigus, there was a typo; fixed now.Mesh -> {{1/2}}
should beMesh -> {{x0}}
.
$endgroup$
– kglr
1 hour ago
$begingroup$
Thanks alot, this works great.
$endgroup$
– Jaigus
1 hour ago
$begingroup$
Hey thanks! I'm trying to plot this at point 45, but it doesn't seem to plot the tangent at that point; instead the tangent is on a completely different line with two dots?
$endgroup$
– Jaigus
1 hour ago
$begingroup$
Hey thanks! I'm trying to plot this at point 45, but it doesn't seem to plot the tangent at that point; instead the tangent is on a completely different line with two dots?
$endgroup$
– Jaigus
1 hour ago
$begingroup$
@Jaigus, there was a typo; fixed now.
Mesh -> {{1/2}}
should be Mesh -> {{x0}}
.$endgroup$
– kglr
1 hour ago
$begingroup$
@Jaigus, there was a typo; fixed now.
Mesh -> {{1/2}}
should be Mesh -> {{x0}}
.$endgroup$
– kglr
1 hour ago
$begingroup$
Thanks alot, this works great.
$endgroup$
– Jaigus
1 hour ago
$begingroup$
Thanks alot, this works great.
$endgroup$
– Jaigus
1 hour ago
add a comment |
Thanks for contributing an answer to Mathematica Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f192100%2fhow-do-i-draw-a-function-along-with-a-particular-tangent-line-at-a-specific-poin%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown